2 * Copyright 2013-2014, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef _PACKAGE__INSTALLATION_LOCATION_INFO_H_
6 #define _PACKAGE__INSTALLATION_LOCATION_INFO_H_
12 #include <package/PackageDefs.h>
13 #include <package/PackageInfoSet.h>
16 namespace BPackageKit
{
19 class BInstallationLocationInfo
{
21 BInstallationLocationInfo();
22 ~BInstallationLocationInfo();
26 BPackageInstallationLocation
Location() const;
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
);
55 BPackageInstallationLocation fLocation
;
56 node_ref fBaseDirectoryRef
;
57 node_ref fPackageDirectoryRef
;
58 BPackageInfoSet fLatestActivePackageInfos
;
59 BPackageInfoSet fLatestInactivePackageInfos
;
60 BPackageInfoSet fCurrentlyActivePackageInfos
;
61 BString fOldStateName
;
66 } // namespace BPackageKit
69 #endif // _PACKAGE__INSTALLATION_LOCATION_INFO_H_