* 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:
@@ -2,23 +2,52 @@
|
||||
* Copyright 2011, Haiku, Inc.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _REPOSITORY_H_
|
||||
#define _REPOSITORY_H_
|
||||
#ifndef _HAIKU__PACKAGE__REPOSITORY_CACHE_H_
|
||||
#define _HAIKU__PACKAGE__REPOSITORY_CACHE_H_
|
||||
|
||||
|
||||
#include <Archivable.h>
|
||||
#include <Entry.h>
|
||||
#include <String.h>
|
||||
|
||||
|
||||
class BMessage;
|
||||
class BEntry;
|
||||
|
||||
|
||||
class BRepository {
|
||||
namespace Haiku {
|
||||
|
||||
namespace Package {
|
||||
|
||||
|
||||
//class RepositoryHeader;
|
||||
|
||||
|
||||
class RepositoryCache {
|
||||
public:
|
||||
BRepository(const char* url);
|
||||
RepositoryCache();
|
||||
RepositoryCache(const BEntry& entry);
|
||||
virtual ~RepositoryCache();
|
||||
|
||||
public:
|
||||
static BArchivable* Instantiate(BMessage* archive);
|
||||
status_t SetTo(const BEntry& entry);
|
||||
status_t InitCheck() const;
|
||||
|
||||
// const RepositoryHeader* Header() const;
|
||||
const BEntry& Entry() const;
|
||||
bool IsUserSpecific() const;
|
||||
|
||||
void SetIsUserSpecific(bool isUserSpecific);
|
||||
|
||||
private:
|
||||
status_t fInitStatus;
|
||||
|
||||
BEntry fEntry;
|
||||
// RepositoryHeader* fHeader;
|
||||
bool fIsUserSpecific;
|
||||
};
|
||||
|
||||
|
||||
#endif // _REPOSITORY_H_
|
||||
} // namespace Package
|
||||
|
||||
} // namespace Haiku
|
||||
|
||||
|
||||
#endif // _HAIKU__PACKAGE__REPOSITORY_CACHE_H_
|
||||
|
||||
Reference in New Issue
Block a user