LibEngsas
Static Public Member Functions | List of all members
ELibrary Class Reference

This class provides information about the LibEngsas and loads EPart's. More...

#include <elibrary.h>

Static Public Member Functions

static QDir ePartDirectory ()
 Returns the directory containing EPart's. More...
 
static EPartloadEPartFirstTime (QString ePart, QString &error)
 This function loads an EPart and does nothing with it. More...
 
static EPartloadEPart (EPart *part, QString ePart, QString &error, bool doSetupApplication=true)
 Tries to load the EPart with name or absolute path ePart. More...
 
static bool setupApplication (EPart *part, QString &error)
 Wrapper for setupQApplication( QString, QString& ) More...
 
static bool setupApplication (QString shortName, QString version, QString &error)
 Sets the QApplication::organizationName() and QApplication::applicationName() to proper values. More...
 
static bool loadTranslations (EPart *part, QString &error)
 Wrapper for loadTranslations (QString, QString&) More...
 
static bool loadTranslations (QString dir, QString &error)
 Loads all translations from dir. More...
 
static bool loadResources (EPart *part, QString &error)
 Wrapper for loadResources(QString, QString&) More...
 
static bool loadResources (QString dir, QString &error)
 Loads the resources at dir. It also loads the resources of LibEngsas. More...
 
static QString manufacturer ()
 Returns the name of the manufacturer. More...
 
static QUrl website ()
 Returns the website of EngSaS for the active language. More...
 
static ESettingsModelItemsettingsModelItem ()
 Returns a ESettingsModelItem with all pages for ELibrary settings. More...
 
static EngSaS::AboutPersons aboutPersons ()
 Returns a list of persons, related to LibEngsas. More...
 

Detailed Description

This class provides information about the LibEngsas and loads EPart's.

Therefore it can be used to determine EPart directory and more.

Member Function Documentation

EngSaS::AboutPersons ELibrary::aboutPersons ( )
static

Returns a list of persons, related to LibEngsas.

+ Here is the caller graph for this function:

QDir ELibrary::ePartDirectory ( )
static

Returns the directory containing EPart's.

+ Here is the caller graph for this function:

EPart * ELibrary::loadEPart ( EPart part,
QString  ePart,
QString &  error,
bool  doSetupApplication = true 
)
static

Tries to load the EPart with name or absolute path ePart.

If only a name is specified, the EPart is searched at the standard EPart directory, which is returned by ePartDirectory(). The path can be accessed within CMake with help of ${LIBENGSAS_EPART_DIR} after LibEngsas has been found.

If the EPart can be loaded, it also tries to load the translations and resources for this part. To setup the meta data call setupApplication() after creating your QApplication or KApplication instance or leave doSetupApplication true to let this function do the setup.

Note
This function deletes part.
See also
setupApplication(QString, QString&)
loadTranslations(QString, QString&)
loadResources(QString, QString&)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

EPart * ELibrary::loadEPartFirstTime ( QString  ePart,
QString &  error 
)
static

This function loads an EPart and does nothing with it.

This function should be used to get the EPart the first time to set up the application and before the creation of KApplication or QApplication. After load it correctly again with loadEPart(), if the application was started.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ELibrary::loadResources ( EPart part,
QString &  error 
)
static

Wrapper for loadResources(QString, QString&)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ELibrary::loadResources ( QString  dir,
QString &  error 
)
static

Loads the resources at dir. It also loads the resources of LibEngsas.

bool ELibrary::loadTranslations ( EPart part,
QString &  error 
)
static

Wrapper for loadTranslations (QString, QString&)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ELibrary::loadTranslations ( QString  dir,
QString &  error 
)
static

Loads all translations from dir.

Also translations for LibEngsas and Qt library are loaded.

QString ELibrary::manufacturer ( )
static

Returns the name of the manufacturer.

+ Here is the caller graph for this function:

ESettingsModelItem * ELibrary::settingsModelItem ( )
static

Returns a ESettingsModelItem with all pages for ELibrary settings.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ELibrary::setupApplication ( EPart part,
QString &  error 
)
static

Wrapper for setupQApplication( QString, QString& )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ELibrary::setupApplication ( QString  shortName,
QString  version,
QString &  error 
)
static

Sets the QApplication::organizationName() and QApplication::applicationName() to proper values.

QUrl ELibrary::website ( )
static

Returns the website of EngSaS for the active language.

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: