MiKTeX 23.10-next
A scalable TeX distribution
|
Public Member Functions | |
PackageInstallerImpl (std::shared_ptr< MiKTeX::Packages::D6AAD62216146D44B580E92711724B78::PackageManagerImpl > manager, const InitInfo &initInfo) | |
void | Dispose () override |
Releases all resources used by this package installer object. More... | |
void | Download () override |
void | DownloadAsync () override |
void | FindUpdatesAsync () override |
void | FindUpgradesAsync (PackageLevel packageLevel) override |
void | InstallRemove (Role role) override |
void | InstallRemoveAsync (Role role) override |
void | OnBeginFileExtraction (const std::string &fileName, std::size_t uncompressedSize) override |
void | OnEndFileExtraction (const std::string &fileName, std::size_t uncompressedSize) override |
bool | OnError (const std::string &message) override |
bool | OnProcessOutput (const void *pOutput, std::size_t n) override |
void | OnProgress () override |
void | RegisterComponents (bool doRegister) override |
void | SetCallback (PackageInstallerCallback *callback) override |
void | UpdateDbAsync () override |
void | WaitForCompletion () override |
Waits for the started thread to complete. More... | |
void | FindUpdates () override |
Checks for updates. More... | |
void | FindUpgrades (PackageLevel packageLevel) override |
ProgressInfo | GetProgressInfo () override |
std::vector< UpdateInfo > | GetUpdates () override |
std::vector< UpgradeInfo > | GetUpgrades () override |
bool | IsRunning () const override |
void | SetDownloadDirectory (const MiKTeX::Util::PathName &directory) override |
void | SetFileList (const std::vector< std::string > &tbi) override |
void | SetFileLists (const std::vector< std::string > &tbi, const std::vector< std::string > &tbr) override |
void | SetPackageLevel (PackageLevel packageLevel) override |
void | SetRepository (const std::string &repository) override |
void | UpdateDb (UpdateDbOptionSet options) override |
Synchronizes the package database. More... | |
virtual void | OnProgress ()=0 |
virtual bool | ReadDirectory (const MiKTeX::Util::PathName &path, std::vector< std::string > &subDirNames, std::vector< std::string > &fileNames, std::vector< std::string > &fileNameInfos)=0 |
virtual bool | OnProgress (unsigned level, const MiKTeX::Util::PathName &directory)=0 |
virtual bool | OnProcessOutput (const void *output, std::size_t n)=0 |
virtual void | OnBeginFileExtraction (const std::string &fileName, std::size_t uncompressedSize)=0 |
virtual void | OnEndFileExtraction (const std::string &fileName, std::size_t uncompressedSize)=0 |
virtual bool | OnError (const std::string &message)=0 |
virtual void | Dispose ()=0 |
Releases all resources used by this package installer object. More... | |
virtual void | SetRepository (const std::string &repository)=0 |
virtual void | SetDownloadDirectory (const MiKTeX::Util::PathName &directory)=0 |
virtual void | UpdateDb (UpdateDbOptionSet options)=0 |
Synchronizes the package database. More... | |
virtual void | UpdateDbAsync ()=0 |
virtual void | FindUpdates ()=0 |
Checks for updates. More... | |
virtual void | FindUpdatesAsync ()=0 |
virtual std::vector< UpdateInfo > | GetUpdates ()=0 |
virtual void | FindUpgrades (PackageLevel packageLevel)=0 |
virtual void | FindUpgradesAsync (PackageLevel packageLevel)=0 |
virtual std::vector< UpgradeInfo > | GetUpgrades ()=0 |
virtual void | InstallRemove (Role role)=0 |
virtual void | InstallRemoveAsync (Role role)=0 |
virtual void | WaitForCompletion ()=0 |
Waits for the started thread to complete. More... | |
virtual void | Download ()=0 |
virtual void | DownloadAsync ()=0 |
virtual ProgressInfo | GetProgressInfo ()=0 |
virtual void | SetCallback (PackageInstallerCallback *callback)=0 |
virtual void | SetFileLists (const std::vector< std::string > &toBeInstalled, const std::vector< std::string > &toBeRemoved)=0 |
virtual void | SetPackageLevel (PackageLevel packageLevel)=0 |
virtual void | SetFileList (const std::vector< std::string > &toBeInstalled)=0 |
virtual bool | IsRunning () const =0 |
virtual void | RegisterComponents (bool postInstall)=0 |
Additional Inherited Members | |
Public Types inherited from MiKTeX::Packages::PackageInstaller | |
enum class | Role { Application , Installer , Updater } |
Installation role. More... | |
|
overridevirtual |
Releases all resources used by this package installer object.
Implements MiKTeX::Packages::PackageInstaller.
|
overridevirtual |
Downloads packages.
Implements MiKTeX::Packages::PackageInstaller.
|
overridevirtual |
Downloads packages in a secondary thread.
Implements MiKTeX::Packages::PackageInstaller.
|
inlineoverridevirtual |
Checks for updates.
Implements MiKTeX::Packages::PackageInstaller.
|
overridevirtual |
Checks for updates in a secondary thread.
Implements MiKTeX::Packages::PackageInstaller.
|
inlineoverridevirtual |
Checks for upgradeable packages.
packageLevel | The requested package level. |
Implements MiKTeX::Packages::PackageInstaller.
|
overridevirtual |
Checks for upgrades in a secondary thread.
Implements MiKTeX::Packages::PackageInstaller.
|
inlineoverridevirtual |
Gets progress information.
Implements MiKTeX::Packages::PackageInstaller.
|
inlineoverridevirtual |
Gets updateable packages.
Implements MiKTeX::Packages::PackageInstaller.
|
inlineoverridevirtual |
Gets upgradeable packages.
Implements MiKTeX::Packages::PackageInstaller.
|
overridevirtual |
Installs/removes packages.
role | The installation role. |
Implements MiKTeX::Packages::PackageInstaller.
|
overridevirtual |
Installs/removes packages in a secondary thread.
role | The installation role. |
Implements MiKTeX::Packages::PackageInstaller.
|
inlineoverridevirtual |
Tests if the secondary thread is running.
true
, if the installer is running. Implements MiKTeX::Packages::PackageInstaller.
|
overridevirtual |
Implements MiKTeX::Extractor::IExtractCallback.
|
overridevirtual |
Implements MiKTeX::Extractor::IExtractCallback.
|
overridevirtual |
Implements MiKTeX::Extractor::IExtractCallback.
|
overridevirtual |
Output function. Called by the Process
object if new output text is available.
output | Output text bytes. |
n | Number of output text bytes. |
true
, if the Process
object shall continue. Implements MiKTeX::Core::IRunProcessCallback.
|
overridevirtual |
Implements MiKTeX::Packages::internal::IProgressNotify_.
|
overridevirtual |
Performs post-processing tasks.
postInstall | Indicates whether this is post-install or post-uninstall. |
Implements MiKTeX::Packages::PackageInstaller.
|
overridevirtual |
Sets the callback interface.
callback | Pointer to object implementing the interface. |
Implements MiKTeX::Packages::PackageInstaller.
|
inlineoverridevirtual |
Sets the download directory for this package installer.
directory | The path to the download directory. |
Implements MiKTeX::Packages::PackageInstaller.
|
inlineoverridevirtual |
Sets the package lists.
toBeInstalled | Packages to be installed. |
Implements MiKTeX::Packages::PackageInstaller.
|
inlineoverridevirtual |
Sets the package lists.
Implements MiKTeX::Packages::PackageInstaller.
|
inlineoverridevirtual |
Sets the package level.
packageLevel | The package level to set. |
Implements MiKTeX::Packages::PackageInstaller.
|
inlineoverridevirtual |
Sets the package repository for this package installer object.
repository | The location of the package repository. Either an URL or an absolute path name. |
Implements MiKTeX::Packages::PackageInstaller.
|
inlineoverridevirtual |
Synchronizes the package database.
Implements MiKTeX::Packages::PackageInstaller.
|
overridevirtual |
Starts the package database synchronization thread.
Implements MiKTeX::Packages::PackageInstaller.
|
overridevirtual |
Waits for the started thread to complete.
Implements MiKTeX::Packages::PackageInstaller.