Files
haiku-beta6/headers/private/package/ActivateRepositoryConfigJob.h
T

55 lines
1.1 KiB
C++
Raw Normal View History

/*
* Copyright 2011, Oliver Tappe <[email protected]>
* 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 {
2011-01-25 19:36:09 +00:00
typedef BJob inherited;
public:
ActivateRepositoryConfigJob(
const BContext& context,
const BString& title,
2011-02-09 19:11:23 +00:00
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:
2011-02-09 19:11:23 +00:00
BEntry fArchivedRepoInfoEntry;
BString fRepositoryBaseURL;
BDirectory fTargetDirectory;
BEntry fTargetEntry;
BString fRepositoryName;
};
} // namespace BPrivate
} // namespace BPackageKit
#endif // _PACKAGE__PRIVATE__ACTIVATE_REPOSITORY_CONFIG_JOB_H_