Commit Graph

42 Commits

Author SHA1 Message Date
Teo Mrnjavac
fb44fb97b6 Massive refactor of module loading, configuration, startup, management. 2015-09-15 16:48:42 +02:00
Teo Mrnjavac
3b56c5c9e8 Use safe QTimer::singleShot connection. 2015-09-15 16:48:41 +02:00
Teo Mrnjavac
506e51598d Do not dereference a nullptr. 2015-06-21 01:39:28 +02:00
Teo Mrnjavac
11f5b729a8 Avoid dereferencing nullptr. 2015-06-14 01:10:50 +02:00
Teo Mrnjavac
df9daf8fec Avoid accessing nullptr. 2015-06-14 01:02:50 +02:00
Teo Mrnjavac
233d759a00 Initialize all members even in private ctor. 2015-06-13 21:41:49 +02:00
Teo Mrnjavac
8e16bea3d9 Remove unused members. 2015-06-13 21:32:06 +02:00
Teo Mrnjavac
dda7ea211d Make ModuleManager accessible from outside CalamaresApplication. 2015-03-10 19:51:08 +01:00
Teo Mrnjavac
4e2e964503 Return configurationMap from Module. 2015-03-10 19:51:08 +01:00
Gormogon
e2d05cb9f2 Align Pointers 2015-02-25 19:57:19 -05:00
Teo Mrnjavac
20bc34029d Copyright. 2015-01-29 22:46:07 +01:00
Teo Mrnjavac
a670de3035 Add currentPhase to ModuleManager. 2015-01-29 22:46:07 +01:00
Teo Mrnjavac
fef448833e And some more debug output readability improvements. 2014-10-30 17:36:56 +01:00
Teo Mrnjavac
f2f73b2e87 More meaningful debug output. 2014-10-30 17:30:13 +01:00
Teo Mrnjavac
aaa696f543 Even less debug noise. 2014-10-30 17:25:16 +01:00
Teo Mrnjavac
5b01925d99 Remove debug noise. 2014-10-30 16:26:54 +01:00
Teo Mrnjavac
519ba038cf Fix build on Qt 5.4, again. 2014-10-28 18:30:37 +01:00
Teo Mrnjavac
9ebc881223 Prevent segfault on exit when module not found. 2014-10-07 16:07:28 +02:00
Teo Mrnjavac
7a3ce363b3 Add option to run process jobmodules in chroot. 2014-08-12 14:26:10 +02:00
Aurélien Gâteau
df89a391c4 Do not try to dereference m_viewStep if it's invalid 2014-08-09 09:10:26 +02:00
Teo Mrnjavac
f5b4de67c4 Properly load module config files with an explicit config path. 2014-08-07 18:05:46 +02:00
Teo Mrnjavac
014469c849 Improve logging in Module.cpp 2014-08-06 16:16:25 +02:00
Teo Mrnjavac
8f10c21e5b Big configuration overhaul.
Module descriptors are now module.desc, no configuration allowed inside.
Module config files are <modulename>.conf, installed in
share/calamares/modules.
settings.conf is read from /etc/calamares, then share/calamares, and if
running with --debug also in the current dir.
Module config files are read from /etc/calamares/modules, then
share/calamares/modules, and if running with --debug also in
src/modules/<modulename> relative to the current dir.
2014-08-06 11:54:45 +02:00
Aurélien Gâteau
551a6ff9ba Fix potential memleak 2014-07-30 22:37:05 +02:00
Aurélien Gâteau
b5b72855c3 Queue module jobs in the order they are listed in the "install" section of settings.conf 2014-07-22 16:54:34 +02:00
Teo Mrnjavac
d9f4c74537 Add support for config map to Python job API.
Rename PythonJobHelper ==> CalamaresPython::Helper.
Add QVariant to boost::python::object conversion functions.
Rename some constants in the libcalamares Python API.
2014-07-18 14:36:30 +02:00
Teo Mrnjavac
2f03dfa43b CalamaresPrivate ==> CalamaresPython 2014-07-18 14:36:30 +02:00
Teo Mrnjavac
50ba57a33a Add optional Python jobmodules support to libcalamaresui. 2014-07-16 16:09:53 +02:00
Teo Mrnjavac
df9f803572 Actually load the additional config map into the ViewStep. 2014-07-15 11:29:21 +02:00
Teo Mrnjavac
2ef5df314b Make extra configuration map protected in Module. 2014-07-15 11:27:26 +02:00
Teo Mrnjavac
c7c4e52849 Load additional module-specific configuration into a Module object. 2014-07-14 18:10:48 +02:00
Teo Mrnjavac
2dd88344e5 Instantiate the correct type of module from module.conf. 2014-07-14 14:29:24 +02:00
Teo Mrnjavac
1dca92947c Add already loaded check to ProcessJobModule 2014-07-14 12:08:41 +02:00
Teo Mrnjavac
8d28a2ea5d Generalized code path for Phase switching. Also load install modules. 2014-07-12 14:38:33 +02:00
Teo Mrnjavac
84bfb2aa95 Fixes for loading modules by phase. 2014-07-12 13:13:15 +02:00
Teo Mrnjavac
7034985b74 Remove MM:loadModulesPrepare. 2014-07-11 14:41:53 +02:00
Teo Mrnjavac
2e47c248ac Load modules by phase, in preparation for actually using new settings. 2014-07-11 14:40:15 +02:00
Teo Mrnjavac
a09ab36386 Better settings format, rename a bit of stuff in module loading. 2014-07-11 14:21:50 +02:00
Teo Mrnjavac
1b4d62ef4d Add ProcessJobModule for loading external commands. 2014-07-10 17:11:03 +02:00
Teo Mrnjavac
8d36a13d92 Style fix. 2014-07-10 16:37:02 +02:00
Teo Mrnjavac
7894bb9462 Module type Core ==> Job, plus const correctness. 2014-07-10 12:27:53 +02:00
Teo Mrnjavac
4ec72f4afb Refactored calamares_bin into calamares_bin and libcalamaresui.
Now linking with -Wl,--no-undefined!
Moved find_package KF5 from the root CMakeLists.txt to the partitioning
module where it belongs. KF5 deps should be limited to plugins.
Lots of random fixage to make stuff link.
Removed CalamaresApplication reference from Settings.
Removed the use of AbstractPage, we don't need it right now.
2014-07-03 18:00:40 +02:00