+class UiStyle::StyledMessage {
+
+ public:
+ explicit StyledMessage(const Message &, UiStyle *style);
+
+ QDateTime timestamp() const;
+ QString decoratedTimestamp() const;
+ QString sender() const; //!< Nickname (no decorations) for Plain and Notice, empty else
+ QString decoratedSender() const;
+ QString contents() const;
+
+ FormatType timestampFormat() const;
+ FormatType senderFormat() const;
+ FormatList contentsFormatList() const;
+
+ inline Message::Type type() const { return _msgType; }
+
+ private:
+ StyledString _contents;
+ QDateTime _timestamp;
+ QString _sender;
+ Message::Type _msgType;
+};
+