#ifndef __ICQGROUP_H__ #define __ICQGROUP_H__ #include "icqcommon.h" #include "imcontact.h" class icqgroup { private: int id; string name; bool collapsed; void exchange(int nid); public: icqgroup(int aid, const string &aname); ~icqgroup(); string getname() const { return name; } int getid() const { return id; } int getcount(bool countonline, bool countoffline); bool iscollapsed() { return collapsed; } void changecollapsed() { collapsed = !collapsed; } void moveup(); void movedown(); void rename(const string &aname); bool operator == (int aid) const { return id == aid; } bool operator != (int aid) const { return !(*this == aid); } bool operator == (const string &aname) const { return name == aname; } bool operator != (const string &aname) const { return !(*this == aname); } bool operator < (const icqgroup &ag) const { return id < ag.id; } bool operator > (const icqgroup &ag) const { return id > ag.id; } }; #endif