Restore the "GPL licensing not permitted" in GLUT license headers.
[haiku.git] / headers / os / package / InstallationLocationInfo.h
blob950011fcfba867a79f3d7d2a7875b3864f8023c8
1 /*
2 * Copyright 2013-2014, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _PACKAGE__INSTALLATION_LOCATION_INFO_H_
6 #define _PACKAGE__INSTALLATION_LOCATION_INFO_H_
9 #include <Node.h>
10 #include <String.h>
12 #include <package/PackageDefs.h>
13 #include <package/PackageInfoSet.h>
16 namespace BPackageKit {
19 class BInstallationLocationInfo {
20 public:
21 BInstallationLocationInfo();
22 ~BInstallationLocationInfo();
24 void Unset();
26 BPackageInstallationLocation Location() const;
27 void SetLocation(
28 BPackageInstallationLocation location);
30 const node_ref& BaseDirectoryRef() const;
31 status_t SetBaseDirectoryRef(const node_ref& ref);
33 const node_ref& PackagesDirectoryRef() const;
34 status_t SetPackagesDirectoryRef(const node_ref& ref);
36 const BPackageInfoSet& LatestActivePackageInfos() const;
37 void SetLatestActivePackageInfos(
38 const BPackageInfoSet& infos);
40 const BPackageInfoSet& LatestInactivePackageInfos() const;
41 void SetLatestInactivePackageInfos(
42 const BPackageInfoSet& infos);
44 const BPackageInfoSet& CurrentlyActivePackageInfos() const;
45 void SetCurrentlyActivePackageInfos(
46 const BPackageInfoSet& infos);
48 const BString& OldStateName() const;
49 void SetOldStateName(const BString& name);
51 int64 ChangeCount() const;
52 void SetChangeCount(int64 changeCount);
54 private:
55 BPackageInstallationLocation fLocation;
56 node_ref fBaseDirectoryRef;
57 node_ref fPackageDirectoryRef;
58 BPackageInfoSet fLatestActivePackageInfos;
59 BPackageInfoSet fLatestInactivePackageInfos;
60 BPackageInfoSet fCurrentlyActivePackageInfos;
61 BString fOldStateName;
62 int64 fChangeCount;
66 } // namespace BPackageKit
69 #endif // _PACKAGE__INSTALLATION_LOCATION_INFO_H_