172 Q_DECLARE_FLAGS (Features,
Feature)
230 return entry->GetQObject ();
367 const QString& variant,
368 const QString& body) = 0;
407 const QString& variant) = 0;
459 virtual QMap<QString, QVariant>
GetClientInfo (
const QString& variant)
const = 0;
495 const QString& variant) = 0;
544 const QString& variant) = 0;
567 Q_DECLARE_OPERATORS_FOR_FLAGS (LC::Azoth::ICLEntry::Features)
569 "org.Deviant.LeechCraft.Azoth.ICLEntry/1.0")
Interface representing a single account.
Represents a single entry in contact list.
virtual Features GetEntryFeatures() const =0
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 void PurgeMessages(const QDateTime &before)=0
Purges messages before the given date.
virtual QString GetEntryID() const =0
Returns the ID of this entry.
virtual IAccount * GetParentAccount() const =0
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.
virtual void groupsChanged(const QStringList &groups)=0
This signal should be emitted whenever the entry's groups are changed.
virtual void SetChatPartState(ChatPartState state, const QString &variant)=0
Notifies about our chat participation state change.
virtual QMap< QString, QVariant > GetClientInfo(const QString &variant) const =0
Returns the client information for the given variant.
virtual void MarkMsgsRead()=0
Called whenever new messages are read.
virtual IMessage * CreateMessage(IMessage::Type type, const QString &variant, const QString &body)=0
Creates the message of the given type to the given variant.
virtual ICLEntry * GetParentCLEntry() const
virtual void entryGenerallyChanged()=0
This signal should be emitted when the entry changes.
virtual void availableVariantsChanged(const QStringList &newVars)=0
This signal should be emitted whenever the list of available variants 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 SetGroups(const QStringList &groups)=0
Sets the list of groups this item belongs to.
virtual EntryType GetEntryType() const =0
virtual void permsChanged()=0
This signal should be emitted if it's a MUC participant and his role/affiliation changes.
virtual void gotMessage(QObject *msg)=0
This signal should be emitted whenever a new message is received.
virtual EntryStatus GetStatus(const QString &variant=QString()) const =0
Returns the current status of a variant of the item.
virtual QObject * GetQObject()=0
virtual QString GetEntryName() const =0
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.
virtual void ShowInfo()=0
Requests the entry to show dialog with info about it.
virtual void nameChanged(const QString &name)=0
This signal should be emitted whenever the entry changes name.
virtual QStringList Variants() const =0
Returns the list of destination variants.
virtual QList< IMessage * > GetAllMessages() const =0
Returns all already sent or received messages.
virtual void SetEntryName(const QString &name)=0
Sets the human-readable name of this entry.
QObject * GetParentCLEntryObject() const
This interface is used to represent a message.
Type
Represents possible message types.
State
Describes possible presence states of an account or a contact.
bool operator!=(const ActivityInfo &i1, const ActivityInfo &i2)
Checks whether the activity info structures are not equal.
bool operator==(const ActivityInfo &i1, const ActivityInfo &i2)
Checks whether the activity info structures are equal.
Describes an entry's status.
State State_
The general state of the entry.
EntryStatus()
Default-constructs an (offline) status.
QString StatusString_
The string of the entry accompanying its state.
EntryStatus(State state, const QString &string)
Constructs a status with a given state and status string.