Commit 36c85345 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Prepare to load/save settings

parent c077c510
......@@ -6,6 +6,13 @@
*/
#include "scamdetectionwhitelistsettingsmanager.h"
#include <KConfigGroup>
#include <KSharedConfig>
namespace
{
static const char myScamDetectionWhiteListGroupName[] = "ScamDetectionWhiteList";
}
using namespace MessageViewer;
ScamDetectionWhiteListSettingsManager::ScamDetectionWhiteListSettingsManager(QObject *parent)
: QObject{parent}
......@@ -26,10 +33,15 @@ ScamDetectionWhiteListSettingsManager *ScamDetectionWhiteListSettingsManager::se
void ScamDetectionWhiteListSettingsManager::loadSettings()
{
mScamDetectionInfoList.clear();
KSharedConfig::Ptr config = KSharedConfig::openConfig();
KConfigGroup group(config, myScamDetectionWhiteListGroupName);
// TODO
}
void ScamDetectionWhiteListSettingsManager::writeSettings()
{
KSharedConfig::Ptr config = KSharedConfig::openConfig();
KConfigGroup group(config, myScamDetectionWhiteListGroupName);
// TODO
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment