PageRenderTime 213ms CodeModel.GetById 91ms app.highlight 3ms RepoModel.GetById 117ms app.codeStats 0ms

/indra/newview/llfloaterbuycontents.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 68 lines | 28 code | 10 blank | 30 comment | 0 complexity | 27824894b62a1079b9128e351c583dcf MD5 | raw file
 1/** 
 2 * @file llfloaterbuycontents.h
 3 * @author James Cook
 4 * @brief LLFloaterBuyContents class header file
 5 *
 6 * $LicenseInfo:firstyear=2004&license=viewerlgpl$
 7 * Second Life Viewer Source Code
 8 * Copyright (C) 2010, Linden Research, Inc.
 9 * 
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation;
13 * version 2.1 of the License only.
14 * 
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 * Lesser General Public License for more details.
19 * 
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
23 * 
24 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
25 * $/LicenseInfo$
26 */
27
28/**
29 * Shows the contents of an object and their permissions when you
30 * click "Buy..." on an object with "Sell Contents" checked.
31 */
32
33#ifndef LL_LLFLOATERBUYCONTENTS_H
34#define LL_LLFLOATERBUYCONTENTS_H
35
36#include "llfloater.h"
37#include "llvoinventorylistener.h"
38#include "llinventory.h"
39
40class LLViewerObject;
41class LLObjectSelection;
42
43class LLFloaterBuyContents
44: public LLFloater, public LLVOInventoryListener
45{
46public:
47	static void show(const LLSaleInfo& sale_info);
48
49	LLFloaterBuyContents(const LLSD& key);
50	~LLFloaterBuyContents();
51	/*virtual*/	BOOL	postBuild();
52	
53protected:
54	void requestObjectInventories();
55	/*virtual*/ void inventoryChanged(LLViewerObject* obj,
56								 LLInventoryObject::object_list_t* inv,
57								 S32 serial_num,
58								 void* data);
59	
60	void onClickBuy();
61	void onClickCancel();
62
63protected:
64	LLSafeHandle<LLObjectSelection> mObjectSelection;
65	LLSaleInfo mSaleInfo;
66};
67
68#endif