Rabbit Remote Control 0.0.31
Loading...
Searching...
No Matches
ConnecterConnect.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef CONNECTERCONNECT_H
4#define CONNECTERCONNECT_H
5
6#include <QMenu>
7
8#include "Connecter.h"
9#include "Connect.h"
10#include "ParameterBase.h"
11
34class CLIENT_EXPORT CConnecterConnect : public CConnecter
35{
36 Q_OBJECT
37
38public:
40 virtual ~CConnecterConnect();
41 virtual const QString Id() override;
58 virtual const QString Name() override;
59 virtual const QString Description() override;
60
69 virtual CConnect* InstanceConnect() = 0;
70
74 virtual CParameterBase* GetParameter();
75 virtual int SetParameter(CParameterBase* p);
76
77public Q_SLOTS:
88 virtual int Connect() override;
97 virtual int DisConnect() override;
98
99Q_SIGNALS:
100 void sigOpenConnect(CConnecterConnect*);
101 void sigCloseconnect(CConnecterConnect*);
102
103protected:
115 virtual QString ServerName();
116
117private:
124 virtual int SetParameterClient(CParameterClient* pPara) override;
125
126private Q_SLOTS:
129 virtual void slotSetServerName(const QString &szName);
130
131private:
132 CConnect* m_pConnect;
133 QString m_szServerName;
134};
135
136#endif // CONNECTERCONNECT_H
Connect interface.
Definition Connect.h:45
The connector interface of the plug-in, which is only used by the plug-in.
virtual CConnect * InstanceConnect()=0
New connect.
Connecter interface.
Definition Connecter.h:62
virtual int DisConnect()=0
Close connect.
virtual Q_INVOKABLE int SetParameterClient(CParameterClient *pPara)
Set CParameterClient.
virtual int SetParameter(CParameter *p)
Set parameters.
virtual const QString Description()
Description.
Definition Connecter.cpp:58
virtual const QString Id()
Identity.
Definition Connecter.cpp:47
virtual int Connect()=0
Start connect.
virtual const QString Name()
Name.
Definition Connecter.cpp:53
The interface of connecter parameters.
The parameters of client.
The plugin interface.