-struct Exception {
- Exception(QString msg = "Unknown Exception") : _msg(msg) {};
- virtual inline QString msg() { return _msg; }
-
- protected:
- QString _msg;
-
-};
-
-class BufferId {
- public:
- BufferId() { id = gid = 0; } // FIXME
- BufferId(uint uid, QString net, QString buf, uint gid = 0);
-
- inline uint uid() const { return id; }
- inline uint groupId() const { return gid; }
- inline QString network() const { return net; }
- QString buffer() const; // nickfrommask?
-
- void setGroupId(uint _gid) { gid = _gid; }
-
- inline bool operator==(const BufferId &other) const { return id == other.id; }
-
- private:
- uint id;
- uint gid;
- QString net;
- QString buf;
-
- friend uint qHash(const BufferId &);
- friend QDataStream &operator<<(QDataStream &out, const BufferId &bufferId);
- friend QDataStream &operator>>(QDataStream &in, BufferId &bufferId);
-};
-
-QDataStream &operator<<(QDataStream &out, const BufferId &bufferId);
-QDataStream &operator>>(QDataStream &in, BufferId &bufferId);
-
-Q_DECLARE_METATYPE(BufferId);
-
-uint qHash(const BufferId &);
-