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