2013-04-14 18:50:30 +04:00
|
|
|
/*
|
2014-05-02 01:50:18 +04:00
|
|
|
* Copyright 2013-2014, Haiku, Inc. All Rights Reserved.
|
2013-04-14 18:50:30 +04:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _PACKAGE__INSTALLATION_LOCATION_INFO_H_
|
|
|
|
#define _PACKAGE__INSTALLATION_LOCATION_INFO_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include <Node.h>
|
|
|
|
|
|
|
|
#include <package/PackageDefs.h>
|
|
|
|
#include <package/PackageInfoSet.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace BPackageKit {
|
|
|
|
|
|
|
|
|
|
|
|
class BInstallationLocationInfo {
|
|
|
|
public:
|
|
|
|
BInstallationLocationInfo();
|
|
|
|
~BInstallationLocationInfo();
|
|
|
|
|
|
|
|
void Unset();
|
|
|
|
|
|
|
|
BPackageInstallationLocation Location() const;
|
|
|
|
void SetLocation(
|
|
|
|
BPackageInstallationLocation location);
|
|
|
|
|
|
|
|
const node_ref& BaseDirectoryRef() const;
|
|
|
|
status_t SetBaseDirectoryRef(const node_ref& ref);
|
|
|
|
|
|
|
|
const node_ref& PackagesDirectoryRef() const;
|
|
|
|
status_t SetPackagesDirectoryRef(const node_ref& ref);
|
|
|
|
|
2014-05-02 01:50:18 +04:00
|
|
|
const BPackageInfoSet& LatestActivePackageInfos() const;
|
|
|
|
void SetLatestActivePackageInfos(
|
2013-04-14 18:50:30 +04:00
|
|
|
const BPackageInfoSet& infos);
|
|
|
|
|
2014-05-02 01:50:18 +04:00
|
|
|
const BPackageInfoSet& LatestInactivePackageInfos() const;
|
|
|
|
void SetLatestInactivePackageInfos(
|
|
|
|
const BPackageInfoSet& infos);
|
2013-04-14 18:50:30 +04:00
|
|
|
const BPackageInfoSet& infos);
|
|
|
|
|
|
|
|
int64 ChangeCount() const;
|
|
|
|
void SetChangeCount(int64 changeCount);
|
|
|
|
|
|
|
|
private:
|
|
|
|
BPackageInstallationLocation fLocation;
|
|
|
|
node_ref fBaseDirectoryRef;
|
|
|
|
node_ref fPackageDirectoryRef;
|
2014-05-02 01:50:18 +04:00
|
|
|
BPackageInfoSet fLatestActivePackageInfos;
|
|
|
|
BPackageInfoSet fLatestInactivePackageInfos;
|
2013-04-14 18:50:30 +04:00
|
|
|
int64 fChangeCount;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace BPackageKit
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _PACKAGE__INSTALLATION_LOCATION_INFO_H_
|