|
Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
|
#include <FilesystemInstaller.h>
Public Types | |
| using | ProgressCallback = std::function<void(unsigned int progress, unsigned int total)> |
Public Member Functions | |
| CFilesystemInstaller () | |
| bool | InstallToFilesystem (const std::string &archive, const std::string &addonId, const ProgressCallback &onProgress) const |
| bool | UnInstallFromFilesystem (const std::string &addonPath) const |
Responsible for safely unpacking/copying/removing addon files from/to the addon folder.
| using CFilesystemInstaller::ProgressCallback = std::function<void(unsigned int progress, unsigned int total)> |
| CFilesystemInstaller::CFilesystemInstaller | ( | ) |
| bool CFilesystemInstaller::InstallToFilesystem | ( | const std::string & | archive, |
| const std::string & | addonId, | ||
| const ProgressCallback & | onProgress ) const |
| archive | Absolute path to zip file to install. |
| addonId | |
| onProgress | Called repeatedly while unpacking, may be empty. |
| bool CFilesystemInstaller::UnInstallFromFilesystem | ( | const std::string & | addonPath | ) | const |