PageRenderTime 264ms CodeModel.GetById 140ms app.highlight 4ms RepoModel.GetById 117ms app.codeStats 0ms

/indra/newview/llviewerfoldertype.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 54 lines | 20 code | 7 blank | 27 comment | 0 complexity | 040d95c7a10bace598d5ffe7ee13a53f MD5 | raw file
 1/** 
 2 * @file llviewerfoldertype.h
 3 * @brief Declaration of LLAssetType.
 4 *
 5 * $LicenseInfo:firstyear=2001&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#ifndef LL_LLVIEWERFOLDERTYPE_H
28#define LL_LLVIEWERFOLDERTYPE_H
29
30#include <string>
31#include "llfoldertype.h"
32
33// This class is similar to llfoldertype, but contains methods
34// only used by the viewer.  This also handles ensembles.
35class LLViewerFolderType : public LLFolderType
36{
37public:
38	static const std::string&   lookupXUIName(EType folder_type); // name used by the UI
39	static LLFolderType::EType 	lookupTypeFromXUIName(const std::string& name);
40
41	static const std::string&   lookupIconName(EType folder_type, BOOL is_open = FALSE); // folder icon name
42	static BOOL					lookupIsQuietType(EType folder_type); // folder doesn't require UI update when changes have occured
43	static bool					lookupIsHiddenIfEmpty(EType folder_type); // folder is not displayed if empty
44	static const std::string&	lookupNewCategoryName(EType folder_type); // default name when creating new category
45	static LLFolderType::EType	lookupTypeFromNewCategoryName(const std::string& name); // default name when creating new category
46
47	static U64					lookupValidFolderTypes(const std::string& item_name); // which folders allow an item of this type?
48
49protected:
50	LLViewerFolderType() {}
51	~LLViewerFolderType() {}
52};
53
54#endif // LL_LLVIEWERFOLDERTYPE_H