forked from firstblade/TTWinClient
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIEmotionModule.h
More file actions
73 lines (63 loc) · 1.78 KB
/
IEmotionModule.h
File metadata and controls
73 lines (63 loc) · 1.78 KB
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
69
70
71
72
73
/*******************************************************************************
* @file IEmotionModule.h 2014\8\6 20:03:22 $
* @author 快刀<kuaidao@mogujie.com>
* @brief 表情管理模块
******************************************************************************/
#ifndef IEMOTIONMODULE_8E431B43_8F05_4934_8B5B_BB839730F3A6_H__
#define IEMOTIONMODULE_8E431B43_8F05_4934_8B5B_BB839730F3A6_H__
#include "GlobalDefine.h"
#include "TTLogic/IModule.h"
#include "Modules/ModuleDll.h"
/******************************************************************************/
NAMESPACE_BEGIN(module)
enum
{
KEY_EMOTION_SELECTED = MODULE_ID_EMOTION << 16 | 1, //选择了某个表情
};
/**
* The class <code>表情管理模块</code>
*
*/
class EmotionParam
{
public:
std::string sid;
CString strPath;
};
class MODULE_API IEmotionModule : public logic::IModule
{
public:
/** @name Constructors and Destructor*/
//@{
/**
* Constructor
*/
IEmotionModule()
{
m_moduleId = MODULE_ID_EMOTION;
}
//@}
public:
/**
* 显示表情窗口
*
* @param POINT pt 显示的位置
* @return void
* @exception there is no any exception to throw.
*/
virtual void showEmotionDialog(IN std::string sid, IN POINT pt) = 0;
virtual BOOL getEmotionNameByID(IN CString ID, OUT CString& csPath) = 0;
virtual BOOL getEmotionIDByName(IN CString csPath, OUT CString& ID) = 0;
/**
* 获取当前显示窗口的会话ID
*
* @param POINT pt 显示的位置
* @return void
* @exception there is no any exception to throw.
*/
virtual std::string getCurEmotionWndSessionId(void) = 0;
};
MODULE_API IEmotionModule* getEmotionModule();
NAMESPACE_END(module)
/******************************************************************************/
#endif// IEMOTIONMODULE_8E431B43_8F05_4934_8B5B_BB839730F3A6_H__