summaryrefslogtreecommitdiff
authoralwin <alwin>2003-12-08 22:20:44 (UTC)
committer alwin <alwin>2003-12-08 22:20:44 (UTC)
commit115bb2c722dc03c0491e2f1c49495a1ceb760000 (patch) (side-by-side diff)
tree0c8dd795db536da485f85338bdbf9d888fbd37f2
parent760fc48703328d8254c60acd19dc9ab367f2a134 (diff)
downloadopie-115bb2c722dc03c0491e2f1c49495a1ceb760000.zip
opie-115bb2c722dc03c0491e2f1c49495a1ceb760000.tar.gz
opie-115bb2c722dc03c0491e2f1c49495a1ceb760000.tar.bz2
imap wrapper has now an own include file
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/accountview.cpp1
-rw-r--r--noncore/net/mail/accountview.h2
-rw-r--r--noncore/net/mail/imapwrapper.cpp2
-rw-r--r--noncore/net/mail/imapwrapper.h25
-rw-r--r--noncore/net/mail/libmailwrapper/imapwrapper.cpp2
-rw-r--r--noncore/net/mail/libmailwrapper/imapwrapper.h25
-rw-r--r--noncore/net/mail/libmailwrapper/mailwrapper.h19
-rw-r--r--noncore/net/mail/mail.pro3
-rw-r--r--noncore/net/mail/mailwrapper.h19
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,3 +1,4 @@
#include "accountview.h"
+#include "imapwrapper.h"
#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
@@ -7,4 +7,6 @@
#include "mailwrapper.h"
+class IMAPwrapper;
+
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
@@ -2,5 +2,5 @@
#include <stdlib.h>
-#include "mailwrapper.h"
+#include "imapwrapper.h"
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 @@
+#ifndef __IMAPWRAPPER
+#define __IMAPWRAPPER
+
+#include "mailwrapper.h"
+#include <libetpan/mailimap.h>
+
+class IMAPwrapper : public QObject
+{
+ Q_OBJECT
+
+public:
+ IMAPwrapper( IMAPaccount *a );
+ QList<IMAPFolder>* listFolders();
+ void listMessages(const QString & mailbox,Maillist&target );
+ QString fetchBody(const QString & mailbox,const RecMail&mail);
+
+protected:
+ RecMail*parse_list_result(mailimap_msg_att*);
+
+private:
+ IMAPaccount *account;
+
+};
+
+#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
@@ -2,5 +2,5 @@
#include <stdlib.h>
-#include "mailwrapper.h"
+#include "imapwrapper.h"
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 @@
+#ifndef __IMAPWRAPPER
+#define __IMAPWRAPPER
+
+#include "mailwrapper.h"
+#include <libetpan/mailimap.h>
+
+class IMAPwrapper : public QObject
+{
+ Q_OBJECT
+
+public:
+ IMAPwrapper( IMAPaccount *a );
+ QList<IMAPFolder>* listFolders();
+ void listMessages(const QString & mailbox,Maillist&target );
+ QString fetchBody(const QString & mailbox,const RecMail&mail);
+
+protected:
+ RecMail*parse_list_result(mailimap_msg_att*);
+
+private:
+ IMAPaccount *account;
+
+};
+
+#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
@@ -7,5 +7,4 @@
#include <libetpan/mailimf.h>
#include <libetpan/mailsmtp.h>
-#include <libetpan/mailimap.h>
#include <libetpan/mailstorage.h>
#include <libetpan/maildriver.h>
@@ -163,21 +162,3 @@ private:
};
-class IMAPwrapper : public QObject
-{
- Q_OBJECT
-
-public:
- IMAPwrapper( IMAPaccount *a );
- QList<IMAPFolder>* listFolders();
- void listMessages(const QString & mailbox,Maillist&target );
- QString fetchBody(const QString & mailbox,const RecMail&mail);
-
-protected:
- RecMail*parse_list_result(mailimap_msg_att*);
-
-private:
- IMAPaccount *account;
-
-};
-
#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
@@ -9,5 +9,6 @@ HEADERS = defines.h \
accountview.h \
mainwindow.h \
- opiemail.h
+ opiemail.h \
+ imapwrapper.h
SOURCES = main.cpp \
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
@@ -7,5 +7,4 @@
#include <libetpan/mailimf.h>
#include <libetpan/mailsmtp.h>
-#include <libetpan/mailimap.h>
#include <libetpan/mailstorage.h>
#include <libetpan/maildriver.h>
@@ -163,21 +162,3 @@ private:
};
-class IMAPwrapper : public QObject
-{
- Q_OBJECT
-
-public:
- IMAPwrapper( IMAPaccount *a );
- QList<IMAPFolder>* listFolders();
- void listMessages(const QString & mailbox,Maillist&target );
- QString fetchBody(const QString & mailbox,const RecMail&mail);
-
-protected:
- RecMail*parse_list_result(mailimap_msg_att*);
-
-private:
- IMAPaccount *account;
-
-};
-
#endif