IPluginInstaller¶
-
class
mobase.IPluginInstaller¶ Bases:
mobase.IPluginThis is the top-level class for installer. Actual installers should inherit either:
IPluginInstallerSimple if the installer can work directly with the archive. This is what most installers use.
IPluginInstallerCustom if the installer needs to perform custom operations. This is only used by the external NCC installer and the OMOD installer.
Methods Summary
isArchiveSupported(tree)Check if the given file tree corresponds to a supported archive for this installer.
Check if this installer is a manual installer.
priority()Retrieve the priority of this installer.
setInstallationManager(manager)Set the installation manager for this installer.
setParentWidget(parent)Set the parent widget for this installer.
Methods Documentation
-
abstract
isArchiveSupported(tree)¶ Check if the given file tree corresponds to a supported archive for this installer.
- Parameters
tree – The tree representing the content of the archive.
- Returns
True if this installer can handle the archive, False otherwise.
- Return type
bool
-
abstract
isManualInstaller()¶ Check if this installer is a manual installer.
- Returns
True if this installer is a manual installer, False otherwise.
- Return type
bool
-
abstract
priority()¶ Retrieve the priority of this installer.
If multiple installers are able to handle an archive, the one with the highest priority wins.
- Returns
The priority of this installer.
- Return type
int
-
setInstallationManager(manager)¶ Set the installation manager for this installer.
Python plugins usually do not need to re-implement this and can directly access the installation manager using _manager().
- Parameters
manager – The installation manager.
-
setParentWidget(parent)¶ Set the parent widget for this installer.
Python plugins usually do not need to re-implement this and can directly access the parent widget using _parentWidget() once the UI has been initialized.
- Parameters
parent – The parent widget.