/* * Copyright 2022-2025, Andrew Lindesay . * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef PACKAGE_KIT_UTILS_H #define PACKAGE_KIT_UTILS_H #include #include #include "PackageInfo.h" #include class PackageKitUtils { public: static status_t DeriveLocalFilePath(const PackageInfoRef package, BPath& result); static BPackageKit::BPackageInstallationLocation DeriveInstallLocation(const PackageInfoRef package); static PackageInfoRef CreatePackageInfo(const BPackageInfo& info); static PackagePublisherInfoRef CreatePublisherInfo(const BPackageInfo& info); private: static status_t _DeriveDirectoryWhich( BPackageKit::BPackageInstallationLocation location, directory_which* which); }; #endif // PACKAGE_KIT_UTILS_H