-rw-r--r-- | noncore/net/mail/accountview.cpp | 1 | ||||
-rw-r--r-- | noncore/net/mail/accountview.h | 2 | ||||
-rw-r--r-- | noncore/net/mail/imapwrapper.cpp | 2 | ||||
-rw-r--r-- | noncore/net/mail/imapwrapper.h | 25 | ||||
-rw-r--r-- | noncore/net/mail/libmailwrapper/imapwrapper.cpp | 2 | ||||
-rw-r--r-- | noncore/net/mail/libmailwrapper/imapwrapper.h | 25 | ||||
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailwrapper.h | 19 | ||||
-rw-r--r-- | noncore/net/mail/mail.pro | 3 | ||||
-rw-r--r-- | noncore/net/mail/mailwrapper.h | 19 |
9 files changed, 57 insertions, 41 deletions
diff --git a/noncore/net/mail/accountview.cpp b/noncore/net/mail/accountview.cpp index c6a44ab..a531976 100644 --- a/noncore/net/mail/accountview.cpp +++ b/noncore/net/mail/accountview.cpp | |||
@@ -1,2 +1,3 @@ | |||
1 | #include "accountview.h" | 1 | #include "accountview.h" |
2 | #include "imapwrapper.h" | ||
2 | #include "defines.h" | 3 | #include "defines.h" |
diff --git a/noncore/net/mail/accountview.h b/noncore/net/mail/accountview.h index 14d8efa..2bc8023 100644 --- a/noncore/net/mail/accountview.h +++ b/noncore/net/mail/accountview.h | |||
@@ -8,2 +8,4 @@ | |||
8 | 8 | ||
9 | class IMAPwrapper; | ||
10 | |||
9 | class AccountViewItem : public QListViewItem | 11 | class AccountViewItem : public QListViewItem |
diff --git a/noncore/net/mail/imapwrapper.cpp b/noncore/net/mail/imapwrapper.cpp index fc12947..7b78499 100644 --- a/noncore/net/mail/imapwrapper.cpp +++ b/noncore/net/mail/imapwrapper.cpp | |||
@@ -3,3 +3,3 @@ | |||
3 | 3 | ||
4 | #include "mailwrapper.h" | 4 | #include "imapwrapper.h" |
5 | 5 | ||
diff --git a/noncore/net/mail/imapwrapper.h b/noncore/net/mail/imapwrapper.h new file mode 100644 index 0000000..65c36e0 --- a/dev/null +++ b/noncore/net/mail/imapwrapper.h | |||
@@ -0,0 +1,25 @@ | |||
1 | #ifndef __IMAPWRAPPER | ||
2 | #define __IMAPWRAPPER | ||
3 | |||
4 | #include "mailwrapper.h" | ||
5 | #include <libetpan/mailimap.h> | ||
6 | |||
7 | class IMAPwrapper : public QObject | ||
8 | { | ||
9 | Q_OBJECT | ||
10 | |||
11 | public: | ||
12 | IMAPwrapper( IMAPaccount *a ); | ||
13 | QList<IMAPFolder>* listFolders(); | ||
14 | void listMessages(const QString & mailbox,Maillist&target ); | ||
15 | QString fetchBody(const QString & mailbox,const RecMail&mail); | ||
16 | |||
17 | protected: | ||
18 | RecMail*parse_list_result(mailimap_msg_att*); | ||
19 | |||
20 | private: | ||
21 | IMAPaccount *account; | ||
22 | |||
23 | }; | ||
24 | |||
25 | #endif | ||
diff --git a/noncore/net/mail/libmailwrapper/imapwrapper.cpp b/noncore/net/mail/libmailwrapper/imapwrapper.cpp index fc12947..7b78499 100644 --- a/noncore/net/mail/libmailwrapper/imapwrapper.cpp +++ b/noncore/net/mail/libmailwrapper/imapwrapper.cpp | |||
@@ -3,3 +3,3 @@ | |||
3 | 3 | ||
4 | #include "mailwrapper.h" | 4 | #include "imapwrapper.h" |
5 | 5 | ||
diff --git a/noncore/net/mail/libmailwrapper/imapwrapper.h b/noncore/net/mail/libmailwrapper/imapwrapper.h new file mode 100644 index 0000000..65c36e0 --- a/dev/null +++ b/noncore/net/mail/libmailwrapper/imapwrapper.h | |||
@@ -0,0 +1,25 @@ | |||
1 | #ifndef __IMAPWRAPPER | ||
2 | #define __IMAPWRAPPER | ||
3 | |||
4 | #include "mailwrapper.h" | ||
5 | #include <libetpan/mailimap.h> | ||
6 | |||
7 | class IMAPwrapper : public QObject | ||
8 | { | ||
9 | Q_OBJECT | ||
10 | |||
11 | public: | ||
12 | IMAPwrapper( IMAPaccount *a ); | ||
13 | QList<IMAPFolder>* listFolders(); | ||
14 | void listMessages(const QString & mailbox,Maillist&target ); | ||
15 | QString fetchBody(const QString & mailbox,const RecMail&mail); | ||
16 | |||
17 | protected: | ||
18 | RecMail*parse_list_result(mailimap_msg_att*); | ||
19 | |||
20 | private: | ||
21 | IMAPaccount *account; | ||
22 | |||
23 | }; | ||
24 | |||
25 | #endif | ||
diff --git a/noncore/net/mail/libmailwrapper/mailwrapper.h b/noncore/net/mail/libmailwrapper/mailwrapper.h index f45eab7..955a8e2 100644 --- a/noncore/net/mail/libmailwrapper/mailwrapper.h +++ b/noncore/net/mail/libmailwrapper/mailwrapper.h | |||
@@ -8,3 +8,2 @@ | |||
8 | #include <libetpan/mailsmtp.h> | 8 | #include <libetpan/mailsmtp.h> |
9 | #include <libetpan/mailimap.h> | ||
10 | #include <libetpan/mailstorage.h> | 9 | #include <libetpan/mailstorage.h> |
@@ -164,20 +163,2 @@ private: | |||
164 | 163 | ||
165 | class IMAPwrapper : public QObject | ||
166 | { | ||
167 | Q_OBJECT | ||
168 | |||
169 | public: | ||
170 | IMAPwrapper( IMAPaccount *a ); | ||
171 | QList<IMAPFolder>* listFolders(); | ||
172 | void listMessages(const QString & mailbox,Maillist&target ); | ||
173 | QString fetchBody(const QString & mailbox,const RecMail&mail); | ||
174 | |||
175 | protected: | ||
176 | RecMail*parse_list_result(mailimap_msg_att*); | ||
177 | |||
178 | private: | ||
179 | IMAPaccount *account; | ||
180 | |||
181 | }; | ||
182 | |||
183 | #endif | 164 | #endif |
diff --git a/noncore/net/mail/mail.pro b/noncore/net/mail/mail.pro index 46a476d..2142cdc 100644 --- a/noncore/net/mail/mail.pro +++ b/noncore/net/mail/mail.pro | |||
@@ -10,3 +10,4 @@ HEADERS = defines.h \ | |||
10 | mainwindow.h \ | 10 | mainwindow.h \ |
11 | opiemail.h | 11 | opiemail.h \ |
12 | imapwrapper.h | ||
12 | 13 | ||
diff --git a/noncore/net/mail/mailwrapper.h b/noncore/net/mail/mailwrapper.h index f45eab7..955a8e2 100644 --- a/noncore/net/mail/mailwrapper.h +++ b/noncore/net/mail/mailwrapper.h | |||
@@ -8,3 +8,2 @@ | |||
8 | #include <libetpan/mailsmtp.h> | 8 | #include <libetpan/mailsmtp.h> |
9 | #include <libetpan/mailimap.h> | ||
10 | #include <libetpan/mailstorage.h> | 9 | #include <libetpan/mailstorage.h> |
@@ -164,20 +163,2 @@ private: | |||
164 | 163 | ||
165 | class IMAPwrapper : public QObject | ||
166 | { | ||
167 | Q_OBJECT | ||
168 | |||
169 | public: | ||
170 | IMAPwrapper( IMAPaccount *a ); | ||
171 | QList<IMAPFolder>* listFolders(); | ||
172 | void listMessages(const QString & mailbox,Maillist&target ); | ||
173 | QString fetchBody(const QString & mailbox,const RecMail&mail); | ||
174 | |||
175 | protected: | ||
176 | RecMail*parse_list_result(mailimap_msg_att*); | ||
177 | |||
178 | private: | ||
179 | IMAPaccount *account; | ||
180 | |||
181 | }; | ||
182 | |||
183 | #endif | 164 | #endif |