![]() |
LeechCraft Azoth 0.6.70-18450-gabe19ee3b0
Modular multiprotocol IM plugin for LeechCraft
|
#include "iproxyobject.h"
Public Types | |
| enum | PublicResourceLoader { PRLClientIcons , PRLStatusIcons , PRLSystemIcons } |
Public Member Functions | |
| virtual | ~IProxyObject () |
| virtual QObject * | GetSettingsManager ()=0 |
| Returns the Core's settings manager object. | |
| virtual void | SetPassword (const QString &password, QObject *account)=0 |
| Stores the password for the given account. | |
| virtual QString | GetAccountPassword (QObject *account, bool useStored=true)=0 |
| Retrieves password for the given account, asking user if needed. | |
| virtual bool | IsAutojoinAllowed ()=0 |
| Queries whether autojoin is allowed. | |
| virtual QString | StateToString (State state) const =0 |
| Returns a human-readable string for the given state. | |
| virtual QByteArray | AuthStatusToString (AuthStatus status) const =0 |
| Returns serialized name of the authorization status. | |
| virtual AuthStatus | AuthStatusFromString (const QByteArray &str) const =0 |
| Converts string representation to AuthStatus element. | |
| virtual QObject * | GetAccount (const QString &accID) const =0 |
| Returns the account object for the given account ID. | |
| virtual QList< QObject * > | GetAllAccounts () const =0 |
| Returns all the accounts registered in Azoth. | |
| virtual QObject * | GetEntry (const QString &entryID, const QString &accID={}) const =0 |
| Returns the entry object for the given entry ID. | |
| virtual void | OpenChat (const QString &entryID, const QString &accID, const QString &message=QString(), const QString &variant=QString()) const =0 |
| Opens the chat with the given entry. | |
| virtual QWidget * | FindOpenedChat (const QString &entryID, const QByteArray &accID) const =0 |
| virtual Util::ResourceLoader * | GetResourceLoader (PublicResourceLoader loader) const =0 |
| virtual QIcon | GetIconForState (State state) const =0 |
| virtual void | InjectMessage (ICLEntry &, const InjectedMessage &)=0 |
| virtual QString | ToPlainBody (QString body)=0 |
| virtual bool | IsMessageRead (QObject *msgObj)=0 |
| virtual void | MarkMessagesAsRead (QObject *entryObject)=0 |
| virtual std::optional< CustomStatus > | FindCustomStatus (const QString &name) const =0 |
| Tries to find a cusotm status under the given name. | |
| virtual QStringList | GetCustomStatusNames () const =0 |
| Returns the names of all available custom statuses. | |
| virtual void | RedrawItem (QObject *) const =0 |
| virtual QObject * | GetFirstUnreadMessage (QObject *entryObj) const =0 |
| virtual QImage | GetDefaultAvatar (int size=-1) const =0 |
| virtual IFormatterProxyObject & | GetFormatterProxy ()=0 |
| virtual IAvatarsManager * | GetAvatarsManager ()=0 |
| virtual Hooks & | GetHooks ()=0 |
Definition at line 122 of file iproxyobject.h.
| Enumerator | |
|---|---|
| PRLClientIcons | |
| PRLStatusIcons | |
| PRLSystemIcons | |
Definition at line 127 of file iproxyobject.h.
|
inlinevirtual |
Definition at line 125 of file iproxyobject.h.
|
pure virtual |
Converts string representation to AuthStatus element.
The string that's passed should be the one previously returned from AuthStatusToString().
| [in] | str | String previously returned from AuthStatusToString(). |
|
pure virtual |
Returns serialized name of the authorization status.
|
pure virtual |
Tries to find a cusotm status under the given name.
| [in] | name | The name of the custom status. |
|
pure virtual |
|
pure virtual |
Returns the account object for the given account ID.
If there is no such account, NULL is returned.
| [in] | accID | The unique account ID. |
|
pure virtual |
Retrieves password for the given account, asking user if needed.
Returns password for the given account. If no password is stored, this function asks user to enter one and tries to store it after that. If the user refuses to enter a password, a null string would be returned.
If there was no password and user entered a non-null string, this function would call SetPassword() by itself, so there is no need to call SetPassword() explicitly.
This function may also ignore the already stored password if useStored is set to false. This is useful, for example, when a password previously returned by this function turned out to be wrong.
The account object should implement the IAccount interface. Accounts are distinguished by their IDs.
| [in] | account | The account for which to retrieve the password. The object should implement IAccount. |
| [in] | useStored | Whether returning already stored password is OK. |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Returns the names of all available custom statuses.
The returned names can be passed to FindCustomStatus() to obtain the full CustomStatus structure.
|
pure virtual |
|
pure virtual |
Returns the entry object for the given entry ID.
The accID may be empty, in which case all available accounts are queried.
| [in] | entryID | The entry ID. |
| [in] | accID | The account ID to which this entry belongs. |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Returns the Core's settings manager object.
The returned object's properties could be queried to find out the settings and parameters of Core's settings.
|
pure virtual |
|
pure virtual |
Queries whether autojoin is allowed.
|
pure virtual |
|
pure virtual |
|
pure virtual |
Opens the chat with the given entry.
This function allows one to open a chat with the given entry identified by entryID for the given account identified by accId.
| [in] | entryID | The ID of the entry to open chat with. |
| [in] | accID | The ID of the account where entryID belongs. |
| [in] | message | Prepare this text in the message editor. |
| [in] | variant | Select this variant, if available. |
|
pure virtual |
|
pure virtual |
Stores the password for the given account.
The password set by this function overwrites any previously set ones. After this function is called for given account, the GetPassword() would return either the last stored password or null string if no password storage plugin is installed.
The account object should implement the IAccount interface. Accounts are distinguished by their IDs.
| [in] | password | The password string to store. Null string may be used to overwrite/clear the saved password. |
| [in] | account | The account for which the password should be stored. The object should implement IAccount. |
|
pure virtual |
Returns a human-readable string for the given state.
|
pure virtual |