-
Notifications
You must be signed in to change notification settings - Fork 1k
/
openvideocall.h
55 lines (44 loc) · 1.2 KB
/
openvideocall.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef OPENVIDEOCALL_H
#define OPENVIDEOCALL_H
#include <QMainWindow>
#include <qevent.h>
#include "avdevice.h"
#include "nettesting.h"
#include <memory>
#include "inroom.h"
namespace Ui {
class OpenVideoCall;
}
class OpenVideoCall : public QMainWindow
{
Q_OBJECT
public:
explicit OpenVideoCall(QWidget *parent = 0);
~OpenVideoCall();
protected:
virtual void mousePressEvent(QMouseEvent *e);
virtual void mouseMoveEvent(QMouseEvent *e);
virtual void mouseReleaseEvent(QMouseEvent *e);
void initWindow();
private slots:
void on_btn_close_clicked();
void on_btn_min_clicked();
void on_btn_config_clicked();
void on_led_classid_returnPressed();
void on_btn_test_network_clicked();
void on_btn_join_clicked();
void on_com_encryp_currentIndexChanged(const QString &arg1);
private:
const int lnGapWidth = 18;
const int lnGapHeight = 12;
const int lnTitleWidth = 718;
const int lnTitleHeight = 30;
QPoint m_mousePosition;
bool m_bMousePressed;
private:
Ui::OpenVideoCall *ui;
std::unique_ptr<AVDevice> m_upAvDevice;
std::unique_ptr<NetTesting> m_upNetTesting;
std::unique_ptr<InRoom> m_upInRoom;
};
#endif // OPENVIDEOCALL_H