* more work on the package kit, repositories can now be added and
refreshed git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40280 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2011, Oliver Tappe <[email protected]>
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _HAIKU__PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CACHE_JOB_H_
|
||||
#define _HAIKU__PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CACHE_JOB_H_
|
||||
|
||||
|
||||
#include <Directory.h>
|
||||
#include <Entry.h>
|
||||
#include <String.h>
|
||||
|
||||
#include <package/Job.h>
|
||||
|
||||
|
||||
namespace Haiku {
|
||||
|
||||
namespace Package {
|
||||
|
||||
namespace Private {
|
||||
|
||||
|
||||
class ActivateRepositoryCacheJob : public Job {
|
||||
typedef Job inherited;
|
||||
|
||||
public:
|
||||
ActivateRepositoryCacheJob(
|
||||
const Context& context,
|
||||
const BString& title,
|
||||
const BEntry& fetchedRepoCacheEntry,
|
||||
const BString& repositoryName,
|
||||
const BDirectory& targetDirectory);
|
||||
virtual ~ActivateRepositoryCacheJob();
|
||||
|
||||
protected:
|
||||
virtual status_t Execute();
|
||||
|
||||
private:
|
||||
BEntry fFetchedRepoCacheEntry;
|
||||
BString fRepositoryName;
|
||||
BDirectory fTargetDirectory;
|
||||
};
|
||||
|
||||
|
||||
} // namespace Private
|
||||
|
||||
} // namespace Package
|
||||
|
||||
} // namespace Haiku
|
||||
|
||||
|
||||
#endif // _HAIKU__PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CACHE_JOB_H_
|
||||
Reference in New Issue
Block a user