30 #ifndef PLUGINS_AZOTH_INTERFACES_IACCOUNT_H
31 #define PLUGINS_AZOTH_INTERFACES_IACCOUNT_H
35 #include <QStringList>
181 virtual QList<QAction*>
GetActions () const = 0;
190 virtual
void QueryInfo (const QString& address) = 0;
217 virtual
void Authorize (QObject *entry) = 0;
225 virtual
void DenyAuth (QObject *entry) = 0;
253 const QString& msg = QString (),
254 const QString& name = QString (),
255 const QStringList& groups = QStringList ()) = 0;
308 virtual void gotCLItems (
const QList<QObject*>& items) = 0;
343 const QString& message) = 0;
361 virtual void itemSubscribed (QObject *entry,
const QString& message) = 0;
394 virtual void itemUnsubscribed (
const QString& entryID,
const QString& message) = 0;
445 const QString& inviter,
const QString& reason) = 0;
454 "org.Deviant.LeechCraft.Azoth.IAccount/1.0");
virtual void gotCLItems(const QList< QObject * > &items)=0
This signal should be emitted when new contact list items appear in this account. ...
virtual QString GetOurNick() const =0
Returns the nickname of our user.
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 DenyAuth(QObject *entry)=0
Denies authorization for the given entry.
virtual void itemGrantedSubscription(QObject *entry, const QString &message)=0
This signal should be emitted when a roster item grants us subscription.
Q_DECLARE_METATYPE(LeechCraft::Azoth::State)
virtual QObject * GetTransferManager() const =0
Returns the object responsible for file transfers in 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.
Q_DECLARE_INTERFACE(LeechCraft::Azoth::IAccount,"org.Deviant.LeechCraft.Azoth.IAccount/1.0")
virtual QString GetAccountName() const =0
Returns the human-readable name of this account.
virtual void SetShownInRoster(bool shown)
virtual QObject * GetQObject()=0
Returns the account object as a QObject.
virtual void QueryInfo(const QString &address)=0
Request message w/ info/vcard information for the given address.
virtual QList< QObject * > GetCLEntries()=0
Returns the list of contact list entries of this account.
virtual AccountFeatures GetAccountFeatures() const =0
Returns the OR-ed combination of features of this account.
virtual QList< QAction * > GetActions() const =0
Returns the list of actions for the account item.
Q_DECLARE_OPERATORS_FOR_FLAGS(IAccount::AccountFeatures)
virtual void accountRenamed(const QString &newName)=0
This signal should be emitted when account is renamed.
virtual void RenameAccount(const QString &name)=0
Sets the human-readable name of this account to the new name.
virtual bool IsShownInRoster() const
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 RemoveEntry(QObject *entry)=0
Removes the given entry from the contact list.
virtual void OpenConfigurationDialog()=0
Requests the account to open its configuration dialog.
Interface representing a single account.
virtual EntryStatus GetState() const =0
Returns the current status of this account.
virtual void authorizationRequested(QObject *entry, const QString &message)=0
This signal should be emitted when another user requests authorization from this account.
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 QObject * GetParentProtocol() const =0
Returns the pointer to the parent protocol that this account belongs to.
virtual void removedCLItems(const QList< QObject * > &items)=0
This signal should be emitted after any contact list items are removed.
virtual void statusChanged(const EntryStatus &)=0
This signal should be emitted when state of this account changes for whatever reason.
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 QByteArray GetAccountID() const =0
Returns the ID of this account.
virtual void ChangeState(const EntryStatus &status)=0
Sets the status of this account.
virtual void Authorize(QObject *entry)=0
Grants authorization to the given entry.