1 /* 2 * Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de> 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _HAIKU__PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CACHE_JOB_H_ 6 #define _HAIKU__PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CACHE_JOB_H_ 7 8 9 #include <Directory.h> 10 #include <Entry.h> 11 #include <String.h> 12 13 #include <package/Job.h> 14 15 16 namespace Haiku { 17 18 namespace Package { 19 20 namespace Private { 21 22 23 class ActivateRepositoryCacheJob : public Job { 24 typedef Job inherited; 25 26 public: 27 ActivateRepositoryCacheJob( 28 const Context& context, 29 const BString& title, 30 const BEntry& fetchedRepoCacheEntry, 31 const BString& repositoryName, 32 const BDirectory& targetDirectory); 33 virtual ~ActivateRepositoryCacheJob(); 34 35 protected: 36 virtual status_t Execute(); 37 38 private: 39 BEntry fFetchedRepoCacheEntry; 40 BString fRepositoryName; 41 BDirectory fTargetDirectory; 42 }; 43 44 45 } // namespace Private 46 47 } // namespace Package 48 49 } // namespace Haiku 50 51 52 #endif // _HAIKU__PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CACHE_JOB_H_ 53