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