Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > media > contrib-release-debug > by-pkgid > 69710aa523c75aae90cbd19e022a4e3b > files > 250

centerim-debug-4.22.10-1mdv2011.0.i586.rpm

#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