aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llvfs/lldir.h
diff options
context:
space:
mode:
authorJacek Antonelli2009-06-08 00:41:31 -0500
committerJacek Antonelli2009-06-08 00:41:31 -0500
commit0e5df9bdf8d6b418bb6e25615e2ffc922d0f02aa (patch)
tree2c93d38e210832e737d09cff7561373d8d5453b2 /linden/indra/llvfs/lldir.h
parentImprudence 1.1.0 released. (diff)
parentUpdated Imprudence to be based on SL 1.22.11. (ChangeLog Entry) (diff)
downloadmeta-impy-0e5df9bdf8d6b418bb6e25615e2ffc922d0f02aa.zip
meta-impy-0e5df9bdf8d6b418bb6e25615e2ffc922d0f02aa.tar.gz
meta-impy-0e5df9bdf8d6b418bb6e25615e2ffc922d0f02aa.tar.bz2
meta-impy-0e5df9bdf8d6b418bb6e25615e2ffc922d0f02aa.tar.xz
Merge branch 'sl-base-1.22' into next
Conflicts: linden/indra/newview/English.lproj/InfoPlist.strings linden/indra/newview/skins/default/xui/en-us/panel_chat_bar.xml
Diffstat (limited to 'linden/indra/llvfs/lldir.h')
-rw-r--r--linden/indra/llvfs/lldir.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/linden/indra/llvfs/lldir.h b/linden/indra/llvfs/lldir.h
index dbddf7d..b041afc 100644
--- a/linden/indra/llvfs/lldir.h
+++ b/linden/indra/llvfs/lldir.h
@@ -4,7 +4,7 @@
4 * 4 *
5 * $LicenseInfo:firstyear=2000&license=viewergpl$ 5 * $LicenseInfo:firstyear=2000&license=viewergpl$
6 * 6 *
7 * Copyright (c) 2000-2008, Linden Research, Inc. 7 * Copyright (c) 2000-2009, Linden Research, Inc.
8 * 8 *
9 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -64,12 +64,12 @@ class LLDir
64 64
65 virtual void initAppDirs(const std::string &app_name) = 0; 65 virtual void initAppDirs(const std::string &app_name) = 0;
66 public: 66 public:
67 virtual S32 deleteFilesInDir(const std::string &dirname, const std::string &mask); 67 virtual S32 deleteFilesInDir(const std::string &dirname, const std::string &mask);
68 68
69// pure virtual functions 69// pure virtual functions
70 virtual U32 countFilesInDir(const std::string &dirname, const std::string &mask) = 0; 70 virtual U32 countFilesInDir(const std::string &dirname, const std::string &mask) = 0;
71 virtual BOOL getNextFileInDir(const std::string &dirname, const std::string &mask, std::string &fname, BOOL wrap) = 0; 71 virtual BOOL getNextFileInDir(const std::string &dirname, const std::string &mask, std::string &fname, BOOL wrap) = 0;
72 virtual void getRandomFileInDir(const std::string &dirname, const std::string &mask, std::string &fname) = 0; 72 virtual void getRandomFileInDir(const std::string &dirname, const std::string &mask, std::string &fname) = 0;
73 virtual std::string getCurPath() = 0; 73 virtual std::string getCurPath() = 0;
74 virtual BOOL fileExists(const std::string &filename) const = 0; 74 virtual BOOL fileExists(const std::string &filename) const = 0;
75 75
@@ -104,7 +104,7 @@ class LLDir
104 std::string getBaseFileName(const std::string& filepath, bool strip_exten = false) const; 104 std::string getBaseFileName(const std::string& filepath, bool strip_exten = false) const;
105 std::string getDirName(const std::string& filepath) 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" 106 std::string getExtension(const std::string& filepath) const; // Excludes '.', e.g getExtension("foo.wav") == "wav"
107 107
108 // 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:
109 // getUserSkinDir(), getSkinDir(), getDefaultSkinDir() 109 // getUserSkinDir(), getSkinDir(), getDefaultSkinDir()
110 std::string findSkinnedFilename(const std::string &filename) const; 110 std::string findSkinnedFilename(const std::string &filename) const;
@@ -114,6 +114,10 @@ class LLDir
114 // random filename in common temporary directory 114 // random filename in common temporary directory
115 std::string getTempFilename() const; 115 std::string getTempFilename() const;
116 116
117 // For producing safe download file names from potentially unsafe ones
118 static std::string getScrubbedFileName(const std::string uncleanFileName);
119 static std::string getForbiddenFileChars();
120
117 virtual void setChatLogsDir(const std::string &path); // Set the chat logs dir to this user's dir 121 virtual void setChatLogsDir(const std::string &path); // Set the chat logs dir to this user's dir
118 virtual void setPerAccountChatLogsDir(const std::string &first, const std::string &last); // Set the per user chat log directory. 122 virtual void setPerAccountChatLogsDir(const std::string &first, const std::string &last); // Set the per user chat log directory.
119 virtual void setLindenUserDir(const std::string &first, const std::string &last); // Set the linden user dir to this user's dir 123 virtual void setLindenUserDir(const std::string &first, const std::string &last); // Set the linden user dir to this user's dir