Restore the "GPL licensing not permitted" in GLUT license headers.
[haiku.git] / headers / os / package / RepositoryCache.h
blobe21c8261997df214272a9f26f23e1ec230ff72d4
1 /*
2 * Copyright 2011, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _PACKAGE__REPOSITORY_CACHE_H_
6 #define _PACKAGE__REPOSITORY_CACHE_H_
9 #include <Entry.h>
10 #include <String.h>
12 #include <package/PackageInfoSet.h>
13 #include <package/RepositoryInfo.h>
16 namespace BPackageKit {
19 class BRepositoryCache {
20 public:
21 typedef BPackageInfoSet::Iterator Iterator;
23 public:
24 BRepositoryCache();
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;
38 private:
39 struct RepositoryContentHandler;
41 private:
42 BEntry fEntry;
43 BRepositoryInfo fInfo;
44 bool fIsUserSpecific;
46 BPackageInfoSet fPackages;
50 } // namespace BPackageKit
53 #endif // _PACKAGE__REPOSITORY_CACHE_H_