2 * Copyright 2011, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
5 #ifndef _PACKAGE__REPOSITORY_CACHE_H_
6 #define _PACKAGE__REPOSITORY_CACHE_H_
12 #include <package/PackageInfoSet.h>
13 #include <package/RepositoryInfo.h>
16 namespace BPackageKit
{
19 class BRepositoryCache
{
21 typedef BPackageInfoSet::Iterator Iterator
;
25 virtual ~BRepositoryCache();
27 status_t
SetTo(const BEntry
& entry
);
29 const BRepositoryInfo
& Info() const;
30 const BEntry
& Entry() const;
31 bool IsUserSpecific() const;
33 void SetIsUserSpecific(bool isUserSpecific
);
35 uint32
CountPackages() const;
36 Iterator
GetIterator() const;
39 struct RepositoryContentHandler
;
43 BRepositoryInfo fInfo
;
46 BPackageInfoSet fPackages
;
50 } // namespace BPackageKit
53 #endif // _PACKAGE__REPOSITORY_CACHE_H_