aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/pop
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-04-07 17:58:24 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-04-07 17:58:24 -0700
commit961ce883bd2ca1ff1f1c100be105e6f9c43a80e8 (patch)
tree62ac69236ca58bed7fff57c71294a17497910c78 /src/core/pop
parentb2ea4684cae93675ea29b1e9e7731ccd56701a11 (diff)
Removed headers dependencies on ICU, libetpan.
Diffstat (limited to 'src/core/pop')
-rw-r--r--src/core/pop/MCPOPSession.cc1
-rw-r--r--src/core/pop/MCPOPSession.h50
2 files changed, 26 insertions, 25 deletions
diff --git a/src/core/pop/MCPOPSession.cc b/src/core/pop/MCPOPSession.cc
index 88f80c8a..9cfe9157 100644
--- a/src/core/pop/MCPOPSession.cc
+++ b/src/core/pop/MCPOPSession.cc
@@ -1,6 +1,7 @@
#include "MCPOPSession.h"
#include <string.h>
+#include <libetpan/libetpan.h>
#include "MCPOPMessageInfo.h"
#include "MCPOPProgressCallback.h"
diff --git a/src/core/pop/MCPOPSession.h b/src/core/pop/MCPOPSession.h
index 4c343877..3bbccf61 100644
--- a/src/core/pop/MCPOPSession.h
+++ b/src/core/pop/MCPOPSession.h
@@ -4,7 +4,6 @@
#include <MailCore/MCBaseTypes.h>
#include <MailCore/MCMessageConstants.h>
-#include <libetpan/libetpan.h>
#ifdef __cplusplus
@@ -15,30 +14,6 @@ namespace mailcore {
class MessageHeader;
class POPSession : public Object {
- private:
- String * mHostname;
- unsigned int mPort;
- String * mUsername;
- String * mPassword;
- AuthType mAuthType;
- ConnectionType mConnectionType;
- bool mCheckCertificateEnabled;
- time_t mTimeout;
-
- mailpop3 * mPop;
- POPCapability mCapabilities;
- POPProgressCallback * mProgressCallback;
- int mState;
-
- void init();
- void bodyProgress(unsigned int current, unsigned int maximum);
- bool checkCertificate();
- static void body_progress(size_t current, size_t maximum, void * context);
- void setup();
- void unsetup();
- void connectIfNeeded(ErrorCode * pError);
- void loginIfNeeded(ErrorCode * pError);
- void listIfNeeded(ErrorCode * pError);
public:
POPSession();
@@ -85,6 +60,31 @@ namespace mailcore {
void deleteMessage(unsigned int index, ErrorCode * pError);
void deleteMessage(POPMessageInfo * msg, ErrorCode * pError);
+
+ private:
+ String * mHostname;
+ unsigned int mPort;
+ String * mUsername;
+ String * mPassword;
+ AuthType mAuthType;
+ ConnectionType mConnectionType;
+ bool mCheckCertificateEnabled;
+ time_t mTimeout;
+
+ mailpop3 * mPop;
+ POPCapability mCapabilities;
+ POPProgressCallback * mProgressCallback;
+ int mState;
+
+ void init();
+ void bodyProgress(unsigned int current, unsigned int maximum);
+ bool checkCertificate();
+ static void body_progress(size_t current, size_t maximum, void * context);
+ void setup();
+ void unsetup();
+ void connectIfNeeded(ErrorCode * pError);
+ void loginIfNeeded(ErrorCode * pError);
+ void listIfNeeded(ErrorCode * pError);
};
}