PageRenderTime 62ms CodeModel.GetById 51ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llvfs/lldir_mac.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 62 lines | 25 code | 12 blank | 25 comment | 1 complexity | 0a868c70e8008ac98134dfc21576a7c3 MD5 | raw file
 1/** 
 2 * @file lldir_mac.h
 3 * @brief Definition of directory utilities class for Mac OS X
 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
27#if !LL_DARWIN
28#error This header must not be included when compiling for any target other than Mac OS. Consider including lldir.h instead.
29#endif // !LL_DARWIN
30
31#ifndef LL_LLDIR_MAC_H
32#define LL_LLDIR_MAC_H
33
34#include "lldir.h"
35
36#include <dirent.h>
37
38class LLDir_Mac : public LLDir
39{
40public:
41	LLDir_Mac();
42	virtual ~LLDir_Mac();
43
44	/*virtual*/ void initAppDirs(const std::string &app_name,
45		const std::string& app_read_only_data_dir);
46
47	virtual std::string getCurPath();
48	virtual U32 countFilesInDir(const std::string &dirname, const std::string &mask);
49	virtual BOOL fileExists(const std::string &filename) const;
50
51	/*virtual*/ std::string getLLPluginLauncher();
52	/*virtual*/ std::string getLLPluginFilename(std::string base_name);
53
54private:
55	int mCurrentDirIndex;
56	int mCurrentDirCount;
57	std::string mCurrentDir;
58};
59
60#endif // LL_LLDIR_MAC_H
61
62