- inline uint uid() const { return _id; }
- inline uint networkId() const { return _netid; }
- inline uint groupId() const { return _gid; }
- inline QString network() const { return _networkName; }
- QString buffer() const;
+ enum Activity {
+ NoActivity = 0x00,
+ OtherActivity = 0x01,
+ NewMessage = 0x02,
+ Highlight = 0x40
+ };
+ Q_DECLARE_FLAGS(ActivityLevel, Activity)
+
+ BufferInfo();
+ BufferInfo(BufferId id, NetworkId networkid, Type type, uint gid = 0, QString buf = QString());
+
+ static BufferInfo fakeStatusBuffer(NetworkId networkId);
+
+ inline bool isValid() const { return _bufferId != 0; }
+ inline BufferId bufferId() const { return _bufferId; }
+ inline NetworkId networkId() const { return _netid; }
+ inline Type type() const { return _type; }
+ inline uint groupId() const { return _groupId; }
+ QString bufferName() const;