Diffstat (limited to 'noncore/net/mailit/popclient.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mailit/popclient.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/net/mailit/popclient.h b/noncore/net/mailit/popclient.h index c58bc48..6774ceb 100644 --- a/noncore/net/mailit/popclient.h +++ b/noncore/net/mailit/popclient.h | |||
@@ -31,41 +31,42 @@ | |||
31 | class PopClient: public QObject | 31 | class PopClient: public QObject |
32 | { | 32 | { |
33 | Q_OBJECT | 33 | Q_OBJECT |
34 | 34 | ||
35 | public: | 35 | public: |
36 | PopClient(); | 36 | PopClient(); |
37 | ~PopClient(); | 37 | ~PopClient(); |
38 | void newConnection(const QString &target, int port); | 38 | void newConnection(const QString &target, int port); |
39 | void setAccount(const QString &popUser, const QString &popPasswd); | 39 | void setAccount(const QString &popUser, const QString &popPasswd); |
40 | void setSynchronize(int lastCount); | 40 | void setSynchronize(int lastCount); |
41 | void removeSynchronize(); | 41 | void removeSynchronize(); |
42 | void headersOnly(bool headers, int limit); | 42 | void headersOnly(bool headers, int limit); |
43 | void setSelectedMails(MailList *list); | 43 | void setSelectedMails(MailList *list); |
44 | 44 | ||
45 | signals: | 45 | signals: |
46 | void newMessage(const QString &, int, uint, bool); | 46 | void newMessage(const QString &, int, uint, bool); |
47 | void errorOccurred(int status); | 47 | void errorOccurred(int status, const QString & Msg ); |
48 | void updateStatus(const QString &); | 48 | void updateStatus(const QString &); |
49 | void mailTransfered(int); | 49 | void mailTransfered(int); |
50 | void mailboxSize(int); | 50 | void mailboxSize(int); |
51 | void currentMailSize(int); | 51 | void currentMailSize(int); |
52 | void downloadedSize(int); | 52 | void downloadedSize(int); |
53 | 53 | ||
54 | public slots: | 54 | public slots: |
55 | void errorHandling(int); | 55 | void errorHandling(int); |
56 | void errorHandlingWithMsg(int, const QString & ); | ||
56 | 57 | ||
57 | protected slots: | 58 | protected slots: |
58 | void connectionEstablished(); | 59 | void connectionEstablished(); |
59 | void incomingData(); | 60 | void incomingData(); |
60 | 61 | ||
61 | private: | 62 | private: |
62 | QSocket *socket; | 63 | QSocket *socket; |
63 | QTextStream *stream; | 64 | QTextStream *stream; |
64 | enum transferStatus | 65 | enum transferStatus |
65 | { | 66 | { |
66 | Init, Pass, Stat, Mcnt, Read, List, Size, Retr, Acks, | 67 | Init, Pass, Stat, Mcnt, Read, List, Size, Retr, Acks, |
67 | Quit, Done, Ignore | 68 | Quit, Done, Ignore |
68 | }; | 69 | }; |
69 | int status, lastSync; | 70 | int status, lastSync; |
70 | int messageCount, newMessages, mailSize, headerLimit; | 71 | int messageCount, newMessages, mailSize, headerLimit; |
71 | bool receiving, synchronize, preview, selected; | 72 | bool receiving, synchronize, preview, selected; |