Rabbit Remote Control 0.0.37
Loading...
Searching...
No Matches
ParameterOperate.h
1// Author: Kang Lin <kl222@126.com>
2
3#pragma once
4
5#include "ParameterPlugin.h"
6
209class PLUGIN_EXPORT CParameterOperate : public CParameter
210{
211 Q_OBJECT
212
213public:
214 explicit CParameterOperate(
215 QObject *parent = nullptr,
216 const QString& szPrefix = QString());
217
219 CParameterPlugin* GetGlobalParameters();
220 int SetGlobalParameters(CParameterPlugin *p);
221
222private:
223Q_SIGNALS:
231
232protected Q_SLOTS:
242 virtual void slotSetGlobalParameters();
243
244protected:
245 QByteArray PasswordSum(const std::string &password, const std::string &key);
246 int LoadPassword(const QString &szTitle, const QString &szKey,
247 QString &password, QSettings &set);
248 int SavePassword(const QString &szKey, const QString &password,
249 QSettings &set, bool bSave = false);
250
251private:
252 CParameterOperate* m_Parent;
257};
Operational parameter interface.
void sigSetGlobalParameters()
Only used by this class.
CParameterPlugin * m_pParameterPlugin
Global parameters of plugins.
Parameter interface.
Definition Parameter.h:209