Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ParameterConnecter.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef CparameterCONNECT_H
4#define CparameterCONNECT_H
5
6#pragma once
7
8#include "ParameterClient.h"
9
255class CLIENT_EXPORT CParameterConnecter : public CParameter
256{
257 Q_OBJECT
258
259public:
260 explicit CParameterConnecter(
261 QObject *parent = nullptr,
262 const QString& szPrefix = QString());
263
265 CParameterClient* GetParameterClient();
266 int SetParameterClient(CParameterClient* p);
267
268Q_SIGNALS:
269 void sigSetParameterClient();
270
271protected Q_SLOTS:
281 virtual void slotSetParameterClient();
282
283protected:
284 QByteArray PasswordSum(const std::string &password, const std::string &key);
285 int LoadPassword(const QString &szTitle, const QString &szKey,
286 QString &password, QSettings &set);
287 int SavePassword(const QString &szKey, const QString &password,
288 QSettings &set, bool bSave = false);
289
290private:
291 CParameterConnecter* m_Parent;
296};
297
298#endif // CparameterCONNECT_H
The parameters of client.
the parameters of connecter interface.
CParameterClient * m_pParameterClient
Parameter interface.
Definition Parameter.h:169