diff options
Diffstat (limited to 'vmime')
-rw-r--r-- | vmime/platform.hpp | 8 | ||||
-rw-r--r-- | vmime/platforms/posix/posixHandler.hpp | 10 | ||||
-rw-r--r-- | vmime/platforms/windows/windowsHandler.hpp | 8 | ||||
-rw-r--r-- | vmime/utility/childProcess.hpp | 2 | ||||
-rw-r--r-- | vmime/utility/file.hpp | 2 |
5 files changed, 15 insertions, 15 deletions
diff --git a/vmime/platform.hpp b/vmime/platform.hpp index d3905710..02815542 100644 --- a/vmime/platform.hpp +++ b/vmime/platform.hpp @@ -108,7 +108,7 @@ public: * * @return socket factory */ - virtual ref <net::socketFactory> getSocketFactory() const = 0; + virtual ref <net::socketFactory> getSocketFactory() = 0; #endif #if VMIME_HAVE_FILESYSTEM_FEATURES @@ -116,14 +116,14 @@ public: * * @return file-system factory */ - virtual utility::fileSystemFactory* getFileSystemFactory() const = 0; + virtual ref <utility::fileSystemFactory> getFileSystemFactory() = 0; /** Return a pointer to a factory that creates child process objects, * which are used to spawn processes (run executable files). * * @return child process factory */ - virtual utility::childProcessFactory* getChildProcessFactory() const = 0; + virtual ref <utility::childProcessFactory> getChildProcessFactory() = 0; #endif }; @@ -135,7 +135,7 @@ public: sm_handler = vmime::create <TYPE>(); } - static ref <const handler> getHandler() + static ref <handler> getHandler() { if (!sm_handler) throw exceptions::no_platform_handler(); diff --git a/vmime/platforms/posix/posixHandler.hpp b/vmime/platforms/posix/posixHandler.hpp index 397a5dd9..8e572a21 100644 --- a/vmime/platforms/posix/posixHandler.hpp +++ b/vmime/platforms/posix/posixHandler.hpp @@ -61,13 +61,13 @@ public: unsigned int getProcessId() const; #if VMIME_HAVE_MESSAGING_FEATURES - ref <vmime::net::socketFactory> getSocketFactory() const; + ref <vmime::net::socketFactory> getSocketFactory(); #endif #if VMIME_HAVE_FILESYSTEM_FEATURES - vmime::utility::fileSystemFactory* getFileSystemFactory() const; + ref <vmime::utility::fileSystemFactory> getFileSystemFactory(); - vmime::utility::childProcessFactory* getChildProcessFactory() const; + ref <vmime::utility::childProcessFactory> getChildProcessFactory(); #endif void wait() const; @@ -79,8 +79,8 @@ private: #endif #if VMIME_HAVE_FILESYSTEM_FEATURES - posixFileSystemFactory* m_fileSysFactory; - posixChildProcessFactory* m_childProcFactory; + ref <posixFileSystemFactory> m_fileSysFactory; + ref <posixChildProcessFactory> m_childProcFactory; #endif }; diff --git a/vmime/platforms/windows/windowsHandler.hpp b/vmime/platforms/windows/windowsHandler.hpp index 701edf00..53df3636 100644 --- a/vmime/platforms/windows/windowsHandler.hpp +++ b/vmime/platforms/windows/windowsHandler.hpp @@ -60,13 +60,13 @@ public: unsigned int getProcessId() const; #if VMIME_HAVE_MESSAGING_FEATURES - ref <vmime::net::socketFactory> getSocketFactory() const; + ref <vmime::net::socketFactory> getSocketFactory(); #endif #if VMIME_HAVE_FILESYSTEM_FEATURES - vmime::utility::fileSystemFactory* getFileSystemFactory() const; + ref <vmime::utility::fileSystemFactory> getFileSystemFactory(); - vmime::utility::childProcessFactory* getChildProcessFactory() const; + ref <vmime::utility::childProcessFactory> getChildProcessFactory(); #endif void wait() const; @@ -78,7 +78,7 @@ private: #endif #if VMIME_HAVE_FILESYSTEM_FEATURES - windowsFileSystemFactory* m_fileSysFactory; + ref <windowsFileSystemFactory> m_fileSysFactory; #endif }; diff --git a/vmime/utility/childProcess.hpp b/vmime/utility/childProcess.hpp index 33cb6338..b5405f7e 100644 --- a/vmime/utility/childProcess.hpp +++ b/vmime/utility/childProcess.hpp @@ -85,7 +85,7 @@ public: /** Create 'childProcess' objects. */ -class childProcessFactory +class childProcessFactory : public object { public: diff --git a/vmime/utility/file.hpp b/vmime/utility/file.hpp index 61ede808..f1d877e5 100644 --- a/vmime/utility/file.hpp +++ b/vmime/utility/file.hpp @@ -214,7 +214,7 @@ private: /** Constructs 'file' objects. */ -class fileSystemFactory +class fileSystemFactory : public object { public: |