13#include <util/azoth/emitters/clentry.h>
112 Q_DECLARE_FLAGS (Features,
Feature)
170 return entry->GetQObject ();
328 const QString& variant) = 0;
380 virtual QMap<QString, QVariant>
GetClientInfo (
const QString& variant)
const = 0;
400Q_DECLARE_OPERATORS_FOR_FLAGS (LC::Azoth::ICLEntry::Features)
Interface representing a single account.
Represents a single entry in contact list.
virtual ~ICLEntry()=default
virtual QObject * GetQObject()=0
virtual Features GetEntryFeatures() const =0
virtual void SendMessage(const OutgoingMessage &message)=0
Sends the message described by message.
virtual void ChatTabClosed()=0
Called by Azoth when the chat with the entry is closed.
virtual void PurgeMessages(const QDateTime &before)=0
Purges messages before the given date.
virtual QString GetEntryID() const =0
Returns the ID of this entry.
virtual QStringList Groups() const =0
Returns the list of human-readable names of the groups that this entry belongs to.
virtual QString GetHumanReadableID() const
Returns the human-readable ID of this entry.
Emitters::CLEntry Emitter_
virtual void SetChatPartState(ChatPartState state, const QString &variant)=0
Notifies about our chat participation state change.
virtual void MarkMsgsRead()=0
Called whenever new messages are read.
virtual void SetGroups(const QStringList &groups)=0
Sets the list of groups this item belongs to.
virtual QList< IMessage * > GetAllMessages() const =0
Returns all already sent or received messages.
virtual EntryType GetEntryType() const =0
virtual EntryStatus GetStatus(const QString &variant=QString()) const =0
Returns the current status of a variant of the item.
virtual QMap< QString, QVariant > GetClientInfo(const QString &variant) const =0
Returns the client information for the given variant.
virtual QString GetEntryName() const =0
virtual IAccount * GetParentAccount() const =0
virtual QList< QAction * > GetActions() const =0
Returns the list of actions for the item.
QObject * GetParentCLEntryObject() const
virtual void ShowInfo()=0
Requests the entry to show dialog with info about it.
virtual ICLEntry * GetParentCLEntry() const
Emitters::CLEntry & GetCLEntryEmitter()
virtual QStringList Variants() const =0
Returns the list of destination variants.
virtual void SetEntryName(const QString &name)=0
Sets the human-readable name of this entry.
This interface is used to represent a message.
Describes an entry's status.
Describes a message to be sent, as formed by the user and before it has been sent to the wire.