|
virtual | ~IProxyObject () |
|
virtual QObject * | GetSettingsManager ()=0 |
| Returns the Core's settings manager object. 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 QByteArray | AuthStatusToString (AuthStatus status) const =0 |
| Returns serialized name of the authorization status. More...
|
|
virtual AuthStatus | AuthStatusFromString (const QByteArray &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 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 QObject * | CreateCoreMessage (const QString &body, const QDateTime &date, IMessage::Type type, IMessage::Direction dir, QObject *other, QObject *parent=nullptr)=0 |
|
virtual QString | ToPlainBody (QString body)=0 |
|
virtual bool | IsMessageRead (QObject *msgObj)=0 |
|
virtual void | MarkMessagesAsRead (QObject *entryObject)=0 |
|
virtual QString | PrettyPrintDateTime (const QDateTime &datetime)=0 |
| Formats the datetime according to current locale. More...
|
|
virtual std::optional< CustomStatus > | FindCustomStatus (const QString &name) const =0 |
| Tries to find a cusotm status under the given name. More...
|
|
virtual QStringList | GetCustomStatusNames () const =0 |
| Returns the names of all available custom statuses. More...
|
|
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 |
|
Definition at line 130 of file iproxyobject.h.
virtual QString LC::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()
virtual void LC::Azoth::IProxyObject::SetPassword |
( |
const QString & |
password, |
|
|
QObject * |
account |
|
) |
| |
|
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.
- Parameters
-
[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. |
- See also
- GetPassword(), IAccount