Diffstat (limited to 'noncore/unsupported/mailit/emailhandler.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mailit/emailhandler.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/unsupported/mailit/emailhandler.h b/noncore/unsupported/mailit/emailhandler.h index 17c4414..e47fd9a 100644 --- a/noncore/unsupported/mailit/emailhandler.h +++ b/noncore/unsupported/mailit/emailhandler.h | |||
@@ -73,48 +73,49 @@ struct Email | |||
73 | int serverId; | 73 | int serverId; |
74 | int internalId; | 74 | int internalId; |
75 | int fromAccountId; | 75 | int fromAccountId; |
76 | QString contentType; //0 = text | 76 | QString contentType; //0 = text |
77 | QString contentAttribute; //0 = plain, 1 = html | 77 | QString contentAttribute; //0 = plain, 1 = html |
78 | EnclosureList files; | 78 | EnclosureList files; |
79 | uint size; | 79 | uint size; |
80 | 80 | ||
81 | void addEnclosure(Enclosure *e) | 81 | void addEnclosure(Enclosure *e) |
82 | { | 82 | { |
83 | files.append(e); | 83 | files.append(e); |
84 | } | 84 | } |
85 | }; | 85 | }; |
86 | 86 | ||
87 | struct MailAccount | 87 | struct MailAccount |
88 | { | 88 | { |
89 | QString accountName; | 89 | QString accountName; |
90 | QString name; | 90 | QString name; |
91 | QString emailAddress; | 91 | QString emailAddress; |
92 | QString popUserName; | 92 | QString popUserName; |
93 | QString popPasswd; | 93 | QString popPasswd; |
94 | QString popServer; | 94 | QString popServer; |
95 | QString smtpServer; | 95 | QString smtpServer; |
96 | bool synchronize; | 96 | bool synchronize; |
97 | int syncLimit; | ||
97 | int lastServerMailCount; | 98 | int lastServerMailCount; |
98 | int id; | 99 | int id; |
99 | }; | 100 | }; |
100 | 101 | ||
101 | const int ErrUnknownResponse = 1001; | 102 | const int ErrUnknownResponse = 1001; |
102 | const int ErrLoginFailed = 1002; | 103 | const int ErrLoginFailed = 1002; |
103 | const int ErrCancel = 1003; | 104 | const int ErrCancel = 1003; |
104 | 105 | ||
105 | 106 | ||
106 | class EmailHandler : public QObject | 107 | class EmailHandler : public QObject |
107 | { | 108 | { |
108 | Q_OBJECT | 109 | Q_OBJECT |
109 | 110 | ||
110 | public: | 111 | public: |
111 | EmailHandler(); | 112 | EmailHandler(); |
112 | void setAccount(MailAccount account); | 113 | void setAccount(MailAccount account); |
113 | void sendMail(QList<Email> *mailList); | 114 | void sendMail(QList<Email> *mailList); |
114 | void getMail(); | 115 | void getMail(); |
115 | void getMailHeaders(); | 116 | void getMailHeaders(); |
116 | void getMailByList(MailList *mailList); | 117 | void getMailByList(MailList *mailList); |
117 | bool parse(QString in, QString lineShift, Email *mail); | 118 | bool parse(QString in, QString lineShift, Email *mail); |
118 | bool getEnclosure(Enclosure *ePtr); | 119 | bool getEnclosure(Enclosure *ePtr); |
119 | int parse64base(char *src, char *dest); | 120 | int parse64base(char *src, char *dest); |
120 | int encodeMime(Email *mail); | 121 | int encodeMime(Email *mail); |