X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreapplication.cpp;h=7426f1773a2e29b5abd462c33308a43e39d31a09;hp=f6212d74fde8c8d1d3dbf81831ef5c41722549d0;hb=d682289cc69fac3a5776ef29059cc1f54d8d37d4;hpb=694f9bfbf7f1af19108461c7e00d133e55082bce diff --git a/src/core/coreapplication.cpp b/src/core/coreapplication.cpp index f6212d74..7426f177 100644 --- a/src/core/coreapplication.cpp +++ b/src/core/coreapplication.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include "coreapplication.h" @@ -62,6 +62,17 @@ bool CoreApplicationInternal::init() } +bool CoreApplicationInternal::reloadConfig() +{ + if (_coreCreated) { + // Currently, only reloading SSL certificates is supported + return Core::reloadCerts(); + } else { + return false; + } +} + + /*****************************************************************************/ CoreApplication::CoreApplication(int &argc, char **argv) @@ -85,8 +96,22 @@ CoreApplication::~CoreApplication() bool CoreApplication::init() { if (Quassel::init() && _internal->init()) { +#if QT_VERSION < 0x050000 qInstallMsgHandler(Logger::logMessage); +#else + qInstallMessageHandler(Logger::logMessage); +#endif return true; } return false; } + + +bool CoreApplication::reloadConfig() +{ + if (_internal) { + return _internal->reloadConfig(); + } else { + return false; + } +}