summaryrefslogtreecommitdiffabout
path: root/kmicromail/libmailwrapper/settings.h
Unidiff
Diffstat (limited to 'kmicromail/libmailwrapper/settings.h') (more/less context) (show whitespace changes)
-rw-r--r--kmicromail/libmailwrapper/settings.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/kmicromail/libmailwrapper/settings.h b/kmicromail/libmailwrapper/settings.h
index c33c403..85b817c 100644
--- a/kmicromail/libmailwrapper/settings.h
+++ b/kmicromail/libmailwrapper/settings.h
@@ -40,37 +40,41 @@ public:
40 void setSSL( bool b ) { ssl = b; } 40 void setSSL( bool b ) { ssl = b; }
41 bool getSSL() { return ssl; } 41 bool getSSL() { return ssl; }
42 42
43 void setConnectionType( int x ) { connectionType = x; } 43 void setConnectionType( int x ) { connectionType = x; }
44 int ConnectionType() { return connectionType; } 44 int ConnectionType() { return connectionType; }
45 45
46 void setMaxMailSize( int x ) { maxMailSize = x; } 46 void setMaxMailSize( int x ) { maxMailSize = x; }
47 int getMaxMailSize() { return maxMailSize; } 47 int getMaxMailSize() { return maxMailSize; }
48 48
49 void setOffline(bool b) {offline = b;} 49 void setOffline(bool b) {offline = b;}
50 bool getOffline()const{return offline;} 50 bool getOffline()const{return offline;}
51 51
52 bool getLeaveOnServer(){ return leaveOnServer;}
53 void setLeaveOnServer(bool b){ leaveOnServer = b;}
54
52 virtual QString getFileName() { return accountName; } 55 virtual QString getFileName() { return accountName; }
53 virtual void read() { ; } 56 virtual void read() { ; }
54 virtual void save() { ; } 57 virtual void save() { ; }
55 58
56protected: 59protected:
57 QString accountName, server, port, user, password; 60 QString accountName, server, port, user, password;
58 bool ssl; 61 bool ssl;
59 int connectionType; 62 int connectionType;
60 bool offline; 63 bool offline;
61 MAILLIB::ATYPE type; 64 MAILLIB::ATYPE type;
62 QString localFolder; 65 QString localFolder;
63 int maxMailSize; 66 int maxMailSize;
64 QDateTime lastFetch; 67 QDateTime lastFetch;
68 bool leaveOnServer;
65}; 69};
66 70
67class IMAPaccount : public Account 71class IMAPaccount : public Account
68{ 72{
69 73
70public: 74public:
71 IMAPaccount(); 75 IMAPaccount();
72 IMAPaccount( QString filename ); 76 IMAPaccount( QString filename );
73 77
74 static QString getUniqueFileName(); 78 static QString getUniqueFileName();
75 79
76 virtual void read(); 80 virtual void read();