Carousel
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
ComponentInstaller Class Referenceabstract

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 QStringinstallDirectory () 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 IComponentDependenciescreateDependencies ()
 
virtual QList< IComponent * > discoverComponents ()=0
 
virtual QList< IComponent * > loadComponents (const QList< IComponent * > &componentsToInstall)=0
 

Member Function Documentation

virtual QList<IComponent *> ComponentInstaller::discoverComponents ( )
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.

virtual QList<IComponent *> ComponentInstaller::loadComponents ( const QList< IComponent * > &  componentsToInstall)
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.

virtual IComponentDependencies* ComponentInstaller::createDependencies ( )
protectedvirtual

Creates a default ComponentDependencies to solve component dependencies and install missing ones if it is needed.

The ComponentInstaller takes ownership for it.