xref: /haiku/headers/private/package/ActivateRepositoryConfigJob.h (revision 35edda8f0befb8667b593e2314f6d555a7db44d8)
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_CONFIG_JOB_H_
6 #define _HAIKU__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 
16 namespace Haiku {
17 
18 namespace Package {
19 
20 namespace Private {
21 
22 
23 class ActivateRepositoryConfigJob : public Job {
24 	typedef	Job					inherited;
25 
26 public:
27 								ActivateRepositoryConfigJob(
28 									const Context& context,
29 									const BString& title,
30 									const BEntry& archivedRepoConfigEntry,
31 									const BString& repositoryBaseURL,
32 									const BDirectory& targetDirectory);
33 	virtual						~ActivateRepositoryConfigJob();
34 
35 			const BString&		RepositoryName() const;
36 
37 protected:
38 	virtual	status_t			Execute();
39 	virtual	void				Cleanup(status_t jobResult);
40 
41 private:
42 			BEntry				fArchivedRepoConfigEntry;
43 			BString				fRepositoryBaseURL;
44 			BDirectory			fTargetDirectory;
45 			BEntry				fTargetEntry;
46 
47 			BString				fRepositoryName;
48 };
49 
50 
51 }	// namespace Private
52 
53 }	// namespace Package
54 
55 }	// namespace Haiku
56 
57 
58 #endif // _HAIKU__PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CONFIG_JOB_H_
59