forked from AgoraIO/Basic-Video-Call
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagorawindowmanager.h
More file actions
38 lines (32 loc) · 845 Bytes
/
agorawindowmanager.h
File metadata and controls
38 lines (32 loc) · 845 Bytes
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
#ifndef AGORAWINDOWMANAGER_H
#define AGORAWINDOWMANAGER_H
#include <QMainWindow>
#include <QVariant>
#include <mutex>
enum eQMainWndType {
qWndType_NULL = -1,
qWndType_OpenVideoCall,
qWndType_AvDevice,
qWndType_NetTesting,
qWndType_NetTestResult,
qWndType_NetTestDetail,
qWndType_InRoom,
qWndType_EnterRoom,
qWndType_UNKNOWN = 0xff,
};
typedef QMap<eQMainWndType,QMainWindow*> qMapeq;
class AgoraWindowManager
{
public:
static AgoraWindowManager* getInstance();
static void releaseInstance();
void insertItem(eQMainWndType type,QMainWindow* pWnd);
QMainWindow* getQWnd(eQMainWndType type);
private:
AgoraWindowManager();
~AgoraWindowManager();
static AgoraWindowManager* m_pInstance;
qMapeq m_qmapeq;
static std::mutex m_mutexMgr;
};
#endif // AGORAWINDOWMANAGER_H