Core::instance(); // create and init the core
_coreCreated = true;
+ Quassel::registerReloadHandler([]() {
+ // Currently, only reloading SSL certificates is supported
+ return Core::reloadCerts();
+ });
+
if (!Quassel::isOptionSet("norestore"))
Core::restoreState();
}
-bool CoreApplicationInternal::reloadConfig()
-{
- if (_coreCreated) {
- // Currently, only reloading SSL certificates is supported
- return Core::reloadCerts();
- } else {
- return false;
- }
-}
-
-
/*****************************************************************************/
CoreApplication::CoreApplication(int &argc, char **argv)
- : QCoreApplication(argc, argv), Quassel()
+ : QCoreApplication(argc, argv)
{
#ifdef Q_OS_MAC
- disableCrashhandler();
+ Quassel::disableCrashHandler();
#endif /* Q_OS_MAC */
- setRunMode(Quassel::CoreOnly);
+ Quassel::setRunMode(Quassel::CoreOnly);
_internal = new CoreApplicationInternal();
}
}
return false;
}
-
-
-bool CoreApplication::reloadConfig()
-{
- if (_internal) {
- return _internal->reloadConfig();
- } else {
- return false;
- }
-}