30 #ifndef PLUGINS_AZOTH_INTERFACES_ICLENTRY_H
31 #define PLUGINS_AZOTH_INTERFACES_ICLENTRY_H
154 Q_DECLARE_FLAGS (Features,
Feature)
293 virtual QStringList
Groups ()
const = 0;
302 virtual void SetGroups (
const QStringList& groups) = 0;
320 virtual QStringList
Variants ()
const = 0;
342 const QString& variant,
343 const QString& body) = 0;
382 const QString& variant) = 0;
421 virtual QList<QAction*>
GetActions ()
const = 0;
490 virtual QMap<QString, QVariant>
GetClientInfo (
const QString& variant)
const = 0;
526 const QString& variant) = 0;
564 virtual void nameChanged (
const QString& name) = 0;
589 const QString& variant) = 0;
616 "org.Deviant.LeechCraft.Azoth.ICLEntry/1.0");
virtual QString GetRawInfo() const =0
Return string with raw information about the entry.
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 QObject * GetParentCLEntry() const
Q_DECLARE_METATYPE(LeechCraft::Azoth::State)
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 void rawinfoChanged(const QString &)=0
This signal should be emitted whenever our copy of raw information is updated.
Q_DECLARE_INTERFACE(LeechCraft::Azoth::IAccount,"org.Deviant.LeechCraft.Azoth.IAccount/1.0")
virtual QMap< QString, QVariant > GetClientInfo(const QString &variant) const =0
Returns the client information for the given variant.
virtual QObject * CreateMessage(IMessage::MessageType type, const QString &variant, const QString &body)=0
Creates the message of the given type to 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
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.
Q_DECLARE_OPERATORS_FOR_FLAGS(IAccount::AccountFeatures)
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.
virtual QList< QObject * > GetAllMessages() const =0
Returns all already sent or received messages.
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
MessageType
Represents possible message types.
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.
virtual QList< QAction * > GetActions() const =0
Returns the list of actions for the item.
virtual QObject * GetParentAccount() const =0