Diffstat (limited to 'noncore/unsupported/mailit/emailhandler.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mailit/emailhandler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/unsupported/mailit/emailhandler.h b/noncore/unsupported/mailit/emailhandler.h index e4e7f46..74a8e4c 100644 --- a/noncore/unsupported/mailit/emailhandler.h +++ b/noncore/unsupported/mailit/emailhandler.h | |||
@@ -82,69 +82,69 @@ struct Email | |||
82 | void addEnclosure(Enclosure *e) | 82 | void addEnclosure(Enclosure *e) |
83 | { | 83 | { |
84 | files.append(e); | 84 | files.append(e); |
85 | } | 85 | } |
86 | }; | 86 | }; |
87 | 87 | ||
88 | struct MailAccount | 88 | struct MailAccount |
89 | { | 89 | { |
90 | QString accountName; | 90 | QString accountName; |
91 | QString name; | 91 | QString name; |
92 | QString emailAddress; | 92 | QString emailAddress; |
93 | QString popUserName; | 93 | QString popUserName; |
94 | QString popPasswd; | 94 | QString popPasswd; |
95 | QString popServer; | 95 | QString popServer; |
96 | QString smtpServer; | 96 | QString smtpServer; |
97 | bool synchronize; | 97 | bool synchronize; |
98 | int syncLimit; | 98 | int syncLimit; |
99 | int lastServerMailCount; | 99 | int lastServerMailCount; |
100 | int id; | 100 | int id; |
101 | }; | 101 | }; |
102 | 102 | ||
103 | const int ErrUnknownResponse = 1001; | 103 | const int ErrUnknownResponse = 1001; |
104 | const int ErrLoginFailed = 1002; | 104 | const int ErrLoginFailed = 1002; |
105 | const int ErrCancel = 1003; | 105 | const int ErrCancel = 1003; |
106 | 106 | ||
107 | 107 | ||
108 | class EmailHandler : public QObject | 108 | class EmailHandler : public QObject |
109 | { | 109 | { |
110 | Q_OBJECT | 110 | Q_OBJECT |
111 | 111 | ||
112 | public: | 112 | public: |
113 | EmailHandler(); | 113 | EmailHandler(); |
114 | void setAccount(MailAccount account); | 114 | void setAccount(MailAccount account); |
115 | MailAccount* getAccount(){return &mailAccount;} | 115 | MailAccount* getAccount(){return &mailAccount;} |
116 | void sendMail(QList<Email> *mailList); | 116 | void sendMail(QList<Email> *mailList); |
117 | void getMail(); | 117 | void getMail(); |
118 | void getMailHeaders(); | 118 | void getMailHeaders(); |
119 | void getMailByList(MailList *mailList); | 119 | void getMailByList(MailList *mailList); |
120 | bool parse(const QString &in, const QString &lineShift, Email *mail); | 120 | bool parse(const QString &in, const QString &lineShift, Email *mail); |
121 | bool getEnclosure(Enclosure *ePtr); | 121 | bool getEnclosure(Enclosure *ePtr); |
122 | int parse64base(char *src, char *dest); | 122 | int parse64base(char *src, char *dest); |
123 | int encodeMime(Email *mail); | 123 | int encodeMime(Email *mail); |
124 | int encodeFile(const QString &fileName, QString *toBody); | 124 | int encodeFile(const QString &fileName, QString *toBody); |
125 | void encode64base(char *src, QString *dest, int len); | 125 | void encode64base(char *src, QString *dest, int len); |
126 | void cancel(); | 126 | void cancel(); |
127 | 127 | ||
128 | signals: | 128 | signals: |
129 | void mailSent(); | 129 | void mailSent(); |
130 | void smtpError(int); | 130 | void smtpError(int, const QString & Msg ); |
131 | void popError(int); | 131 | void popError(int, const QString & Msg ); |
132 | void mailArrived(const Email &, bool); | 132 | void mailArrived(const Email &, bool); |
133 | void updatePopStatus(const QString &); | 133 | void updatePopStatus(const QString &); |
134 | void updateSmtpStatus(const QString &); | 134 | void updateSmtpStatus(const QString &); |
135 | void mailTransfered(int); | 135 | void mailTransfered(int); |
136 | void mailboxSize(int); | 136 | void mailboxSize(int); |
137 | void currentMailSize(int); | 137 | void currentMailSize(int); |
138 | void downloadedSize(int); | 138 | void downloadedSize(int); |
139 | 139 | ||
140 | public slots: | 140 | public slots: |
141 | void messageArrived(const QString &, int id, uint size, bool complete); | 141 | void messageArrived(const QString &, int id, uint size, bool complete); |
142 | 142 | ||
143 | private: | 143 | private: |
144 | MailAccount mailAccount; | 144 | MailAccount mailAccount; |
145 | SmtpClient *smtpClient; | 145 | SmtpClient *smtpClient; |
146 | PopClient *popClient; | 146 | PopClient *popClient; |
147 | bool headers; | 147 | bool headers; |
148 | }; | 148 | }; |
149 | 149 | ||
150 | #endif | 150 | #endif |