Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ConnecterThread.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef CCONNECTERBACKTHREAD_H
4#define CCONNECTERBACKTHREAD_H
5
6#pragma once
7#include <QSpinBox>
8#include "ConnecterConnect.h"
9#include "FrmScroll.h"
10
11class CConnectThread;
12
56class CLIENT_EXPORT CConnecterThread : public CConnecterConnect
57{
58 Q_OBJECT
59
60public:
61 explicit CConnecterThread(CPluginClient *plugin);
62 virtual ~CConnecterThread();
63
64 virtual int Initial() override;
65 virtual int Clean() override;
66 virtual QWidget* GetViewer() override;
67
68public Q_SLOTS:
75 virtual int Connect() override;
81 virtual int DisConnect() override;
82
83 virtual void slotScreenShot();
84
85private Q_SLOTS:
87 void slotValueChanged(int v);
88
89protected:
90 virtual QString ServerName() override;
91
92private:
97 virtual int Load(QSettings &set) override;
102 virtual int Save(QSettings &set) override;
103
104private:
105 CConnectThread* m_pThread;
106 CFrmViewer *m_pFrmViewer;
107 CFrmScroll* m_pScroll;
108
109protected:
110 QAction* m_pMenuZoom;
111 QAction* m_pZoomToWindow;
112 QAction* m_pZoomAspectRatio;
113 QAction* m_pZoomOriginal;
114 QAction* m_pZoomIn;
115 QAction* m_pZoomOut;
116 QSpinBox* m_psbZoomFactor;
117 QAction* m_pScreenShot;
118
119#if HAVE_QT6_RECORD
120protected:
121 QAction* m_pRecord;
122 QAction* m_pRecordPause;
123public Q_SLOTS:
124 void slotRecorderStateChanged(QMediaRecorder::RecorderState state);
125Q_SIGNALS:
129 void sigRecord(bool bRecord);
130 void sigRecordPause(bool bPause);
131private Q_SLOTS:
136 virtual void slotRecord(bool checked);
137#endif
138};
139
140#endif // CCONNECTERBACKTHREAD_H
The class only is used by CConnecterThread.
The connector interface of the plug-in, which is only used by the plug-in.
virtual int DisConnect() override
emit sigDisconnected() in here
virtual int Connect() override
virtual QString ServerName()
Current connect server name (remote desktop name, if not present, then IP:PORT).
It starts a background thread by default.
virtual Q_INVOKABLE int Initial()=0
Initial parameters and resource.
virtual Q_INVOKABLE int Clean()=0
Clean parameters and resource.
virtual int Load(QSettings &set)
Load parameters.
virtual QWidget * GetViewer()=0
Get Viewer.
virtual int Save(QSettings &set)
Save parameters.
The scroll form class.
Definition FrmScroll.h:17
A widget which displays output image from a CConnectDesktop and sends input keypresses and mouse acti...
Definition FrmViewer.h:49
The plugin interface.