BInstallationLocationInfo: Provide more info

* If the active state is not the latest state, also provide a package
set for it.
* If an old state has been booted, provide its name.
This commit is contained in:
Ingo Weinhold
2014-05-04 20:59:01 +02:00
parent 5a1c6a7089
commit 4284b6c93a
4 changed files with 79 additions and 9 deletions
@@ -7,6 +7,7 @@
#include <Node.h>
#include <String.h>
#include <package/PackageDefs.h>
#include <package/PackageInfoSet.h>
@@ -39,8 +40,14 @@ public:
const BPackageInfoSet& LatestInactivePackageInfos() const;
void SetLatestInactivePackageInfos(
const BPackageInfoSet& infos);
const BPackageInfoSet& CurrentlyActivePackageInfos() const;
void SetCurrentlyActivePackageInfos(
const BPackageInfoSet& infos);
const BString& OldStateName() const;
void SetOldStateName(const BString& name);
int64 ChangeCount() const;
void SetChangeCount(int64 changeCount);
@@ -50,6 +57,8 @@ private:
node_ref fPackageDirectoryRef;
BPackageInfoSet fLatestActivePackageInfos;
BPackageInfoSet fLatestInactivePackageInfos;
BPackageInfoSet fCurrentlyActivePackageInfos;
BString fOldStateName;
int64 fChangeCount;
};