2 * Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
3 * Distributed under the terms of the MIT License.
5 #ifndef _PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CONFIG_JOB_H_
6 #define _PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CONFIG_JOB_H_
13 #include <package/Job.h>
16 namespace BPackageKit
{
21 class ActivateRepositoryConfigJob
: public BJob
{
22 typedef BJob inherited
;
25 ActivateRepositoryConfigJob(
26 const BContext
& context
,
28 const BEntry
& archivedRepoInfoEntry
,
29 const BString
& repositoryBaseURL
,
30 const BDirectory
& targetDirectory
);
31 virtual ~ActivateRepositoryConfigJob();
33 const BString
& RepositoryName() const;
36 virtual status_t
Execute();
37 virtual void Cleanup(status_t jobResult
);
40 BEntry fArchivedRepoInfoEntry
;
41 BString fRepositoryBaseURL
;
42 BDirectory fTargetDirectory
;
45 BString fRepositoryName
;
49 } // namespace BPrivate
51 } // namespace BPackageKit
54 #endif // _PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CONFIG_JOB_H_