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