Cleaned the checks for OpenSSL
[centerim.git] / src / icqcontacts.h
blobc67a58cf7978586df75237cb47d5cd4808ab72df
1 #ifndef __ICQCONTACTS_H__
2 #define __ICQCONTACTS_H__
4 /*
6 * SORT_CONTACTS
8 * o Online
9 * f Free for chat
10 * i Invisible
11 * d Do not disturb
12 * c Occupied
13 * a Away
14 * n N/A
16 * _ Offline
17 * ! Not in list
18 * N Non-ICQ
19 * # Unread
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' : \
30 c->getshortstatus() \
33 #include "cmenus.h"
35 #include "linkedlist.h"
36 #include "icqcontact.h"
37 #include "icqcommon.h"
39 class icqcontacts: public linkedlist {
40 protected:
41 static int clistsort(void *p1, void *p2);
43 public:
44 icqcontacts();
45 ~icqcontacts();
47 void remove(const imcontact &adesc);
48 void load();
49 void save(bool removenil = true);
50 void order();
51 void rearrange();
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;
68 #endif