diff options
Diffstat (limited to 'linden/indra/llvfs/lldir.h')
-rw-r--r-- | linden/indra/llvfs/lldir.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/linden/indra/llvfs/lldir.h b/linden/indra/llvfs/lldir.h index 8734c44..dbddf7d 100644 --- a/linden/indra/llvfs/lldir.h +++ b/linden/indra/llvfs/lldir.h | |||
@@ -51,7 +51,8 @@ typedef enum ELLPath | |||
51 | LL_PATH_PER_ACCOUNT_CHAT_LOGS = 13, | 51 | LL_PATH_PER_ACCOUNT_CHAT_LOGS = 13, |
52 | LL_PATH_MOZILLA_PROFILE = 14, | 52 | LL_PATH_MOZILLA_PROFILE = 14, |
53 | // LL_PATH_HTML = 15, | 53 | // LL_PATH_HTML = 15, |
54 | LL_PATH_LAST = 16 | 54 | LL_PATH_EXECUTABLE = 16, |
55 | LL_PATH_LAST | ||
55 | } ELLPath; | 56 | } ELLPath; |
56 | 57 | ||
57 | 58 | ||
@@ -86,6 +87,7 @@ class LLDir | |||
86 | const std::string &getPerAccountChatLogsDir() const; // Location of the per account chat logs dir. | 87 | const std::string &getPerAccountChatLogsDir() const; // Location of the per account chat logs dir. |
87 | const std::string &getTempDir() const; // Common temporary directory | 88 | const std::string &getTempDir() const; // Common temporary directory |
88 | const std::string getCacheDir(bool get_default = false) const; // Location of the cache. | 89 | const std::string getCacheDir(bool get_default = false) const; // Location of the cache. |
90 | const std::string &getOSCacheDir() const; // location of OS-specific cache folder (may be empty string) | ||
89 | const std::string &getCAFile() const; // File containing TLS certificate authorities | 91 | const std::string &getCAFile() const; // File containing TLS certificate authorities |
90 | const std::string &getDirDelimiter() const; // directory separator for platform (ie. '\' or '/' or ':') | 92 | const std::string &getDirDelimiter() const; // directory separator for platform (ie. '\' or '/' or ':') |
91 | const std::string &getSkinDir() const; // User-specified skin folder. | 93 | const std::string &getSkinDir() const; // User-specified skin folder. |
@@ -98,13 +100,17 @@ class LLDir | |||
98 | std::string getExpandedFilename(ELLPath location, const std::string &subdir, const std::string &filename) const; | 100 | std::string getExpandedFilename(ELLPath location, const std::string &subdir, const std::string &filename) const; |
99 | std::string getExpandedFilename(ELLPath location, const std::string &subdir1, const std::string &subdir2, const std::string &filename) const; | 101 | std::string getExpandedFilename(ELLPath location, const std::string &subdir1, const std::string &subdir2, const std::string &filename) const; |
100 | 102 | ||
103 | // Base and Directory name extraction | ||
104 | std::string getBaseFileName(const std::string& filepath, bool strip_exten = false) const; | ||
105 | std::string getDirName(const std::string& filepath) const; | ||
106 | std::string getExtension(const std::string& filepath) const; // Excludes '.', e.g getExtension("foo.wav") == "wav" | ||
107 | |||
101 | // these methods search the various skin paths for the specified file in the following order: | 108 | // these methods search the various skin paths for the specified file in the following order: |
102 | // getUserSkinDir(), getSkinDir(), getDefaultSkinDir() | 109 | // getUserSkinDir(), getSkinDir(), getDefaultSkinDir() |
103 | std::string findSkinnedFilename(const std::string &filename) const; | 110 | std::string findSkinnedFilename(const std::string &filename) const; |
104 | std::string findSkinnedFilename(const std::string &subdir, const std::string &filename) const; | 111 | std::string findSkinnedFilename(const std::string &subdir, const std::string &filename) const; |
105 | std::string findSkinnedFilename(const std::string &subdir1, const std::string &subdir2, const std::string &filename) const; | 112 | std::string findSkinnedFilename(const std::string &subdir1, const std::string &subdir2, const std::string &filename) const; |
106 | 113 | ||
107 | |||
108 | // random filename in common temporary directory | 114 | // random filename in common temporary directory |
109 | std::string getTempFilename() const; | 115 | std::string getTempFilename() const; |
110 | 116 | ||
@@ -131,6 +137,7 @@ protected: | |||
131 | std::string mCAFile; // Location of the TLS certificate authority PEM file. | 137 | std::string mCAFile; // Location of the TLS certificate authority PEM file. |
132 | std::string mTempDir; | 138 | std::string mTempDir; |
133 | std::string mCacheDir; | 139 | std::string mCacheDir; |
140 | std::string mOSCacheDir; | ||
134 | std::string mDirDelimiter; | 141 | std::string mDirDelimiter; |
135 | std::string mSkinDir; // Location for current skin info. | 142 | std::string mSkinDir; // Location for current skin info. |
136 | std::string mDefaultSkinDir; // Location for default skin info. | 143 | std::string mDefaultSkinDir; // Location for default skin info. |