Diffstat (limited to 'kmicromail/libmailwrapper/settings.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libmailwrapper/settings.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kmicromail/libmailwrapper/settings.h b/kmicromail/libmailwrapper/settings.h index 85b817c..61051dd 100644 --- a/kmicromail/libmailwrapper/settings.h +++ b/kmicromail/libmailwrapper/settings.h | |||
@@ -1,87 +1,90 @@ | |||
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 <qdatetime.h> | 11 | #include <qdatetime.h> |
12 | 12 | ||
13 | class Account | 13 | class Account |
14 | { | 14 | { |
15 | 15 | ||
16 | public: | 16 | public: |
17 | Account(); | 17 | Account(); |
18 | virtual ~Account() {} | 18 | virtual ~Account() {} |
19 | 19 | ||
20 | void remove(); | 20 | void remove(); |
21 | void setAccountName( QString name ) { accountName = name; } | 21 | void setAccountName( QString name ) { accountName = name; } |
22 | const QString&getAccountName()const{ return accountName; } | 22 | const QString&getAccountName()const{ return accountName; } |
23 | MAILLIB::ATYPE getType()const{ return type; } | 23 | MAILLIB::ATYPE getType()const{ return type; } |
24 | 24 | ||
25 | void setServer(const QString&str){ server = str; } | 25 | void setServer(const QString&str){ server = str; } |
26 | const QString&getServer()const{ return server; } | 26 | const QString&getServer()const{ return server; } |
27 | 27 | ||
28 | void setLocalFolder( QString name ) { localFolder = name; } | 28 | void setLocalFolder( QString name ) { localFolder = name; } |
29 | const QString& getLocalFolder()const{ return localFolder; } | 29 | const QString& getLocalFolder()const{ return localFolder; } |
30 | 30 | ||
31 | void setPort(const QString&str) { port = str; } | 31 | void setPort(const QString&str) { port = str; } |
32 | const QString&getPort()const{ return port; } | 32 | const QString&getPort()const{ return port; } |
33 | 33 | ||
34 | void setUser(const QString&str){ user = str; } | 34 | void setUser(const QString&str){ user = str; } |
35 | const QString&getUser()const{ return user; } | 35 | const QString&getUser()const{ return user; } |
36 | 36 | ||
37 | void setPassword(const QString&str) { password = str; } | 37 | void setPassword(const QString&str) { password = str; } |
38 | const QString&getPassword()const { return password; } | 38 | const QString&getPassword()const { return password; } |
39 | 39 | ||
40 | void setPasswordList(const QStringList &str); | ||
41 | QStringList getPasswordList(); | ||
42 | |||
40 | void setSSL( bool b ) { ssl = b; } | 43 | void setSSL( bool b ) { ssl = b; } |
41 | bool getSSL() { return ssl; } | 44 | bool getSSL() { return ssl; } |
42 | 45 | ||
43 | void setConnectionType( int x ) { connectionType = x; } | 46 | void setConnectionType( int x ) { connectionType = x; } |
44 | int ConnectionType() { return connectionType; } | 47 | int ConnectionType() { return connectionType; } |
45 | 48 | ||
46 | void setMaxMailSize( int x ) { maxMailSize = x; } | 49 | void setMaxMailSize( int x ) { maxMailSize = x; } |
47 | int getMaxMailSize() { return maxMailSize; } | 50 | int getMaxMailSize() { return maxMailSize; } |
48 | 51 | ||
49 | void setOffline(bool b) {offline = b;} | 52 | void setOffline(bool b) {offline = b;} |
50 | bool getOffline()const{return offline;} | 53 | bool getOffline()const{return offline;} |
51 | 54 | ||
52 | bool getLeaveOnServer(){ return leaveOnServer;} | 55 | bool getLeaveOnServer(){ return leaveOnServer;} |
53 | void setLeaveOnServer(bool b){ leaveOnServer = b;} | 56 | void setLeaveOnServer(bool b){ leaveOnServer = b;} |
54 | 57 | ||
55 | virtual QString getFileName() { return accountName; } | 58 | virtual QString getFileName() { return accountName; } |
56 | virtual void read() { ; } | 59 | virtual void read() { ; } |
57 | virtual void save() { ; } | 60 | virtual void save() { ; } |
58 | 61 | ||
59 | protected: | 62 | protected: |
60 | QString accountName, server, port, user, password; | 63 | QString accountName, server, port, user, password; |
61 | bool ssl; | 64 | bool ssl; |
62 | int connectionType; | 65 | int connectionType; |
63 | bool offline; | 66 | bool offline; |
64 | MAILLIB::ATYPE type; | 67 | MAILLIB::ATYPE type; |
65 | QString localFolder; | 68 | QString localFolder; |
66 | int maxMailSize; | 69 | int maxMailSize; |
67 | QDateTime lastFetch; | 70 | QDateTime lastFetch; |
68 | bool leaveOnServer; | 71 | bool leaveOnServer; |
69 | }; | 72 | }; |
70 | 73 | ||
71 | class IMAPaccount : public Account | 74 | class IMAPaccount : public Account |
72 | { | 75 | { |
73 | 76 | ||
74 | public: | 77 | public: |
75 | IMAPaccount(); | 78 | IMAPaccount(); |
76 | IMAPaccount( QString filename ); | 79 | IMAPaccount( QString filename ); |
77 | 80 | ||
78 | static QString getUniqueFileName(); | 81 | static QString getUniqueFileName(); |
79 | 82 | ||
80 | virtual void read(); | 83 | virtual void read(); |
81 | virtual void save(); | 84 | virtual void save(); |
82 | virtual QString getFileName(); | 85 | virtual QString getFileName(); |
83 | 86 | ||
84 | void setPrefix(const QString&str) {prefix=str;} | 87 | void setPrefix(const QString&str) {prefix=str;} |
85 | const QString&getPrefix()const{return prefix;} | 88 | const QString&getPrefix()const{return prefix;} |
86 | 89 | ||
87 | private: | 90 | private: |