PageRenderTime 22ms CodeModel.GetById 14ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llfilteredwearablelist.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 66 lines | 19 code | 11 blank | 36 comment | 0 complexity | 243d18d4e5318f4eabe8b40d390f2155 MD5 | raw file
 1/**
 2 * @file llfilteredwearablelist.h
 3 * @brief Functionality for showing filtered wearable flat list
 4 *
 5 * $LicenseInfo:firstyear=2010&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_LLFILTEREDWEARABLELIST_H
28#define LL_LLFILTEREDWEARABLELIST_H
29
30#include "llinventoryfunctions.h"
31#include "llinventoryobserver.h"
32
33class LLInventoryItemsList;
34
35// Class that fills LLInventoryItemsList with filtered data (original items only (non-links)).
36class LLFilteredWearableListManager : public LLInventoryObserver
37{
38	LOG_CLASS(LLFilteredWearableListManager);
39public:
40
41	LLFilteredWearableListManager(LLInventoryItemsList* list, LLInventoryCollectFunctor* collector);
42	~LLFilteredWearableListManager();
43
44	/** LLInventoryObserver implementation
45	 *
46	 */
47	/*virtual*/ void changed(U32 mask);
48
49	/**
50	 * Sets new collector and applies it immediately
51	 */
52	void setFilterCollector(LLInventoryCollectFunctor* collector);
53
54	/**
55	 * Populates wearable list with filtered data.
56	 */
57	void populateList();
58
59private:
60	LLInventoryItemsList* mWearableList;
61	LLInventoryCollectFunctor* mCollector;
62};
63
64#endif //LL_LLFILTEREDWEARABLELIST_H
65
66// EOF