- Message(BufferId _buffer = BufferId(), Type _type = Plain, QString _text = "", QString _sender = "", quint8 _flags = None)
- : buffer(_buffer), text(_text), sender(_sender), type(_type), flags(_flags) { timeStamp = QDateTime::currentDateTime().toUTC(); }
+ 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; }