Commit a27775e5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add list of ScamDetectionInfo

parent 8b32c83b
Pipeline #92033 canceled with stage
......@@ -10,10 +10,12 @@ using namespace MessageViewer;
ScamDetectionWhiteListSettingsManager::ScamDetectionWhiteListSettingsManager(QObject *parent)
: QObject{parent}
{
loadSettings();
}
ScamDetectionWhiteListSettingsManager::~ScamDetectionWhiteListSettingsManager()
{
writeSettings();
}
ScamDetectionWhiteListSettingsManager *ScamDetectionWhiteListSettingsManager::self()
......@@ -21,3 +23,13 @@ ScamDetectionWhiteListSettingsManager *ScamDetectionWhiteListSettingsManager::se
static ScamDetectionWhiteListSettingsManager s_self;
return &s_self;
}
void ScamDetectionWhiteListSettingsManager::loadSettings()
{
// TODO
}
void ScamDetectionWhiteListSettingsManager::writeSettings()
{
// TODO
}
......@@ -9,8 +9,10 @@
#include "messageviewer_export.h"
#include <QObject>
#include <QVector>
namespace MessageViewer
{
class ScamDetectionInfo;
class MESSAGEVIEWER_EXPORT ScamDetectionWhiteListSettingsManager : public QObject
{
Q_OBJECT
......@@ -18,5 +20,10 @@ public:
explicit ScamDetectionWhiteListSettingsManager(QObject *parent = nullptr);
~ScamDetectionWhiteListSettingsManager() override;
static ScamDetectionWhiteListSettingsManager *self();
private:
void loadSettings();
void writeSettings();
QVector<ScamDetectionInfo> mScamDetectionInfoList;
};
}
Markdown is supported
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