X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcoreapplication.cpp;h=fda78fa0708c5300d6098afc7f45f176ab96fd53;hb=08bace4e9ecf08273f094c0c6aa8b3363d38ac3e;hp=9b48adb92193d6b505746d3980c42a438f0fbcaf;hpb=1cb02004ee5973b89368bd84f234d4652794690d;p=quassel.git diff --git a/src/core/coreapplication.cpp b/src/core/coreapplication.cpp index 9b48adb9..fda78fa0 100644 --- a/src/core/coreapplication.cpp +++ b/src/core/coreapplication.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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) @@ -94,3 +105,13 @@ bool CoreApplication::init() } return false; } + + +bool CoreApplication::reloadConfig() +{ + if (_internal) { + return _internal->reloadConfig(); + } else { + return false; + } +}