virtual void AddRawMessages(const QString &accountId, const QString &entryId, const QString &visibleName, const QList< HistoryItem > &items)=0
Adds a set of messages to the history.
QDateTime Date_
The timestamp of the message.
virtual void RequestLastMessages(QObject *entry, int num)=0
Requests last messages for the given entry.
QString RichMessage_
The rich message contents, if any.
virtual QFuture< MaxTimestampResult_t > RequestMaxTimestamp(IAccount *acc)=0
virtual ~IHistoryPlugin()
virtual bool IsHistoryEnabledFor(QObject *entry) const =0
Whether history is enabled for the given entry.
Describes a single chat log item.
QString Variant_
The variant of the other entry.
Util::Either< QString, QDateTime > MaxTimestampResult_t
virtual void gotLastMessages(QObject *entry, const QList< QObject * > &messages)=0
Notifies about last messages for the given entry.
Interface for plugins storing chat history.
IMessage::Direction Dir_
The direction of the message.
IMessage::EscapePolicy EscPolicy_
Whether the message should be HTML-escaped when displayed to the user.