PageRenderTime 21ms CodeModel.GetById 16ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llfloaterauction.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 86 lines | 39 code | 15 blank | 32 comment | 0 complexity | 8abd7e3df8ca5680c14389cad64feef2 MD5 | raw file
 1/** 
 2 * @file llfloaterauction.h
 3 * @author James Cook, Ian Wilkes
 4 * @brief llfloaterauction 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#ifndef LL_LLFLOATERAUCTION_H
29#define LL_LLFLOATERAUCTION_H
30
31#include "llfloater.h"
32#include "lluuid.h"
33#include "llpointer.h"
34#include "llviewertexture.h"
35
36//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37// Class LLFloaterAuction
38//
39// Class which holds the functionality to start auctions.
40//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41class LLParcelSelection;
42class LLParcel;
43class LLViewerRegion;
44
45class LLFloaterAuction : public LLFloater
46{
47	friend class LLFloaterReg;
48public:
49	// LLFloater interface
50	/*virtual*/ void onOpen(const LLSD& key);
51	/*virtual*/ void draw();
52
53private:
54	
55	LLFloaterAuction(const LLSD& key);
56	~LLFloaterAuction();
57	
58	void initialize();
59
60	static void onClickSnapshot(void* data);
61	static void onClickResetParcel(void* data);
62	static void onClickSellToAnyone(void* data);		// Sell to anyone clicked
63	bool onSellToAnyoneConfirmed(const LLSD& notification, const LLSD& response);	// Sell confirmation clicked
64	static void onClickStartAuction(void* data);
65
66	/*virtual*/ BOOL postBuild();
67
68	void doResetParcel();
69	void doSellToAnyone();
70	void clearParcelAccessLists( LLParcel* parcel, LLViewerRegion* region );
71	void cleanupAndClose();
72
73private:
74
75	LLTransactionID mTransactionID;
76	LLAssetID mImageID;
77	LLPointer<LLViewerTexture> mImage;
78	LLSafeHandle<LLParcelSelection> mParcelp;
79	S32 mParcelID;
80	LLHost mParcelHost;
81
82	std::string mParcelUpdateCapUrl;	// "ParcelPropertiesUpdate" capability
83};
84
85
86#endif // LL_LLFLOATERAUCTION_H