X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreapplication.cpp;h=7426f1773a2e29b5abd462c33308a43e39d31a09;hp=9b48adb92193d6b505746d3980c42a438f0fbcaf;hb=5013eef8eb17221e8f5866977f02e970e30ec0ac;hpb=695758015a80eb8c158a9ac4c0f1c0b547e70df3 diff --git a/src/core/coreapplication.cpp b/src/core/coreapplication.cpp index 9b48adb9..7426f177 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-2016 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; + } +}