forked from KangLin/RabbitIm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathManageMessageDialog.h
60 lines (53 loc) · 1.64 KB
/
ManageMessageDialog.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
#ifndef MANAGEMESSAGEDIALOG_H
#define MANAGEMESSAGEDIALOG_H
#include <QObject>
#include <QMap>
#include <QSharedPointer>
#include "Widgets/FrmMessage/FrmMessage.h"
#include "Manage.h"
/**
* @defgroup RABBITIM_INTERFACE_MANAGEMESSAGEDIALOG 消息对活框管理类模块
* @ingroup RABBITIM_INTERFACE_MANAGER
* @brief 消息对活框管理类模块,用于管理消息对话框。现在有PC屏幕和手机屏幕管理
*/
/**
* @class CManageMessageDialog
* @ingroup RABBITIM_INTERFACE_MANAGEMESSAGEDIALOG RABBITIM_INTERFACE
* @brief 消息对活框管理类(手机屏幕管理),用于管理消息对话框。
* @see CManager
*/
class CManageMessageDialog : public CManage
{
Q_OBJECT
public:
CManageMessageDialog(QObject *parent = 0);
virtual ~CManageMessageDialog();
/**
* @brief 用户登录成功后调用初始化
*
* @param szId:登录用户
* @return int:成功返回0,失败返回非0
*/
virtual int LoginInit(const QString &szId);
/**
* @brief 用户登出时做清理工作
*
* @return int:成功返回0,失败返回非0
*/
virtual int LogoutClean();
/**
* @brief 显示指定好友对话框
*
* @param szId:好友ID
* @return int:成功返回0,失败返回非0
*/
virtual int ShowDialog(const QString& szId);
virtual int Hide();
virtual int Show();
private slots:
void slotDeleteFrmMessage(QFrame *obj);
void slotRemove(const QString& szId);
private:
QMap<QString, QFrame*> m_DlgMessage;
};
#endif // MANAGEMESSAGEDIALOG_H