25 #ifndef __KMAIL_NETWORKACCOUNT_H__
26 #define __KMAIL_NETWORKACCOUNT_H__
28 #include <tqguardedptr.h>
30 #include "kmaccount.h"
32 #include "sieveconfig.h"
48 class NetworkAccount : public KMAccount {
52 NetworkAccount( AccountManager * parent, const TQString & name, uint id );
54 virtual ~NetworkAccount();
60 virtual void pseudoAssign( const KMAccount * a );
63 TQString login() const { return mLogin; }
64 virtual void setLogin( const TQString & login );
67 TQString passwd() const;
68 virtual void setPasswd( const TQString & passwd, bool storeInConfig= false );
73 virtual void clearPasswd();
76 TQString auth() const { return mAuth; }
77 virtual void setAuth( const TQString & auth );
80 bool storePasswd() const { return mStorePasswd; }
81 virtual void setStorePasswd( bool store );
84 TQString host() const { return mHost; }
85 virtual void setHost( const TQString & host );
88 unsigned short int port() const { return mPort; }
89 virtual void setPort( unsigned short int port );
92 bool useSSL() const { return mUseSSL; }
93 virtual void setUseSSL( bool use );
96 bool useTLS() const { return mUseTLS; }
97 virtual void setUseTLS( bool use );
100 KMail::SieveConfig sieveConfig() const { return mSieveConfig; }
101 virtual void setSieveConfig( const KMail::SieveConfig & config );
104 virtual TDEIO::MetaData slaveConfig() const;
106 virtual void readConfig( TDEConfig & config );
107 virtual void writeConfig( TDEConfig & config ) ;
110 virtual KURL getUrl() const;
113 TDEIO::Slave * slave() const { return mSlave; }
116 virtual void killAllJobs( bool disconnectSlave = false ) = 0;
121 virtual bool mailCheckCanProceed() const;
123 virtual void setCheckingMail( bool checking );
126 static void resetConnectionList( NetworkAccount* acct );
128 virtual TQString protocol() const = 0;
129 virtual unsigned short int defaultPort() const = 0;
132 KMail::SieveConfig mSieveConfig;
133 TQGuardedPtr<TDEIO::Slave> mSlave;
134 TQString mLogin, mPasswd, mAuth, mHost;
135 unsigned short int mPort;
136 bool mStorePasswd : 1;
140 bool mPasswdDirty, mStorePasswdInConfig;
The account manager is responsible for creating accounts of various types via the factory method crea...
|