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_CONFIG_JOB_H_ 6#define _PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CONFIG_JOB_H_ 7 8 9#include <Directory.h> 10#include <Entry.h> 11#include <String.h> 12 13#include <package/Job.h> 14 15 16namespace BPackageKit { 17 18namespace BPrivate { 19 20 21class ActivateRepositoryConfigJob : public BJob { 22 typedef BJob inherited; 23 24public: 25 ActivateRepositoryConfigJob( 26 const BContext& context, 27 const BString& title, 28 const BEntry& archivedRepoInfoEntry, 29 const BString& repositoryBaseURL, 30 const BDirectory& targetDirectory); 31 virtual ~ActivateRepositoryConfigJob(); 32 33 const BString& RepositoryName() const; 34 35protected: 36 virtual status_t Execute(); 37 virtual void Cleanup(status_t jobResult); 38 39private: 40 BEntry fArchivedRepoInfoEntry; 41 BString fRepositoryBaseURL; 42 BDirectory fTargetDirectory; 43 BEntry fTargetEntry; 44 45 BString fRepositoryName; 46}; 47 48 49} // namespace BPrivate 50 51} // namespace BPackageKit 52 53 54#endif // _PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CONFIG_JOB_H_ 55