Manages all the HotPlug extension. More...
#include <HotPlugExtensionManager.h>
Inheritance diagram for camitk::HotPlugExtensionManager:
Collaboration diagram for camitk::HotPlugExtensionManager:Static Public Member Functions | |
| static const QStringList & | getLoadedExtensionFiles () |
| get the list of loaded camitk extension file (file path) | |
| static const QList< HotPlugActionExtension * > & | getLoadedExtensions () |
| get the list of all loaded ActionExtension* | |
| static const QStringList | getRegisteredExtensionFiles () |
| get the list of registered camitk extension file (file path) | |
| static bool | getVerifyOrRebuildOption () |
| get the corresponding settings from persistence | |
| static HotPlugActionExtension * | load (const QString &camitkExtensionFilePath, bool forceRebuild=false, int progressMinimum=0, int progressMaximum=100) |
| load a CamiTK extension file | |
| static bool | loadAll () |
| load all the CamiTK extension files registered in the settings | |
| static bool | registerExtension (const QString &camitkExtensionFilePath) |
| Register an extension described by a CamiTK extension file. | |
| static void | setVerifyOrRebuildOption (bool alwaysRebuild) |
| set the corresponding settings for persistence | |
| static bool | unload (const QString &camitkExtensionFilePath) |
| unload a CamiTK extension file | |
| static bool | unloadAll () |
| unload all the currently loaded CamiTK extension files (delete from memory and from current loaded list) | |
| static bool | unregisterExtension (const QString &camitkExtensionFilePath) |
| Unregister a camitk file. | |
Manages all the HotPlug extension.
HotPlug extension consists of
HotPlug extension are registered in a CamiTK application using their CamiTK extension files. Registered extensions are loaded during application starts by instantiating a HotPlugActionExtension and corresponding HotPlugAction.
|
static |
get the list of loaded camitk extension file (file path)
|
static |
get the list of all loaded ActionExtension*
|
static |
get the list of registered camitk extension file (file path)
References camitk::Application::getName(), and camitk::Application::getSettings().
Referenced by load(), and loadAll().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
get the corresponding settings from persistence
References camitk::Application::getName(), and camitk::Application::getSettings().
Referenced by camitk::CppHotPlugActionExtension::CppHotPlugActionExtension().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
load a CamiTK extension file
| progressMinimum | is the current initial progress value |
| progressMaximum | is the maximum progress bar value to use when loading is finished |
References CAMITK_WARNING_ALT, camitk::HotPlugActionExtension::declaredActionCount(), camitk::ActionExtension::getActions(), getRegisteredExtensionFiles(), camitk::HotPlugActionExtension::initActions(), camitk::HotPlugActionExtension::newHotPlugActionExtension(), camitk::Application::registerAllActions(), camitk::Application::resetProgressBar(), camitk::Application::setProgressBarValue(), camitk::Application::showStatusBarMessage(), and unregisterExtension().
Referenced by loadAll(), main(), and registerExtension().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
load all the CamiTK extension files registered in the settings
References getRegisteredExtensionFiles(), load(), and camitk::Application::setProgressBarValue().
Here is the call graph for this function:
|
static |
Register an extension described by a CamiTK extension file.
Registering will load all the action created by this extension.
References CAMITK_WARNING_ALT, CamiTKExtensionModel::getModel(), camitk::Application::getName(), camitk::Application::getSettings(), and load().
Here is the call graph for this function:
|
static |
set the corresponding settings for persistence
References camitk::Application::getName(), and camitk::Application::getSettings().
Here is the call graph for this function:
|
static |
unload a CamiTK extension file
References camitk::Application::unregisterAllActions().
Referenced by unloadAll(), and unregisterExtension().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
unload all the currently loaded CamiTK extension files (delete from memory and from current loaded list)
References unload().
Here is the call graph for this function:
|
static |
Unregister a camitk file.
Unregistering will also remove the provided actions from the application.
References camitk::Application::getName(), camitk::Application::getSettings(), and unload().
Referenced by load().
Here is the call graph for this function:
Here is the caller graph for this function: