Add support for C++/Qt batch job plugins
These job plugins work similarly to view modules, with the following differences: * These jobs need to link only libcalamares, not libcalamaresui. For this reason, PluginFactory was moved from libcalamaresui to libcalamares. (It depends only on QtCore.) * Instead of deriving from ViewModule, derive from CppJob (which is a subclass of Job). * Like process and Python jobs, a job plugin is a single job, whereas a ViewModule can generate a whole list of jobs. The CppJob and CppJobModule classes are new. In Module::fromDescriptor, the combination type=job, intf=qtplugin is now supported and mapped to CppJobModule.
Showing
- src/libcalamares/CMakeLists.txt 2 additions, 0 deletionssrc/libcalamares/CMakeLists.txt
- src/libcalamares/CppJob.cpp 45 additions, 0 deletionssrc/libcalamares/CppJob.cpp
- src/libcalamares/CppJob.h 51 additions, 0 deletionssrc/libcalamares/CppJob.h
- src/libcalamares/utils/PluginFactory.cpp 0 additions, 0 deletionssrc/libcalamares/utils/PluginFactory.cpp
- src/libcalamares/utils/PluginFactory.h 2 additions, 2 deletionssrc/libcalamares/utils/PluginFactory.h
- src/libcalamares/utils/PluginFactory_p.h 0 additions, 0 deletionssrc/libcalamares/utils/PluginFactory_p.h
- src/libcalamaresui/CMakeLists.txt 1 addition, 2 deletionssrc/libcalamaresui/CMakeLists.txt
- src/libcalamaresui/modulesystem/CppJobModule.cpp 128 additions, 0 deletionssrc/libcalamaresui/modulesystem/CppJobModule.cpp
- src/libcalamaresui/modulesystem/CppJobModule.h 53 additions, 0 deletionssrc/libcalamaresui/modulesystem/CppJobModule.h
- src/libcalamaresui/modulesystem/Module.cpp 6 additions, 1 deletionsrc/libcalamaresui/modulesystem/Module.cpp
src/libcalamares/CppJob.cpp
0 → 100644
src/libcalamares/CppJob.h
0 → 100644
File moved
File moved
Please register or sign in to comment