summaryrefslogtreecommitdiff
authoralwin <alwin>2004-01-05 02:03:01 (UTC)
committer alwin <alwin>2004-01-05 02:03:01 (UTC)
commit4fca3779614c863443ff09295fd0af19b9d9310e (patch) (unidiff)
tree666ba052b9dd440f9b2a8df8913a01571e32444c
parent2cf0c79cb325bff1c869febdd83429a5572b1e38 (diff)
downloadopie-4fca3779614c863443ff09295fd0af19b9d9310e.zip
opie-4fca3779614c863443ff09295fd0af19b9d9310e.tar.gz
opie-4fca3779614c863443ff09295fd0af19b9d9310e.tar.bz2
returns their type of connection (mbox,imap or pop3)
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/abstractmail.h2
-rw-r--r--noncore/net/mail/libmailwrapper/imapwrapper.cpp5
-rw-r--r--noncore/net/mail/libmailwrapper/imapwrapper.h1
-rw-r--r--noncore/net/mail/libmailwrapper/mboxwrapper.cpp7
-rw-r--r--noncore/net/mail/libmailwrapper/mboxwrapper.h2
-rw-r--r--noncore/net/mail/libmailwrapper/pop3wrapper.cpp5
-rw-r--r--noncore/net/mail/libmailwrapper/pop3wrapper.h2
7 files changed, 23 insertions, 1 deletions
diff --git a/noncore/net/mail/libmailwrapper/abstractmail.h b/noncore/net/mail/libmailwrapper/abstractmail.h
index a070fb0..7c060db 100644
--- a/noncore/net/mail/libmailwrapper/abstractmail.h
+++ b/noncore/net/mail/libmailwrapper/abstractmail.h
@@ -51,2 +51,4 @@ public:
51 51
52 virtual const QString&getType()const=0;
53
52protected: 54protected:
diff --git a/noncore/net/mail/libmailwrapper/imapwrapper.cpp b/noncore/net/mail/libmailwrapper/imapwrapper.cpp
index 0c1e05e..95b317a 100644
--- a/noncore/net/mail/libmailwrapper/imapwrapper.cpp
+++ b/noncore/net/mail/libmailwrapper/imapwrapper.cpp
@@ -987 +987,6 @@ void IMAPwrapper::storeMessage(const char*msg,size_t length, const QString&folde
987} 987}
988
989const QString&IMAPwrapper::getType()const
990{
991 return account->getType();
992}
diff --git a/noncore/net/mail/libmailwrapper/imapwrapper.h b/noncore/net/mail/libmailwrapper/imapwrapper.h
index a97f12d..6a9c411 100644
--- a/noncore/net/mail/libmailwrapper/imapwrapper.h
+++ b/noncore/net/mail/libmailwrapper/imapwrapper.h
@@ -45,2 +45,3 @@ public:
45 virtual void logout(); 45 virtual void logout();
46 virtual const QString&getType()const;
46protected: 47protected:
diff --git a/noncore/net/mail/libmailwrapper/mboxwrapper.cpp b/noncore/net/mail/libmailwrapper/mboxwrapper.cpp
index 540a971..60f7507 100644
--- a/noncore/net/mail/libmailwrapper/mboxwrapper.cpp
+++ b/noncore/net/mail/libmailwrapper/mboxwrapper.cpp
@@ -8,2 +8,4 @@
8 8
9const QString MBOXwrapper::wrapperType="MBOX";
10
9MBOXwrapper::MBOXwrapper(const QString & mbox_dir) 11MBOXwrapper::MBOXwrapper(const QString & mbox_dir)
@@ -324 +326,6 @@ void MBOXwrapper::statusFolder(folderStat&target_stat,const QString & mailbox)
324} 326}
327
328const QString&MBOXwrapper::getType()const
329{
330 return wrapperType;
331}
diff --git a/noncore/net/mail/libmailwrapper/mboxwrapper.h b/noncore/net/mail/libmailwrapper/mboxwrapper.h
index f822997..f97fce2 100644
--- a/noncore/net/mail/libmailwrapper/mboxwrapper.h
+++ b/noncore/net/mail/libmailwrapper/mboxwrapper.h
@@ -35,2 +35,3 @@ public:
35 virtual int deleteAllMail(const Folder*); 35 virtual int deleteAllMail(const Folder*);
36 virtual const QString&getType()const;
36 37
@@ -39,2 +40,3 @@ protected:
39 QString MBOXPath; 40 QString MBOXPath;
41 static const QString wrapperType;
40}; 42};
diff --git a/noncore/net/mail/libmailwrapper/pop3wrapper.cpp b/noncore/net/mail/libmailwrapper/pop3wrapper.cpp
index b4eca6f..45408dd 100644
--- a/noncore/net/mail/libmailwrapper/pop3wrapper.cpp
+++ b/noncore/net/mail/libmailwrapper/pop3wrapper.cpp
@@ -237 +237,6 @@ void POP3wrapper::fetchRawBody(const RecMail&mail,char**target,size_t*length)
237} 237}
238
239const QString&POP3wrapper::getType()const
240{
241 return account->getType();
242}
diff --git a/noncore/net/mail/libmailwrapper/pop3wrapper.h b/noncore/net/mail/libmailwrapper/pop3wrapper.h
index 9cba101..b7e8f27 100644
--- a/noncore/net/mail/libmailwrapper/pop3wrapper.h
+++ b/noncore/net/mail/libmailwrapper/pop3wrapper.h
@@ -30,3 +30,3 @@ public:
30 virtual void logout(); 30 virtual void logout();
31 31 virtual const QString&getType()const;
32 static void pop3_progress( size_t current, size_t maximum ); 32 static void pop3_progress( size_t current, size_t maximum );