+ inline const BufferInfo &bufferInfo() const { return _bufferInfo; }
+ inline const BufferId &bufferId() const { return _bufferInfo.bufferId(); }
+ inline void setBufferId(BufferId id) { _bufferInfo.setBufferId(id); }
+ inline const QString &contents() const { return _contents; }
+ inline const QString &sender() const { return _sender; }
+ inline Type type() const { return _type; }
+ inline Flags flags() const { return _flags; }
+ inline void setFlags(Flags flags) { _flags = flags; }
+ inline const QDateTime ×tamp() const { return _timestamp; }
+
+ inline bool isValid() const { return _msgId.isValid(); }
+
+ inline bool operator<(const Message &other) const { return _msgId < other._msgId; }
+
+private:
+ QDateTime _timestamp;
+ MsgId _msgId;
+ BufferInfo _bufferInfo;
+ QString _contents;
+ QString _sender;
+ Type _type;
+ Flags _flags;
+
+ friend QDataStream &operator>>(QDataStream &in, Message &msg);