-
Notifications
You must be signed in to change notification settings - Fork 0
/
GlobalUnits.h
51 lines (39 loc) · 1.18 KB
/
GlobalUnits.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
#ifndef __GLOBALUNITS_H__
#define __GLOBALUNITS_H__
#pragma once
#include "public.h"
#include "CommonFunction.h"
class CGlobalUnits
{
public:
CGlobalUnits(void);
~CGlobalUnits(void);
public:
PersonalsMap m_mapPersonals;
GroupsMap m_mapGroups;
GroupMembersMap m_mapGrpmbrs;
GHsMap m_mapGhs;
std::multimap<std::wstring, std::wstring> m_PinyinMap;
SearchInfosMap m_mapPinyinSearch;
SearchInfosMap m_mapChineseSearch;
//id-name
std::map<std::string, std::string> m_mapEmojisIndex;
std::map<std::string, IBitmap*> m_mapFace;
//last_talk time
std::map<std::string, std::string> m_mapLasttalkTime; //id-time
public:
static CGlobalUnits* GetInstance();
public:
void OperateShamDate(); //´¦Àí¼ÙÊý¾Ý
void OperatePinyinMap(const std::string& strPath); //´¦ÀíÆ´Òô±í
void OperateSerachIndex();
void OperateEmojis();
std::wstring EncodeChinese(const std::wstring& wstrSrc);
std::wstring DecodeChinese(const std::wstring& wstrSrc);
BOOL GetSimpleAndFull(const std::wstring& wstrSrc, std::wstring &SimpleStr, std::wstring &FullStr);
BOOL IsIncludeChinese(std::wstring& wstrSrc);
public:
std::string GenerateUUID();
};
#define GlobalUnits CGlobalUnits::GetInstance();
#endif