154 Q_DECLARE_FLAGS (Features,
Feature)
212 return entry->GetQObject ();
300 virtual QStringList
Groups ()
const = 0;
309 virtual void SetGroups (
const QStringList& groups) = 0;
327 virtual QStringList
Variants ()
const = 0;
349 const QString& variant,
350 const QString& body) = 0;
389 const QString& variant) = 0;
422 virtual QList<QAction*>
GetActions ()
const = 0;
447 virtual QMap<QString, QVariant>
GetClientInfo (
const QString& variant)
const = 0;
483 const QString& variant) = 0;
514 virtual void nameChanged (
const QString& name) = 0;
539 const QString& variant) = 0;
564 "org.Deviant.LeechCraft.Azoth.ICLEntry/1.0");
EntryStatus(State state, const QString &str)
virtual void groupsChanged(const QStringList &groups)=0
This signal should be emitted whenever the entry's groups are changed.
virtual void PurgeMessages(const QDateTime &before)=0
Purges messages before the given date.
virtual QObject * GetQObject()=0
virtual void ShowInfo()=0
Requests the entry to show dialog with info about it.
virtual void statusChanged(const EntryStatus &st, const QString &variant)=0
This signal should be emitted whenever the status of a variant in this entry changes.
bool operator==(const EntryStatus &es1, const EntryStatus &es2)
virtual IAccount * GetParentAccount() const =0
virtual QMap< QString, QVariant > GetClientInfo(const QString &variant) const =0
Returns the client information for the given variant.
bool operator!=(const EntryStatus &es1, const EntryStatus &es2)
virtual QString GetEntryID() const =0
Returns the ID of this entry.
virtual QString GetHumanReadableID() const
Returns the human-readable ID of this entry.
virtual void gotMessage(QObject *msg)=0
This signal should be emitted whenever a new message is received.
virtual EntryType GetEntryType() const =0
Q_DECLARE_OPERATORS_FOR_FLAGS(LeechCraft::Azoth::ICLEntry::Features)
Q_DECLARE_METATYPE(LeechCraft::Azoth::EntryStatus)
virtual void SetGroups(const QStringList &groups)=0
Sets the list of groups this item belongs to.
virtual void availableVariantsChanged(const QStringList &newVars)=0
This signal should be emitted whenever the list of available variants changes.
Represents a single entry in contact list.
virtual void MarkMsgsRead()=0
Called whenever new messages are read.
virtual void entryGenerallyChanged()=0
This signal should be emitted when the entry changes.
virtual void SetChatPartState(ChatPartState state, const QString &variant)=0
Notifies about our chat participation state change.
virtual EntryStatus GetStatus(const QString &variant=QString()) const =0
Returns the current status of a variant of the item.
virtual Features GetEntryFeatures() const =0
virtual QStringList Groups() const =0
Returns the list of human-readable names of the groups that this entry belongs to.
virtual void avatarChanged(const QImage &)=0
This signal should be emitted whenever the avatar of this item is changed.
QObject * GetParentCLEntryObject() const
Interface representing a single account.
virtual ICLEntry * GetParentCLEntry() const
virtual IMessage * CreateMessage(IMessage::Type type, const QString &variant, const QString &body)=0
Creates the message of the given type to the given variant.
Type
Represents possible message types.
virtual void nameChanged(const QString &name)=0
This signal should be emitted whenever the entry changes name.
virtual void SetEntryName(const QString &name)=0
Sets the human-readable name of this entry.
virtual QImage GetAvatar() const =0
Returns the avatar of this item.
virtual QStringList Variants() const =0
Returns the list of destination variants.
virtual QString GetEntryName() const =0
virtual QList< IMessage * > GetAllMessages() const =0
Returns all already sent or received messages.
virtual void permsChanged()=0
This signal should be emitted if it's a MUC participant and his role/affiliation changes.
virtual void chatPartStateChanged(const ChatPartState &state, const QString &variant)=0
This signal should be emitted whenever the chat participation state of this entry changes...
virtual void ChatTabClosed()=0
Called by Azoth when the chat with the entry is closed.
This interface is used to represent a message.
Q_DECLARE_INTERFACE(LeechCraft::Azoth::ICLEntry,"org.Deviant.LeechCraft.Azoth.ICLEntry/1.0")
virtual QList< QAction * > GetActions() const =0
Returns the list of actions for the item.