aboutsummaryrefslogtreecommitdiffstats
path: root/src/platforms/windows/windowsHandler.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-10-04 18:34:25 +0000
committerVincent Richard <[email protected]>2005-10-04 18:34:25 +0000
commit09d9e114398e826a4e676c4dbb3cbe7f88d1236c (patch)
tree9e72eeef6173634c74d1fd10117826a11d0686a1 /src/platforms/windows/windowsHandler.cpp
parentAdded TLS/SSL support. (diff)
downloadvmime-09d9e114398e826a4e676c4dbb3cbe7f88d1236c.tar.gz
vmime-09d9e114398e826a4e676c4dbb3cbe7f88d1236c.zip
Added service::setSocketFactory().
Diffstat (limited to 'src/platforms/windows/windowsHandler.cpp')
-rw-r--r--src/platforms/windows/windowsHandler.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/platforms/windows/windowsHandler.cpp b/src/platforms/windows/windowsHandler.cpp
index d67b9d5a..4f5a94b5 100644
--- a/src/platforms/windows/windowsHandler.cpp
+++ b/src/platforms/windows/windowsHandler.cpp
@@ -42,7 +42,7 @@ namespace windows {
windowsHandler::windowsHandler()
{
#if VMIME_HAVE_MESSAGING_FEATURES
- m_socketFactory = new windowsSocketFactory();
+ m_socketFactory = vmime::create <windowsSocketFactory>();
#endif
#if VMIME_HAVE_FILESYSTEM_FEATURES
m_fileSysFactory = new windowsFileSystemFactory();
@@ -52,9 +52,6 @@ windowsHandler::windowsHandler()
windowsHandler::~windowsHandler()
{
-#if VMIME_HAVE_MESSAGING_FEATURES
- delete (m_socketFactory);
-#endif
#if VMIME_HAVE_FILESYSTEM_FEATURES
delete (m_fileSysFactory);
#endif
@@ -237,10 +234,9 @@ const unsigned int windowsHandler::getProcessId() const
#if VMIME_HAVE_MESSAGING_FEATURES
-vmime::net::socketFactory* windowsHandler::getSocketFactory
- (const vmime::string& /* name */) const
+ref <vmime::net::socketFactory> windowsHandler::getSocketFactory() const
{
- return (m_socketFactory);
+ return m_socketFactory.dynamicCast <vmime::net::socketFactory>();
}