btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / package / ActivateRepositoryCacheJob.h
blob105c38f6c6e911144c5914ccc078a77822d8a26d
1 /*
2 * Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CACHE_JOB_H_
6 #define _PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CACHE_JOB_H_
9 #include <Directory.h>
10 #include <Entry.h>
11 #include <String.h>
13 #include <package/Job.h>
16 namespace BPackageKit {
18 namespace BPrivate {
21 class ActivateRepositoryCacheJob : public BJob {
22 typedef BJob inherited;
24 public:
25 ActivateRepositoryCacheJob(
26 const BContext& context,
27 const BString& title,
28 const BEntry& fetchedRepoCacheEntry,
29 const BString& repositoryName,
30 const BDirectory& targetDirectory);
31 virtual ~ActivateRepositoryCacheJob();
33 protected:
34 virtual status_t Execute();
36 private:
37 BEntry fFetchedRepoCacheEntry;
38 BString fRepositoryName;
39 BDirectory fTargetDirectory;
43 } // namespace BPrivate
45 } // namespace BPackageKit
48 #endif // _PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CACHE_JOB_H_