diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-10-09 16:32:50 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-10-09 22:33:20 (GMT) |
commit | dc951ebf7e4ab6fce39f16687be1e93f8140b71f (patch) | |
tree | 4eee56d72b8773049522fbaff8d9fb1ee0a5c978 /Swiften/Application/WindowsApplicationPathProvider.h | |
parent | 64ab77e910579bce3fe99b107a82753a7f32d77c (diff) | |
download | swift-dc951ebf7e4ab6fce39f16687be1e93f8140b71f.zip swift-dc951ebf7e4ab6fce39f16687be1e93f8140b71f.tar.bz2 |
Moved Application from Swiften into SwifTools.
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; - }; -} |