diff options
Diffstat (limited to 'Swiften/Application/WindowsApplicationPathProvider.h')
-rw-r--r-- | Swiften/Application/WindowsApplicationPathProvider.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/Swiften/Application/WindowsApplicationPathProvider.h b/Swiften/Application/WindowsApplicationPathProvider.h deleted file mode 100644 index a026dba..0000000 --- a/Swiften/Application/WindowsApplicationPathProvider.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2010 Remko Tronçon - * Licensed under the GNU General Public License v3. - * See Documentation/Licenses/GPLv3.txt for more information. - */ - -#pragma once - -#include "Swiften/Application/ApplicationPathProvider.h" - -namespace Swift { - class WindowsApplicationPathProvider : public ApplicationPathProvider { - public: - WindowsApplicationPathProvider(const String& name); - - boost::filesystem::path getDataDir() const { - char* appDirRaw = getenv("APPDATA"); - boost::filesystem::path result(boost::filesystem::path(appDirRaw) / getApplicationName().getUTF8String()); - boost::filesystem::create_directory(result); - return result; - } - - boost::filesystem::path getHomeDir() const { - //FIXME: This should be My Documents - - char* homeDirRaw = getenv("USERPROFILE"); - return boost::filesystem::path(homeDirRaw); - } - - virtual boost::filesystem::path getExecutableDir() const; - virtual std::vector<boost::filesystem::path> getResourceDirs() const { - return resourceDirs; - } - - private: - std::vector<boost::filesystem::path> resourceDirs; - }; -} |