You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.3 KiB
57 lines
1.3 KiB
/* KMail account for pop mail folders |
|
* |
|
*/ |
|
#ifndef kmacctpop_h |
|
#define kmacctpop_h |
|
|
|
#include "kmaccount.h" |
|
|
|
#define KMAcctPopInherited KMAccount |
|
|
|
class KMAcctPop: public KMAccount |
|
{ |
|
protected: |
|
friend class KMAcctMgr; |
|
|
|
KMAcctPop(KMAcctMgr* owner, const char* accountName); |
|
|
|
public: |
|
virtual ~KMAcctPop(); |
|
|
|
/** Pop user login name */ |
|
const QString& login(void) const { return mLogin; } |
|
virtual void setLogin(const QString&); |
|
|
|
/** Pop user password */ |
|
const QString& passwd(void) const { return mPasswd; } |
|
virtual void setPasswd(const QString&, bool storeInConfig=FALSE); |
|
|
|
/** Will the password be stored in the config file ? */ |
|
bool storePasswd(void) const { return mStorePasswd; } |
|
|
|
/** Pop host */ |
|
const QString& host(void) const { return mHost; } |
|
virtual void setHost(const QString&); |
|
|
|
/** Port on pop host */ |
|
int port(void) { return mPort; } |
|
virtual void setPort(int); |
|
|
|
/** Pop protocol: shall be 2 or 3 */ |
|
short protocol(void) { return mProtocol; } |
|
virtual void setProtocol(short); |
|
|
|
virtual const char* type(void) const; |
|
virtual void readConfig(void); |
|
virtual void writeConfig(void); |
|
virtual bool processNewMail(void); |
|
|
|
protected: |
|
QString mLogin, mPasswd; |
|
QString mHost; |
|
int mPort; |
|
short mProtocol; |
|
bool mStorePasswd; |
|
}; |
|
|
|
#endif /*kmacctpop_h*/
|
|
|