|
virtual | ~IProxyObject () |
|
virtual QObject * | GetSettingsManager ()=0 |
| Returns the Core's settings manager object. More...
|
|
virtual QString | GetPassword (QObject *account)=0 |
| Retrieves the password for the given account. More...
|
|
virtual void | SetPassword (const QString &password, QObject *account)=0 |
| Stores the password for the given account. More...
|
|
virtual QString | GetAccountPassword (QObject *account, bool useStored=true)=0 |
| Retrieves password for the given account, asking user if needed. More...
|
|
virtual bool | IsAutojoinAllowed ()=0 |
| Queries whether autojoin is allowed. More...
|
|
virtual QString | StateToString (State state) const =0 |
| Returns a human-readable string for the given state. More...
|
|
virtual QString | AuthStatusToString (AuthStatus status) const =0 |
| Returns serialized name of the authorization status. More...
|
|
virtual AuthStatus | AuthStatusFromString (const QString &str) const =0 |
| Converts string representation to AuthStatus element. More...
|
|
virtual QObject * | GetAccount (const QString &accID) const =0 |
| Returns the account object for the given account ID. More...
|
|
virtual QList< QObject * > | GetAllAccounts () const =0 |
| Returns all the accounts registered in Azoth. More...
|
|
virtual QObject * | GetEntry (const QString &entryID, const QString &accID) const =0 |
| Returns the entry object for the given entry ID. More...
|
|
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. More...
|
|
virtual QList< QColor > | GenerateColors (const QString &scheme) const =0 |
| Generates the nickname colors for the given scheme. More...
|
|
virtual QString | GetNickColor (const QString &nick, const QList< QColor > &colors) const =0 |
| Returns the color for the given nick and color set. More...
|
|
virtual QString | FormatDate (QDateTime date, QObject *message) const =0 |
| Formats the date for the given message. More...
|
|
virtual QString | FormatNickname (QString nick, QObject *message, const QString &color) const =0 |
| Formats the nickname for the given message and color. More...
|
|
virtual QString | FormatBody (QString body, QObject *message) const =0 |
| Formats the body for the given message. More...
|
|
virtual void | PreprocessMessage (QObject *message)=0 |
| Preprocesses the message before displaying it. More...
|
|
virtual Util::ResourceLoader * | GetResourceLoader (PublicResourceLoader loader) const =0 |
|
virtual QIcon | GetIconForState (State state) const =0 |
|
virtual void | FormatLinks (QString &body)=0 |
|
Definition at line 47 of file iproxyobject.h.
virtual QList<QColor> LeechCraft::Azoth::IProxyObject::GenerateColors |
( |
const QString & |
scheme | ) |
const |
|
pure virtual |
Generates the nickname colors for the given scheme.
If the scheme is empty or equals "hash", then a random set of colors is generated based on current palette and settings. Otherwise, scheme is interpreted as space-separated list of colors, either named, like "green" or "cyan", or their RGB values in forms like "#FA12BB".
- Parameters
-
[in] | scheme | The color scheme to use. |
- Returns
- The list of colors matching the given color scheme.
virtual QString LeechCraft::Azoth::IProxyObject::GetAccountPassword |
( |
QObject * |
account, |
|
|
bool |
useStored = true |
|
) |
| |
|
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.
- Parameters
-
[in] | account | The account for which to retrieve the password. The object should implement IAccount. |
[in] | useStored | Whether returning already stored password is OK. |
- Returns
- The stored password, or user-entered password if there is no stored password or useStored is false, or null string if there is no stored password and user refused to enter one.
- See Also
- GetPassword()