kopete/libkopete
Kopete::ManagedConnectionAccount Class Reference
#include <managedconnectionaccount.h>

Detailed Description
A ManagedConnectionAccount queries the NetworkStatus KDED Module before trying to connect using connectwithPassword, starting a network connection if needed.If the network is not available, it delays calling performConnectWithPassword until it receives notification from the daemon that the network is up. The account receiveds notifications from the daemon of network failures and calls disconnect to set the account offline in a timely manner.
Definition at line 36 of file managedconnectionaccount.h.
Public Slots | |
| void | connectWithPassword (const QString &password) |
Public Member Functions | |
| ManagedConnectionAccount (Protocol *parent, const QString &acctId) | |
Protected Slots | |
| virtual void | slotConnectionStatusChanged (const QString &host, NetworkStatus::EnumStatus status) |
Protected Member Functions | |
| virtual void | performConnectWithPassword (const QString &password)=0 |
Constructor & Destructor Documentation
| Kopete::ManagedConnectionAccount::ManagedConnectionAccount | ( | Protocol * | parent, | |
| const QString & | acctId | |||
| ) |
ManagedConnectionAccount constructor.
- Parameters:
-
parent The protocol this account connects via acctId The ID of this account - should be unique within this protocol maxPasswordLength The maximum length for passwords for this account, or 0 for no limit
Definition at line 27 of file managedconnectionaccount.cpp.
Member Function Documentation
| void Kopete::ManagedConnectionAccount::connectWithPassword | ( | const QString & | password | ) | [virtual, slot] |
Begin the connection process, by checking if the connection is available with the ConnectionManager.
This method is called by PasswordedAccount::connect()
- Parameters:
-
password the password to connect with.
Implements Kopete::PasswordedAccount.
Definition at line 34 of file managedconnectionaccount.cpp.
| virtual void Kopete::ManagedConnectionAccount::performConnectWithPassword | ( | const QString & | password | ) | [protected, pure virtual] |
Connect to the server, once the network is available.
This method is called by the ManagedConnectionAccount once the network is available. In this method you should set up your network connection and connect to the server.
| void Kopete::ManagedConnectionAccount::slotConnectionStatusChanged | ( | const QString & | host, | |
| NetworkStatus::EnumStatus | status | |||
| ) | [protected, virtual, slot] |
Handle a change in the network connection Called by the ConnectionManager when the network comes up or fails.
The default implementation calls performConnectWithPassword when the network goes online and connectWithPassword() was previously called, and calls disconnect() when the connection goes down.
- Parameters:
-
host For future expansion. status the new status of the network
Definition at line 56 of file managedconnectionaccount.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference