25 lines
550 B
C
25 lines
550 B
C
|
#pragma once
|
||
|
|
||
|
#include <QWidget>
|
||
|
#include "BaseEventModule.h"
|
||
|
|
||
|
class SystemSettingModule : public BaseEventModule
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
SystemSettingModule(QObject* parent, DataManager* manager);
|
||
|
~SystemSettingModule();
|
||
|
|
||
|
private:
|
||
|
bool readProfile(json& parameter);
|
||
|
bool addDictionary(json& parameter);
|
||
|
bool readDictionary(json& parameter);
|
||
|
bool saveDictionary(json& parameter);
|
||
|
bool deleteDictionary(json& parameter);
|
||
|
|
||
|
protected:
|
||
|
void saveProfile(json& profile,bool newfile);
|
||
|
bool onMessage(const std::string& eventName, json& parameter);
|
||
|
};
|