![]() |
Carousel
|
Inherits IComponentInstaller.
Inherited by DirectoryInstaller.
Public Member Functions | |
ComponentInstaller (const QString &destinationDirectory=ComponentInstaller::defaultInstallDir()) | |
void | addExistedComponent (IComponent *component) |
QList< IComponent * > | existedComponents () const |
QStringList | install () |
bool | installComponentInSeparateDir () const |
const QString & | installDirectory () const |
void | setInstallComponentInSeparateDir (bool separate) |
void | setInstallDirectory (const QString &destinationDirectory) |
DependenciesSolvingResult | tryToInstall (const QStringList &componentNames) |
Static Public Member Functions | |
static QString | defaultInstallDir () |
Protected Member Functions | |
virtual IComponentDependencies * | createDependencies () |
virtual QList< IComponent * > | discoverComponents ()=0 |
virtual QList< IComponent * > | loadComponents (const QList< IComponent * > &componentsToInstall)=0 |
|
protectedpure virtual |
When overridden in derived classes discovers the components from the file system or web. The installed components must be from the discovered set.
The ComponentInstaller takes ownership for discovered components.
Implemented in DirectoryInstaller.
|
protectedpure virtual |
When overridden in derived classes loads components if it is needed (e.g. from web) and returns collection of the component proxies, loaded from the ready to copy files.
The ComponentInstaller takes ownership for loaded components.
Implemented in DirectoryInstaller.
|
protectedvirtual |
Creates a default ComponentDependencies to solve component dependencies and install missing ones if it is needed.
The ComponentInstaller takes ownership for it.