Rabbit Remote Control 0.1.0-bate14
Loading...
Searching...
No Matches
DlgSetFreeRDP.h
1// Author: Kang Lin <kl222@126.com>
2#pragma once
3
4#include <QFileSystemModel>
5#include <QItemSelection>
6#include <QDialog>
7#include <QButtonGroup>
8#include "freerdp/freerdp.h"
9
10#include "ParameterProxyUI.h"
11#include "ParameterRecordUI.h"
12#include "ParameterFreeRDP.h"
13
14namespace Ui {
15class CDlgSetFreeRDP;
16}
17
18class CDlgSetFreeRDP : public QDialog
19{
20 Q_OBJECT
21
22public:
23 explicit CDlgSetFreeRDP(CParameterFreeRDP* pSettings, QWidget *parent = nullptr);
24 ~CDlgSetFreeRDP();
25
26public Q_SLOTS:
27 // QDialog interface
28 virtual void accept() override;
29 void on_rbLocalScreen_clicked(bool checked);
30
31 void on_rbAudioDisable_toggled(bool checked);
32 void on_rbAudioLocal_toggled(bool checked);
33 void on_rbAudioRemote_toggled(bool checked);
34
35 void on_pbSizeEdit_clicked();
36
37 void on_pbDriveClearAll_clicked();
38 void slotSelectionChanged(const QItemSelection &selected,
39 const QItemSelection &deselected);
40
41 void on_cbAllMonitor_stateChanged(int arg1);
42
43 void on_cbConnectType_currentIndexChanged(int index);
44
45 void on_cbSecurityEnable_stateChanged(int arg1);
46
47private:
48 void InsertView(QWidget *p, int pos);
49 void AddViewers(const QList<QWidget*> &wViewer);
50 QRect GetScreenGeometry();
51 int UpdateDesktopSize();
52 int InsertDesktopSize(QString szSize);
53 int InsertDesktopSize(int width, int height);
54 bool HasAudioOutput();
55 bool HasAudioInput();
56 int ShowDriveSelected(int counts);
57
58private:
59 Ui::CDlgSetFreeRDP *ui;
60 CParameterFreeRDP* m_pSettings;
61 QFileSystemModel* m_pFileModel;
62
63 CParameterProxyUI* m_pProxyUI;
64 CParameterRecordUI* m_pRecordUI;
65
66 QButtonGroup* m_pButtonGroup;
67
68 UINT32 m_vPerformanceFlags[CONNECTION_TYPE_AUTODETECT];
69};
[Declare CParameterFreeRDP]
The proxy parameter UI.