1 #ifndef __ICQCONTACTS_H__
2 #define __ICQCONTACTS_H__
23 #define SORT_CONTACTS "#odcan_!N"
25 #define SORTCHAR(c) ( \
26 c->hasevents() ? '#' : \
27 !c->inlist() ? '!' : \
28 c->getstatus() == invisible ? 'o' : \
29 c->getstatus() == freeforchat ? 'o' : \
35 #include "linkedlist.h"
36 #include "icqcontact.h"
37 #include "icqcommon.h"
39 class icqcontacts
: public linkedlist
{
41 static int clistsort(void *p1
, void *p2
);
47 void remove(const imcontact
&adesc
);
49 void save(bool removenil
= true);
53 void setoffline(protocolname pname
);
55 icqcontact
* addnew(const imcontact
&adesc
,
56 bool notinlist
= true, int agroupid
= 0,
57 bool reqauth
= false);
59 icqcontact
*get(const imcontact
&adesc
);
60 icqcontact
*getmobile(const string
&anumber
);
61 icqcontact
*getemail(const string
&aemail
);
63 void updateEntry(const imcontact
&ic
, const string
&groupname
);
66 extern icqcontacts clist
;