#include <CMakeProjectManager.h>
Public Types | |
| enum | CMakeProjectManagerStage { Check_System , Generate_Source_Files , Configure_CMake , Build_Project , Run_CamiTK_Config , Check_Integration , Cleanup } |
| Known stages that can be set in the stage configuration. More... | |
Signals | |
| void | allStagesFinished (bool status) |
| sent when all the stage are finished (with the given overall status) | |
| void | stageFinished (const QString &stage, bool success, const QString &output) |
| sent when the given stage is finished (with the given status and output) | |
| void | stageStarted (const QString &stage) |
| sent when the given stage is starting | |
Public Member Functions | |
| CMakeProjectManager (const QString &camitkFilePath, QObject *parent=nullptr) | |
| constructor | |
| QString | getCurrentStage () const |
| current stage | |
| QString | getStageName (CMakeProjectManagerStage value) const |
| utility method to get the QString equivalent of the given stage (underscores are replaced by space) | |
| QStringList | getStages () const |
| get all the stages that were setup | |
| void | setStages (QList< CMakeProjectManagerStage > stagesToPerform) |
| you can override default stages by sending an non empty list of stages to perform | |
| void | start () |
| starts all the setup stages | |
| bool | success () const |
| current value of the process | |
| ~CMakeProjectManager () | |
Known stages that can be set in the stage configuration.
| CMakeProjectManager::CMakeProjectManager | ( | const QString & | camitkFilePath, |
| QObject * | parent = nullptr ) |
constructor
| camitkFilePath | the full path of the camitk file (with the .camitk extension) |
| parent | (optional) |
References Build_Project, Check_Integration, Check_System, Cleanup, Configure_CMake, Generate_Source_Files, and Run_CamiTK_Config.
| CMakeProjectManager::~CMakeProjectManager | ( | ) |
|
signal |
sent when all the stage are finished (with the given overall status)
Referenced by CMakeProjectManagerPresenter::CMakeProjectManagerPresenter().
| QString CMakeProjectManager::getCurrentStage | ( | ) | const |
current stage
References getStageName().
| QString CMakeProjectManager::getStageName | ( | CMakeProjectManagerStage | value | ) | const |
utility method to get the QString equivalent of the given stage (underscores are replaced by space)
Referenced by getCurrentStage(), and getStages().
| QStringList CMakeProjectManager::getStages | ( | ) | const |
get all the stages that were setup
References getStageName().
| void CMakeProjectManager::setStages | ( | QList< CMakeProjectManagerStage > | stagesToPerform | ) |
you can override default stages by sending an non empty list of stages to perform
|
signal |
sent when the given stage is finished (with the given status and output)
References success().
Referenced by CMakeProjectManagerPresenter::CMakeProjectManagerPresenter().
|
signal |
sent when the given stage is starting
Referenced by CMakeProjectManagerPresenter::CMakeProjectManagerPresenter().
| void CMakeProjectManager::start | ( | ) |
starts all the setup stages
| bool CMakeProjectManager::success | ( | ) | const |
current value of the process
Referenced by stageFinished().