aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/imap/IMAPStore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/imap/IMAPStore.cpp')
-rw-r--r--src/net/imap/IMAPStore.cpp32
1 files changed, 25 insertions, 7 deletions
diff --git a/src/net/imap/IMAPStore.cpp b/src/net/imap/IMAPStore.cpp
index 95f96276..aba36751 100644
--- a/src/net/imap/IMAPStore.cpp
+++ b/src/net/imap/IMAPStore.cpp
@@ -33,7 +33,7 @@ namespace imap {
IMAPStore::IMAPStore(ref <session> sess, ref <security::authenticator> auth, const bool secured)
- : store(sess, getInfosInstance(), auth), m_connection(NULL), m_secured(secured)
+ : store(sess, getInfosInstance(), auth), m_connection(NULL), m_isIMAPS(secured)
{
}
@@ -91,12 +91,6 @@ const bool IMAPStore::isValidFolderName(const folder::path::component& /* name *
}
-const bool IMAPStore::isSecuredConnection() const
-{
- return m_secured;
-}
-
-
void IMAPStore::connect()
{
if (isConnected())
@@ -123,6 +117,30 @@ const bool IMAPStore::isConnected() const
}
+const bool IMAPStore::isIMAPS() const
+{
+ return m_isIMAPS;
+}
+
+
+const bool IMAPStore::isSecuredConnection() const
+{
+ if (m_connection == NULL)
+ return false;
+
+ return m_connection->isSecuredConnection();
+}
+
+
+ref <connectionInfos> IMAPStore::getConnectionInfos() const
+{
+ if (m_connection == NULL)
+ return NULL;
+
+ return m_connection->getConnectionInfos();
+}
+
+
void IMAPStore::disconnect()
{
if (!isConnected())