PackageManager API

NAOqi Core - Overview | API


Namespace : qi

PackageManager do not have yet a specialized proxy.

Methods

bool PackageManager::install(const std::string& path)

Install a package from a path.

Parameters:
  • path – The path to the package file.
bool PackageManager::installCheckMd5(const std::string& path, const std::string& md5)

Check for md5 compatibility then, if successful, install the package from a path.

Parameters:
  • path – The path to the package file.
  • md5 – The hash of the package file.
bool PackageManager::hasPackage(const std::string& uuid)

Check for existence of a package with his uuid.

Parameters:
  • uuid – The uid of the package to look for.
void PackageManager::removePkg(const std::string& uuid)

Remove a package with his uuid. Throw if no package has this uuid.

Parameters:
  • uuid – The uid of the package to remove.
qi::PackageInfoList PackageManager::packages()

Get the list of all installed packages.

qi::PackageInfo PackageManager::package(const std::string& uuid)

Get a package with his uuid. Throw if no package has this uuid.

Parameters:
  • uuid – The uid of the package.
std::string PackageManager::packageIcon(const std::string& uuid)

Get the icon of the package specified by this uuid.

Parameters:
  • uuid – The uid of the package.

Signals

qi::Signal<qi::PackageInfo> PackageManager::onPackageInstalled

Signal emitted after a package has been emitted.

qi::Signal<qi::PackageInfo> PackageManager::onPackageRemoved

Signal emitted after a package has been removed.