Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
PluginClientThread.h
1#ifndef CPLUGINVIEWERTHREAD_H
2#define CPLUGINVIEWERTHREAD_H
3
4#include "PluginClient.h"
5#include "PluginThread.h"
6
25class CLIENT_EXPORT CPluginClientThread : public CPluginClient
26{
27 Q_OBJECT
28
29public:
30 explicit CPluginClientThread(QObject *parent = nullptr);
31 virtual ~CPluginClientThread();
32
33private:
34 virtual CConnecter* CreateConnecter(const QString &szProtocol) override;
35
41 virtual CConnecterConnect* OnCreateConnecter(const QString &szProtocol) = 0;
42
43private:
44 CPluginThread* m_pThread;
45};
46
47#endif // CPLUGINVIEWERTHREAD_H
The connector interface of the plug-in, which is only used by the plug-in.
Connecter interface.
Definition Connecter.h:62
It starts a background thread by default.
virtual CConnecterConnect * OnCreateConnecter(const QString &szProtocol)=0
Create Connecter.
The plugin interface.
virtual Q_INVOKABLE CConnecter * CreateConnecter(const QString &szId)=0
New CConnecter instance.
One thread handles multiple CConnecterConnect.