48class CLIENT_EXPORT
CClient :
public QObject
53 explicit CClient(QObject *parent =
nullptr);
73 virtual CConnecter* CreateConnecter(
const QString &
id);
92 virtual CConnecter* LoadConnecter(
const QString& szFile);
99 virtual int SaveConnecter(QString szFile,
CConnecter* pConnecter);
126 virtual QList<QWidget*> GetSettingsWidgets(QWidget *parent);
134 virtual int LoadSettings(QString szFile = QString());
142 virtual int SaveSettings(QString szFile = QString());
164 virtual int EnumPlugins(
Handle* handle);
176 std::function<
int(
const QString&
id,
CPluginClient* pPlug)> cb);
179 const QString Details()
const;
183 int FindPlugins(QDir dir, QStringList filters);
187 void slotHookKeyboardChanged();
190 QMap<QString, CPluginClient*> m_Plugins;
192 QSharedPointer<QTranslator> m_Translator;
193 QSharedPointer<CHook> m_Hook;
199 virtual bool eventFilter(QObject *watched, QEvent *event)
override;