aboutsummaryrefslogtreecommitdiffstats
path: root/src/messaging/service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/messaging/service.cpp')
-rw-r--r--src/messaging/service.cpp28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/messaging/service.cpp b/src/messaging/service.cpp
index 5a55fb4f..5f69600d 100644
--- a/src/messaging/service.cpp
+++ b/src/messaging/service.cpp
@@ -26,9 +26,9 @@ namespace vmime {
namespace messaging {
-service::service(class session& sess, const serviceInfos& infos, class authenticator* auth)
+service::service(session* sess, const serviceInfos& infos, authenticator* auth)
: m_deleteAuth(auth == NULL), m_session(sess), m_auth(auth ? auth :
- new defaultAuthenticator(sess.properties(), infos.propertyPrefix()))
+ new defaultAuthenticator(sess->getProperties(), infos.getPropertyPrefix()))
{
}
@@ -40,5 +40,29 @@ service::~service()
}
+const session* service::getSession() const
+{
+ return (m_session);
+}
+
+
+session* service::getSession()
+{
+ return (m_session);
+}
+
+
+const authenticator* service::getAuthenticator() const
+{
+ return (m_auth);
+}
+
+
+authenticator* service::getAuthenticator()
+{
+ return (m_auth);
+}
+
+
} // messaging
} // vmime