14 #include <QStringList> 16 #include <util/azoth/emitters/account.h> 187 virtual void Authorize (QObject *entry) = 0;
195 virtual void DenyAuth (QObject *entry) = 0;
227 const QString& msg = QString (),
228 const QString& name = QString (),
229 const QStringList& groups = QStringList ()) = 0;
297 Q_DECLARE_OPERATORS_FOR_FLAGS (LC::Azoth::IAccount::AccountFeatures)
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 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 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.
Emitters::Account & GetAccountEmitter()
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 QList< ICLEntry * > GetCLEntries()=0
Returns the list of contact list entries of this account.
virtual void ChangeState(const EntryStatus &status)=0
Sets the status of this account.
virtual QByteArray GetAccountID() const =0
Returns the ID of this account.
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.
Emitters::Account Emitter_
virtual QList< QAction * > GetActions() const =0
Returns the list of actions for the account item.
virtual ~IAccount()=default
Interface representing a single account.