-
Notifications
You must be signed in to change notification settings - Fork 1k
/
enterroom.h
68 lines (52 loc) · 1.46 KB
/
enterroom.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
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef ENTERROOM_H
#define ENTERROOM_H
#include <qevent.h>
#include <QWidget>
#include <QMainWindow>
namespace Ui {
class wgEnterRoom;
}
class EnterRoom : public QMainWindow
{
Q_OBJECT
public:
explicit EnterRoom(QWidget *parent = 0);
~EnterRoom();
void joinchannel(const QString& qsChannel,uint uid);
void leavechannel();
void setChannelName(const QString& qsChannelInfo);
void setParam(const QString& qsParam);
void setAllRAtt(int nRCount);
void setR1(unsigned int uid);
void setR2(unsigned int uid);
void setR3(unsigned int uid);
int getR1();
int getR2();
int getR3();
void switchUidText(const QString &qsSrc,const QString &qsDest,int nIndex);
protected:
virtual void mousePressEvent(QMouseEvent *e);
virtual void mouseMoveEvent(QMouseEvent *e);
virtual void mouseReleaseEvent(QMouseEvent *e);
virtual void focusInEvent(QFocusEvent *event);
virtual void focusOutEvent(QFocusEvent *event);
signals:
void sender_exitChannel();
void sender_updateVideo();
private slots:
void on_rbCamera_stateChanged(int arg1);
void on_rbMic_stateChanged(int arg1);
void on_btnLeave_clicked();
private:
const int lnTitleWidth = 1366;
const int lnTitleHeight = 30;
QPoint m_mousePosition;
bool m_bMousePressed;
private:
Ui::wgEnterRoom *ui;
QMainWindow* m_pLastWnd;
unsigned int m_uidr1;
unsigned int m_uidr2;
unsigned int m_uidr3;
};
#endif // ENTERROOM_H