Updated Changelog
[centerim.git] / src / icqgroups.h
blob68658e5279ca0e79d85ff474a292dc35b4b2d856
1 #ifndef __ICQGROUPS_H__
2 #define __ICQGROUPS_H__
4 #include "icqgroup.h"
6 class icqgroups: private vector<icqgroup> {
7 private:
8 public:
9 icqgroups();
10 ~icqgroups();
12 string getfname() const;
14 void load();
15 void save();
17 int add(const string &aname);
18 void remove(int gid);
19 string getname(int gid) const;
21 int size() const { return vector<icqgroup>::size(); }
23 iterator begin() { return vector<icqgroup>::begin(); }
24 iterator end() { return vector<icqgroup>::end(); }
27 extern icqgroups groups;
29 #endif