kmail

KMail::NetworkAccount Class Reference

Inheritance diagram for KMail::NetworkAccount:

KMAccount KMail::ImapAccountBase KMail::PopAccount KMAcctCachedImap KMAcctImap List of all members.

Detailed Description

Definition at line 46 of file networkaccount.h.


Public Member Functions

virtual ~NetworkAccount ()
virtual void init ()
virtual void pseudoAssign (const KMAccount *a)
QString login () const
virtual void setLogin (const QString &login)
QString passwd () const
virtual void setPasswd (const QString &passwd, bool storeInConfig=false)
virtual void clearPasswd ()
QString auth () const
virtual void setAuth (const QString &auth)
bool storePasswd () const
virtual void setStorePasswd (bool store)
QString host () const
virtual void setHost (const QString &host)
unsigned short int port () const
virtual void setPort (unsigned short int port)
bool useSSL () const
virtual void setUseSSL (bool use)
bool useTLS () const
virtual void setUseTLS (bool use)
KMail::SieveConfig sieveConfig () const
virtual void setSieveConfig (const KMail::SieveConfig &config)
virtual KIO::MetaData slaveConfig () const
virtual void readConfig (KConfig &config)
virtual void writeConfig (KConfig &config)
virtual KURL getUrl () const
KIO::Slave * slave () const
virtual void killAllJobs (bool disconnectSlave=false)=0
void readPassword ()
virtual bool mailCheckCanProceed () const
virtual void setCheckingMail (bool checking)

Static Public Member Functions

static void resetConnectionList (NetworkAccount *acct)

Protected Member Functions

 NetworkAccount (AccountManager *parent, const QString &name, uint id)
virtual QString protocol () const=0
virtual unsigned short int defaultPort () const=0

Protected Attributes

KMail::SieveConfig mSieveConfig
QGuardedPtr< KIO::Slave > mSlave
QString mLogin
QString mPasswd
QString mAuth
QString mHost
unsigned short int mPort
bool mStorePasswd: 1
bool mUseSSL: 1
bool mUseTLS: 1
bool mAskAgain: 1
bool mPasswdDirty
bool mStorePasswdInConfig

Member Function Documentation

void KMail::NetworkAccount::init (  )  [virtual]

Set the config options to a decent state.

Reimplemented from KMAccount.

Reimplemented in KMail::ImapAccountBase, KMAcctCachedImap, and KMail::PopAccount.

Definition at line 71 of file networkaccount.cpp.

void KMail::NetworkAccount::pseudoAssign ( const KMAccount a  )  [virtual]

A weak assignment operator.

Reimplemented from KMAccount.

Reimplemented in KMail::ImapAccountBase, KMAcctCachedImap, KMAcctImap, and KMail::PopAccount.

Definition at line 276 of file networkaccount.cpp.

QString KMail::NetworkAccount::login (  )  const [inline]

User login name.

Definition at line 60 of file networkaccount.h.

QString KMail::NetworkAccount::passwd (  )  const

User password.

Definition at line 96 of file networkaccount.cpp.

void KMail::NetworkAccount::clearPasswd (  )  [virtual]

Set the password to "" (empty string).

Reimplemented from KMAccount.

Definition at line 110 of file networkaccount.cpp.

QString KMail::NetworkAccount::auth (  )  const [inline]

authentication method

Definition at line 73 of file networkaccount.h.

bool KMail::NetworkAccount::storePasswd (  )  const [inline]

Returns:
whether to store the password in the config file

Definition at line 77 of file networkaccount.h.

QString KMail::NetworkAccount::host (  )  const [inline]

Server hostname.

Definition at line 81 of file networkaccount.h.

unsigned short int KMail::NetworkAccount::port (  )  const [inline]

Server port number.

Definition at line 85 of file networkaccount.h.

bool KMail::NetworkAccount::useSSL (  )  const [inline]

Returns:
whether to use SSL

Definition at line 89 of file networkaccount.h.

bool KMail::NetworkAccount::useTLS (  )  const [inline]

Returns:
whether to use TLS

Definition at line 93 of file networkaccount.h.

KMail::SieveConfig KMail::NetworkAccount::sieveConfig (  )  const [inline]

Returns:
the SieveConfig for this account

Definition at line 97 of file networkaccount.h.

MetaData KMail::NetworkAccount::slaveConfig (  )  const [virtual]

Configure the slave by adding to the meta data map.

Reimplemented in KMail::ImapAccountBase, and KMail::PopAccount.

Definition at line 270 of file networkaccount.cpp.

void KMail::NetworkAccount::readConfig ( KConfig &  config  )  [virtual]

Read config file entries.

This method is called by the account manager when a new account is created. The config group is already properly set by the caller.

Reimplemented from KMAccount.

Reimplemented in KMail::ImapAccountBase, KMAcctCachedImap, KMAcctImap, and KMail::PopAccount.

Definition at line 150 of file networkaccount.cpp.

void KMail::NetworkAccount::writeConfig ( KConfig &  config  )  [virtual]

Write all account information to given config file.

The config group is already properly set by the caller.

Reimplemented from KMAccount.

Reimplemented in KMail::ImapAccountBase, KMAcctCachedImap, and KMail::PopAccount.

Definition at line 198 of file networkaccount.cpp.

KURL KMail::NetworkAccount::getUrl (  )  const [virtual]

Returns:
an URL for this account

Definition at line 260 of file networkaccount.cpp.

KIO::Slave* KMail::NetworkAccount::slave (  )  const [inline]

Returns:
the KIO slave for this account

Definition at line 110 of file networkaccount.h.

virtual void KMail::NetworkAccount::killAllJobs ( bool  disconnectSlave = false  )  [pure virtual]

Kill all jobs that are currently in progress.

Implemented in KMail::ImapAccountBase, KMAcctCachedImap, KMAcctImap, and KMail::PopAccount.

void KMail::NetworkAccount::readPassword (  ) 

Read password from wallet, used for on-demand wallet opening.

Definition at line 292 of file networkaccount.cpp.

bool KMail::NetworkAccount::mailCheckCanProceed (  )  const [virtual]

Determines whether the account can be checked, currently.

Reimplementations can use this to prevent mailchecks due to exceeded connection limits, or because a network link iis down.

Returns:
whether mail checks can proceed

Reimplemented from KMAccount.

Definition at line 341 of file networkaccount.cpp.

void KMail::NetworkAccount::resetConnectionList ( NetworkAccount acct  )  [static]

Reset connection list for the account.

Definition at line 360 of file networkaccount.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys