Diffstat (limited to 'kmicromail/libmailwrapper/settings.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libmailwrapper/settings.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kmicromail/libmailwrapper/settings.h b/kmicromail/libmailwrapper/settings.h index 61051dd..79567ef 100644 --- a/kmicromail/libmailwrapper/settings.h +++ b/kmicromail/libmailwrapper/settings.h | |||
@@ -1,74 +1,75 @@ | |||
1 | #ifndef SETTINGS_H | 1 | #ifndef SETTINGS_H |
2 | #define SETTINGS_H | 2 | #define SETTINGS_H |
3 | 3 | ||
4 | #include "maildefines.h" | 4 | #include "maildefines.h" |
5 | 5 | ||
6 | /* OPIE */ | 6 | /* OPIE */ |
7 | 7 | ||
8 | /* QT */ | 8 | /* QT */ |
9 | #include <qobject.h> | 9 | #include <qobject.h> |
10 | #include <qlist.h> | 10 | #include <qlist.h> |
11 | #include <qstringlist.h> | ||
11 | #include <qdatetime.h> | 12 | #include <qdatetime.h> |
12 | 13 | ||
13 | class Account | 14 | class Account |
14 | { | 15 | { |
15 | 16 | ||
16 | public: | 17 | public: |
17 | Account(); | 18 | Account(); |
18 | virtual ~Account() {} | 19 | virtual ~Account() {} |
19 | 20 | ||
20 | void remove(); | 21 | void remove(); |
21 | void setAccountName( QString name ) { accountName = name; } | 22 | void setAccountName( QString name ) { accountName = name; } |
22 | const QString&getAccountName()const{ return accountName; } | 23 | const QString&getAccountName()const{ return accountName; } |
23 | MAILLIB::ATYPE getType()const{ return type; } | 24 | MAILLIB::ATYPE getType()const{ return type; } |
24 | 25 | ||
25 | void setServer(const QString&str){ server = str; } | 26 | void setServer(const QString&str){ server = str; } |
26 | const QString&getServer()const{ return server; } | 27 | const QString&getServer()const{ return server; } |
27 | 28 | ||
28 | void setLocalFolder( QString name ) { localFolder = name; } | 29 | void setLocalFolder( QString name ) { localFolder = name; } |
29 | const QString& getLocalFolder()const{ return localFolder; } | 30 | const QString& getLocalFolder()const{ return localFolder; } |
30 | 31 | ||
31 | void setPort(const QString&str) { port = str; } | 32 | void setPort(const QString&str) { port = str; } |
32 | const QString&getPort()const{ return port; } | 33 | const QString&getPort()const{ return port; } |
33 | 34 | ||
34 | void setUser(const QString&str){ user = str; } | 35 | void setUser(const QString&str){ user = str; } |
35 | const QString&getUser()const{ return user; } | 36 | const QString&getUser()const{ return user; } |
36 | 37 | ||
37 | void setPassword(const QString&str) { password = str; } | 38 | void setPassword(const QString&str) { password = str; } |
38 | const QString&getPassword()const { return password; } | 39 | const QString&getPassword()const { return password; } |
39 | 40 | ||
40 | void setPasswordList(const QStringList &str); | 41 | void setPasswordList(const QStringList &str); |
41 | QStringList getPasswordList(); | 42 | QStringList getPasswordList(); |
42 | 43 | ||
43 | void setSSL( bool b ) { ssl = b; } | 44 | void setSSL( bool b ) { ssl = b; } |
44 | bool getSSL() { return ssl; } | 45 | bool getSSL() { return ssl; } |
45 | 46 | ||
46 | void setConnectionType( int x ) { connectionType = x; } | 47 | void setConnectionType( int x ) { connectionType = x; } |
47 | int ConnectionType() { return connectionType; } | 48 | int ConnectionType() { return connectionType; } |
48 | 49 | ||
49 | void setMaxMailSize( int x ) { maxMailSize = x; } | 50 | void setMaxMailSize( int x ) { maxMailSize = x; } |
50 | int getMaxMailSize() { return maxMailSize; } | 51 | int getMaxMailSize() { return maxMailSize; } |
51 | 52 | ||
52 | void setOffline(bool b) {offline = b;} | 53 | void setOffline(bool b) {offline = b;} |
53 | bool getOffline()const{return offline;} | 54 | bool getOffline()const{return offline;} |
54 | 55 | ||
55 | bool getLeaveOnServer(){ return leaveOnServer;} | 56 | bool getLeaveOnServer(){ return leaveOnServer;} |
56 | void setLeaveOnServer(bool b){ leaveOnServer = b;} | 57 | void setLeaveOnServer(bool b){ leaveOnServer = b;} |
57 | 58 | ||
58 | virtual QString getFileName() { return accountName; } | 59 | virtual QString getFileName() { return accountName; } |
59 | virtual void read() { ; } | 60 | virtual void read() { ; } |
60 | virtual void save() { ; } | 61 | virtual void save() { ; } |
61 | 62 | ||
62 | protected: | 63 | protected: |
63 | QString accountName, server, port, user, password; | 64 | QString accountName, server, port, user, password; |
64 | bool ssl; | 65 | bool ssl; |
65 | int connectionType; | 66 | int connectionType; |
66 | bool offline; | 67 | bool offline; |
67 | MAILLIB::ATYPE type; | 68 | MAILLIB::ATYPE type; |
68 | QString localFolder; | 69 | QString localFolder; |
69 | int maxMailSize; | 70 | int maxMailSize; |
70 | QDateTime lastFetch; | 71 | QDateTime lastFetch; |
71 | bool leaveOnServer; | 72 | bool leaveOnServer; |
72 | }; | 73 | }; |
73 | 74 | ||
74 | class IMAPaccount : public Account | 75 | class IMAPaccount : public Account |