aboutsummaryrefslogtreecommitdiffstats
path: root/src/messaging/service.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2004-10-21 15:05:47 +0000
committerVincent Richard <[email protected]>2004-10-21 15:05:47 +0000
commit2949fb51f13e1236d5c161f02e1c2c8541100e9f (patch)
tree991edcf50483116ce83977a4d9e652de8c5328dc /src/messaging/service.cpp
parentheader class unit tests added (diff)
downloadvmime-2949fb51f13e1236d5c161f02e1c2c8541100e9f.tar.gz
vmime-2949fb51f13e1236d5c161f02e1c2c8541100e9f.zip
Refactoring (see ChangeLog).
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