vfs: check userland buffers before reading them.
[haiku.git] / headers / private / package / ActivateRepositoryConfigJob.h
blobb48583b75b8d7c2481b42fa8cb6efb74d32cb7b2
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_
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 ActivateRepositoryConfigJob : public BJob {
22 typedef BJob inherited;
24 public:
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();
33 const BString& RepositoryName() const;
35 protected:
36 virtual status_t Execute();
37 virtual void Cleanup(status_t jobResult);
39 private:
40 BEntry fArchivedRepoInfoEntry;
41 BString fRepositoryBaseURL;
42 BDirectory fTargetDirectory;
43 BEntry fTargetEntry;
45 BString fRepositoryName;
49 } // namespace BPrivate
51 } // namespace BPackageKit
54 #endif // _PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CONFIG_JOB_H_