EntryKind GetEntryKind(const KindedGADT< EntryKinded > &gadt)
std::pair< Entry< K >, QList< NewMessage< K > >> EntryWithMessages
KindedGADT< EntryDescrWithEndpoint > SomeEntryDescrWithEndpoint
virtual void AddMessages(const History::SomeEntryWithMessages &)=0
Adds a set of messages to the history.
std::optional< QString > RichBody_
virtual void gotLastMessages(QObject *entry, const QList< QObject *> &messages)=0
Notifies about last messages for the given entry.
virtual Util::ContextTask< void > RequestLastMessages(ICLEntry &entry, int count)=0
Requests last messages for the given entry.
std::variant< SelfEndpoint, EntryEndpoint< K > > Endpoint
virtual bool IsHistoryEnabledFor(ICLEntry &entry) const =0
Whether history is enabled for the given entry.
KindedGADT< EntryWithMessages > SomeEntryWithMessages
virtual ~IHistoryPlugin()=default
Interface for plugins storing chat history.
virtual Util::ContextTask< std::optional< QDateTime > > RequestMaxTimestamp(IAccount &acc)=0
std::optional< QString > Variant_
EntryDescr< K > Description_
QString EntryHumanReadableId_
std::variant< Kinded< EntryKind::Chat >, Kinded< EntryKind::MUC >, Kinded< EntryKind::PrivateChat > > KindedGADT
KindedGADT< EntryDescr > SomeEntryDescr
std::optional< QByteArray > PersistentId_
std::optional< QByteArray > PersistentId_
EntryDescr< K > Description_
Represents a single entry in contact list.
std::optional< QString > Variant_