9 #ifndef PLUGINS_AZOTH_INTERFACES_IACCOUNT_H 10 #define PLUGINS_AZOTH_INTERFACES_IACCOUNT_H 14 #include <QStringList> 182 virtual void Authorize (QObject *entry) = 0;
190 virtual void DenyAuth (QObject *entry) = 0;
222 const QString& msg = QString (),
223 const QString& name = QString (),
224 const QStringList& groups = QStringList ()) = 0;
341 const QString& message) = 0;
359 virtual void itemSubscribed (QObject *entry,
const QString& message) = 0;
392 virtual void itemUnsubscribed (
const QString& entryID,
const QString& message) = 0;
443 const QString& inviter,
const QString& reason) = 0;
449 Q_DECLARE_OPERATORS_FOR_FLAGS (LC::Azoth::IAccount::AccountFeatures)
451 "org.Deviant.LeechCraft.Azoth.IAccount/1.0")
virtual void RequestAuth(const QString &entry, const QString &msg=QString(), const QString &name=QString(), const QStringList &groups=QStringList())=0
Requests authorization from the given entry.
virtual void authorizationRequested(QObject *entry, const QString &message)=0
This signal should be emitted when another user requests authorization from this account.
virtual void mucInvitationReceived(const QVariantMap &ident, const QString &inviter, const QString &reason)=0
This signal should be emitted whenever a MUC invitation has been received.
virtual void statusChanged(const EntryStatus &status)=0
This signal should be emitted when status of this account changes for whatever reason.
virtual void RemoveEntry(QObject *entry)=0
Removes the given entry from the contact list.
virtual QString GetOurNick() const =0
Returns the nickname of our user.
virtual void Authorize(QObject *entry)=0
Grants authorization to the given entry.
virtual void itemSubscribed(QObject *entry, const QString &message)=0
This signal should be emitted when an already added entry has just subscribed to us.
virtual void gotCLItems(const QList< QObject *> &items)=0
This signal should be emitted when new contact list items appear in this account. ...
virtual QObject * GetParentProtocol() const =0
Returns the pointer to the parent protocol that this account belongs to.
virtual QObject * GetTransferManager() const =0
Returns the object responsible for file transfers in this account.
virtual EntryStatus GetState() const =0
Returns the current status of this account.
virtual bool IsShownInRoster() const
Whether the account should be shown in the roster.
virtual void SetShownInRoster(bool shown)
Sets whether the account should be shown in the roster.
virtual void OpenConfigurationDialog()=0
Requests the account to open its configuration dialog.
virtual QString GetAccountName() const =0
Returns the human-readable name of this account.
virtual void RenameAccount(const QString &name)=0
Sets the human-readable name of this account to the new name.
virtual void itemCancelledSubscription(QObject *entry, const QString &message)=0
This signal should be emitted when a roster item cancels (or denies) our subscription.
virtual void removedCLItems(const QList< QObject *> &items)=0
This signal should be emitted after any contact list items are removed.
virtual void itemGrantedSubscription(QObject *entry, const QString &message)=0
This signal should be emitted when a roster item grants us subscription.
virtual void ChangeState(const EntryStatus &status)=0
Sets the status of this account.
virtual QByteArray GetAccountID() const =0
Returns the ID of this account.
virtual void accountRenamed(const QString &newName)=0
This signal should be emitted when account is renamed.
Describes an entry's status.
virtual AccountFeatures GetAccountFeatures() const =0
Returns the OR-ed combination of features of this account.
virtual QObject * GetQObject()=0
Returns the account object as a QObject.
virtual void DenyAuth(QObject *entry)=0
Denies authorization for the given entry.
virtual QList< QObject * > GetCLEntries()=0
Returns the list of contact list entries of this account.
virtual void itemUnsubscribed(QObject *entry, const QString &message)=0
This signal should be emitted when an already added entry has just unsubscribed from us...
virtual QList< QAction * > GetActions() const =0
Returns the list of actions for the account item.
Interface representing a single account.