Added an Out for Lunch status
[centerim.git] / src / icqgroup.h
blobc5dabfe14309b9852e51f8d2163d9de1860bc9b5
1 #ifndef __ICQGROUP_H__
2 #define __ICQGROUP_H__
4 #include "icqcommon.h"
5 #include "icqcontacts.h"
6 #include "imcontact.h"
8 class icqgroup {
9 private:
10 int id;
11 string name;
12 bool collapsed;
14 void exchange(int nid);
16 public:
17 icqgroup(int aid, const string &aname);
18 ~icqgroup();
20 string getname() const { return name; }
21 int getid() const { return id; }
23 int getcount(bool countonline, bool countoffline);
25 bool iscollapsed() { return collapsed; }
26 void changecollapsed() { collapsed = !collapsed; }
28 void moveup();
29 void movedown();
31 void rename(const string &aname);
33 bool operator == (int aid) const { return id == aid; }
34 bool operator != (int aid) const { return !(*this == aid); }
36 bool operator == (const string &aname) const { return name == aname; }
37 bool operator != (const string &aname) const { return !(*this == aname); }
39 bool operator < (const icqgroup &ag) const { return id < ag.id; }
40 bool operator > (const icqgroup &ag) const { return id > ag.id; }
43 #endif