blob: a6897018020849e4ad8bfc474efe01bbdd29cae0 (
plain)
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
|
#ifndef _GLOBAL_H_
#define _GLOBAL_H_
/////////////////////////////////////////////////////////////////////////////////////////
struct ContactData
{
ContactData(MCONTACT _p1) :
hContact(_p1)
{}
MCONTACT hContact;
int type = -1, bHidden = true;
__time64_t dwLastReadTime = 0, dwLastSentTime = 0;
void __forceinline setSent(__time64_t _time)
{
dwLastSentTime = _time;
type = 0;
}
};
extern OBJLIST<ContactData> g_arContacts;
ContactData* FindContact(MCONTACT);
/////////////////////////////////////////////////////////////////////////////////////////
__forceinline bool CheckProtoSupport(const char *szProto)
{ return (CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_4, 0) & PF4_READNOTIFY) != 0;
}
void InitServices();
void IconsUpdate(MCONTACT);
void SetSRMMIcon(MCONTACT hContact, int type, time_t time = 0);
__int64 GetPreciousTime(void);
int OnModulesLoaded(WPARAM, LPARAM);
bool HasUnread(MCONTACT hContact);
#endif //_GLOBAL_H_
|