Files
haiku-beta6/headers/os/package/RepositoryCache.h
T

54 lines
973 B
C++
Raw Normal View History

/*
* Copyright 2011, Haiku, Inc.
* Distributed under the terms of the MIT License.
*/
#ifndef _PACKAGE__REPOSITORY_CACHE_H_
#define _PACKAGE__REPOSITORY_CACHE_H_
#include <Entry.h>
#include <String.h>
#include <package/PackageInfoSet.h>
2011-02-09 19:11:23 +00:00
#include <package/RepositoryInfo.h>
namespace BPackageKit {
class BRepositoryCache {
2011-07-16 14:02:49 +02:00
public:
typedef BPackageInfoSet::Iterator Iterator;
2011-07-16 14:02:49 +02:00
public:
BRepositoryCache();
virtual ~BRepositoryCache();
status_t SetTo(const BEntry& entry);
2011-02-09 19:11:23 +00:00
const BRepositoryInfo& Info() const;
const BEntry& Entry() const;
bool IsUserSpecific() const;
void SetIsUserSpecific(bool isUserSpecific);
2011-07-16 14:02:49 +02:00
uint32 CountPackages() const;
Iterator GetIterator() const;
private:
2011-07-16 14:02:49 +02:00
struct RepositoryContentHandler;
2011-07-16 14:02:49 +02:00
private:
BEntry fEntry;
2011-02-09 19:11:23 +00:00
BRepositoryInfo fInfo;
bool fIsUserSpecific;
BPackageInfoSet fPackages;
2011-07-16 14:02:49 +02:00
};
} // namespace BPackageKit
#endif // _PACKAGE__REPOSITORY_CACHE_H_