summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer/INCLUDE/clist.h
blob: a4d956ba3c3af30f3f54af88618abe5cc116237d (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
44
45
46
47
48
49
50
51
52
53
54
55
56
/*

Miranda IM: the free IM client for Microsoft* Windows*

Copyright 2000-2003 Miranda ICQ/IM project, 
all portions of this codebase are copyrighted to the people 
listed in contributors.txt.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/
void LoadContactTree(void);
int IconFromStatusMode(const char *szProto, int status, HANDLE hContact, HICON *phIcon);
HTREEITEM GetTreeItemByHContact(HANDLE hContact);
void SortContacts(void);

#define NEWSTR_ALLOCA(A) (A==NULL)?NULL:strcpy((char*)_alloca(strlen(A)+1),A)

#define CLUIINTM_REDRAW (WM_USER+100)
#define CLUIINTM_STATUSBARUPDATE (WM_USER+101)
#define CLUIINTM_REMOVEFROMTASKBAR (WM_USER+102)

#define CLVM_FILTER_PROTOS 1
#define CLVM_FILTER_GROUPS 2
#define CLVM_FILTER_STATUS 4
#define CLVM_FILTER_VARIABLES 8
#define CLVM_STICKY_CONTACTS 16
#define CLVM_FILTER_STICKYSTATUS 32
#define CLVM_FILTER_LASTMSG 64
#define CLVM_FILTER_LASTMSG_OLDERTHAN 128
#define CLVM_FILTER_LASTMSG_NEWERTHAN 256

#define CLVM_PROTOGROUP_OP 1
#define CLVM_GROUPSTATUS_OP 2
#define CLVM_AUTOCLEAR 4
#define CLVM_INCLUDED_UNGROUPED 8
#define CLVM_USELASTMSG 16

#if defined(_UNICODE)
    #define CLVM_MODULE "CLVM_W"
#else
    #define CLVM_MODULE "CLVM"
#endif