moved the old Changelog, which only contained log from the old centericq
[centerim.git] / src / icqgroup.h
blob7b4cfaa1758fc72d0ccd2dc0d0e5ac69e7fb2dc1
1 #ifndef __ICQGROUP_H__
2 #define __ICQGROUP_H__
4 #include "icqcommon.h"
5 #include "imcontact.h"
7 class icqgroup {
8 private:
9 int id;
10 string name;
11 bool collapsed;
13 void exchange(int nid);
15 public:
16 icqgroup(int aid, const string &aname);
17 ~icqgroup();
19 string getname() const { return name; }
20 int getid() const { return id; }
22 int getcount(bool countonline, bool countoffline);
24 bool iscollapsed() { return collapsed; }
25 void changecollapsed() { collapsed = !collapsed; }
27 void moveup();
28 void movedown();
30 void rename(const string &aname);
32 bool operator == (int aid) const { return id == aid; }
33 bool operator != (int aid) const { return !(*this == aid); }
35 bool operator == (const string &aname) const { return name == aname; }
36 bool operator != (const string &aname) const { return !(*this == aname); }
38 bool operator < (const icqgroup &ag) const { return id < ag.id; }
39 bool operator > (const icqgroup &ag) const { return id > ag.id; }
42 #endif