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