Blokkal::PasswordedAccount Class Reference
This class provides the password handling for an account. More...
#include <blokkalaccount.h>
Public Slots | |
virtual void | connectAccount (void) |
virtual void | disconnectAccount (Blokkal::Account::DisconnectReason reason=UserDisconnect, const QString &reasonString=0) |
Public Member Functions | |
virtual void | removeAccount (void) |
virtual | ~PasswordedAccount (void) |
Protected Slots | |
virtual void | connectInner (void)=0 |
Protected Member Functions | |
const QString & | password (void) const |
PasswordedAccount (Blokkal::Protocol *protocol, const QString &id=0) |
Detailed Description
This class provides the password handling for an account.This class provides the password handling for an account. You will need to override connectInner() instead of connect().
Definition at line 350 of file blokkalaccount.h.
Constructor & Destructor Documentation
Blokkal::PasswordedAccount::~PasswordedAccount | ( | void | ) | [virtual] |
Destroys the object. The configuration will not be removed. If you want to destroy this account permanently, use removeAccount()
Definition at line 380 of file blokkalaccount.cpp.
Blokkal::PasswordedAccount::PasswordedAccount | ( | Blokkal::Protocol * | protocol, | |
const QString & | id = 0 | |||
) | [protected] |
Creates a new account for protocol protocol, with name id
- Parameters:
-
protocol the procotol of this account id the id of this account
Definition at line 374 of file blokkalaccount.cpp.
Member Function Documentation
void Blokkal::PasswordedAccount::connectAccount | ( | void | ) | [virtual, slot] |
This method has been overridden in to fetch the password, either from the wallet or by asking the user.
Implements Blokkal::Account.
Definition at line 391 of file blokkalaccount.cpp.
virtual void Blokkal::PasswordedAccount::connectInner | ( | void | ) | [protected, pure virtual, slot] |
Place the actual connection code in this method. This method will be called after the password has been aquired and the actual connection process can begin. If the password could not be aquired, this slot will not be called and disconnectAccount() will be called instead.
void Blokkal::PasswordedAccount::disconnectAccount | ( | Blokkal::Account::DisconnectReason | reason = UserDisconnect , |
|
const QString & | reasonString = 0 | |||
) | [virtual, slot] |
This method is called to close the current session. This method has been overridden to reset the password if reason was AuthenticationDisconnect.
- Parameters:
-
reason the reaon for the disconnect reasonString to use instead of a generic error message
Reimplemented from Blokkal::Account.
Definition at line 402 of file blokkalaccount.cpp.
const QString & Blokkal::PasswordedAccount::password | ( | void | ) | const [protected] |
Returns a reference to the stored password
- Returns:
- a reference to the stored password
Definition at line 412 of file blokkalaccount.cpp.
void Blokkal::PasswordedAccount::removeAccount | ( | void | ) | [virtual] |
Destroys the object and removes the configuration data. This method has been overridden to remove the password from the wallet as well.
Reimplemented from Blokkal::Account.
Definition at line 385 of file blokkalaccount.cpp.
The documentation for this class was generated from the following files: