PageRenderTime 178ms CodeModel.GetById 0ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llvfs/lldir_win32.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 59 lines | 23 code | 11 blank | 25 comment | 1 complexity | c3231299a2cc11eae4b83fdd7e0965a4 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file lldir_win32.h
  3. * @brief Definition of directory utilities class for windows
  4. *
  5. * $LicenseInfo:firstyear=2000&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2010, Linden Research, Inc.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation;
  12. * version 2.1 of the License only.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  24. * $/LicenseInfo$
  25. */
  26. #if !LL_WINDOWS
  27. #error This header must not be included when compiling for any target other than Windows. Consider including lldir.h instead.
  28. #endif // !LL_WINDOWS
  29. #ifndef LL_LLDIR_WIN32_H
  30. #define LL_LLDIR_WIN32_H
  31. #include "lldir.h"
  32. class LLDir_Win32 : public LLDir
  33. {
  34. public:
  35. LLDir_Win32();
  36. virtual ~LLDir_Win32();
  37. /*virtual*/ void initAppDirs(const std::string &app_name,
  38. const std::string& app_read_only_data_dir);
  39. /*virtual*/ std::string getCurPath();
  40. /*virtual*/ U32 countFilesInDir(const std::string &dirname, const std::string &mask);
  41. /*virtual*/ BOOL fileExists(const std::string &filename) const;
  42. /*virtual*/ std::string getLLPluginLauncher();
  43. /*virtual*/ std::string getLLPluginFilename(std::string base_name);
  44. private:
  45. void* mDirSearch_h;
  46. llutf16string mCurrentDir;
  47. };
  48. #endif // LL_LLDIR_WIN32_H