haiku/headers/os/package/InstallationLocationInfo.h

60 lines
1.4 KiB
C++

/*
* Copyright 2013, Haiku, Inc. All Rights Reserved.
* 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);
const BPackageInfoSet& ActivePackageInfos() const;
void SetActivePackageInfos(
const BPackageInfoSet& infos);
const BPackageInfoSet& InactivePackageInfos() const;
void SetInactivePackageInfos(
const BPackageInfoSet& infos);
int64 ChangeCount() const;
void SetChangeCount(int64 changeCount);
private:
BPackageInstallationLocation fLocation;
node_ref fBaseDirectoryRef;
node_ref fPackageDirectoryRef;
BPackageInfoSet fActivePackageInfos;
BPackageInfoSet fInactivePackageInfos;
int64 fChangeCount;
};
} // namespace BPackageKit
#endif // _PACKAGE__INSTALLATION_LOCATION_INFO_H_