19#include "client_export.h"
20#include "ParameterClient.h"
91 virtual const QString Id();
93 virtual const QString Name();
95 virtual const QString Description();
97 virtual const QString Protocol()
const;
101 virtual const QIcon Icon()
const;
133 virtual int OpenDialogSettings(QWidget* parent =
nullptr);
137 virtual QMenu* GetMenu(QWidget* parent =
nullptr);
227 void sigError(
const int nError,
const QString &szError);
256 const QMessageBox::Icon& icon = QMessageBox::Information);
269 Q_INVOKABLE
virtual int Clean() = 0;
297 static QObject* createObject(
const QString &className, QObject* parent = NULL);
323 virtual int Load(QSettings &set);
328 virtual int Save(QSettings &set);
335 Q_INVOKABLE
virtual int Load(QString szFile = QString());
344 Q_INVOKABLE
virtual int Save(QString szFile = QString());
347 void slotShowServerName();
348 void slotUpdateName();
367 virtual void slotBlockShowWidget(
const QString& className,
int &nRet,
void* pContext);
378 virtual void slotBlockShowMessageBox(
const QString& szTitle,
379 const QString& szMessage,
380 QMessageBox::StandardButtons buttons,
381 QMessageBox::StandardButton& nRet,
383 QString szCheckBoxContext = QString());
389 virtual void slotBlockInputDialog(
const QString& szTitle,
390 const QString& szLable,
391 const QString& szMessage,
398 virtual void slotSetClipboard(QMimeData *data);
401 void sigClipBoardChanged();
405 QAction* m_pSettings;
407 virtual void slotSettings();
void sigUpdateName(const QString &szName)
virtual Q_INVOKABLE int Initial()=0
Initial parameters and resource.
virtual int DisConnect()=0
Close connect.
void sigConnected()
Successful connection signal.
virtual Q_INVOKABLE int Clean()=0
Clean parameters and resource.
virtual QDialog * OnOpenDialogSettings(QWidget *parent=nullptr)=0
Open settgins dialog.
CConnecter(CPluginClient *plugin)
virtual qint16 Version()=0
Version.
virtual QWidget * GetViewer()=0
Get Viewer.
void sigDisconnected()
Successful disconnection signal.
void sigDisconnect()
Notify the user to disconnect.
void sigError(const int nError, const QString &szError)
Triggered when an error is generated.
void sigShowMessageBox(const QString &title, const QString &message, const QMessageBox::Icon &icon=QMessageBox::Information)
Trigger the display of a message dialog (QMessageBox) in the main thread from a background thread wit...
virtual int Connect()=0
Start connect.
void sigInformation(const QString &szInfo)
Show information in main windows.
void sigUpdateParameters(CConnecter *pConnecter)
Update parameters, notify application to save or show parameters.
The parameters of client.