0d68f6afb3
* fleshed out RepositoryWriterImpl * renamed BRepositoryHeader to BRepositoryInfo (in accordance with BPackageInfo) * adjusted BRepositoryInfo to be able to parse itself from a driver_settings file * added package_repo binary (only 'create' works as of yet) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40405 a95241bf-73f2-0310-859d-f6bbb57e9c96
55 lines
1.1 KiB
C++
55 lines
1.1 KiB
C++
/*
|
|
* Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CONFIG_JOB_H_
|
|
#define _PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CONFIG_JOB_H_
|
|
|
|
|
|
#include <Directory.h>
|
|
#include <Entry.h>
|
|
#include <String.h>
|
|
|
|
#include <package/Job.h>
|
|
|
|
|
|
namespace BPackageKit {
|
|
|
|
namespace BPrivate {
|
|
|
|
|
|
class ActivateRepositoryConfigJob : public BJob {
|
|
typedef BJob inherited;
|
|
|
|
public:
|
|
ActivateRepositoryConfigJob(
|
|
const BContext& context,
|
|
const BString& title,
|
|
const BEntry& archivedRepoInfoEntry,
|
|
const BString& repositoryBaseURL,
|
|
const BDirectory& targetDirectory);
|
|
virtual ~ActivateRepositoryConfigJob();
|
|
|
|
const BString& RepositoryName() const;
|
|
|
|
protected:
|
|
virtual status_t Execute();
|
|
virtual void Cleanup(status_t jobResult);
|
|
|
|
private:
|
|
BEntry fArchivedRepoInfoEntry;
|
|
BString fRepositoryBaseURL;
|
|
BDirectory fTargetDirectory;
|
|
BEntry fTargetEntry;
|
|
|
|
BString fRepositoryName;
|
|
};
|
|
|
|
|
|
} // namespace BPrivate
|
|
|
|
} // namespace BPackageKit
|
|
|
|
|
|
#endif // _PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CONFIG_JOB_H_
|