PageRenderTime 20ms CodeModel.GetById 9ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llfloaterbuycurrencyhtml.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 59 lines | 22 code | 9 blank | 28 comment | 0 complexity | cf850b1b15d5346c071817f7a92122a7 MD5 | raw file
 1/** 
 2 * @file llfloaterbuycurrencyhtml.h
 3 * @brief buy currency implemented in HTML floater - uses embedded media browser control
 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_LLFLOATERBUYCURRENCYHTML_H
28#define LL_LLFLOATERBUYCURRENCYHTML_H
29
30#include "llfloater.h"
31#include "llmediactrl.h"
32
33class LLFloaterBuyCurrencyHTML : 
34	public LLFloater, 
35	public LLViewerMediaObserver
36{
37	public:
38		LLFloaterBuyCurrencyHTML( const LLSD& key );
39
40		/*virtual*/ BOOL postBuild();
41		/*virtual*/ void onClose( bool app_quitting );
42
43		// inherited from LLViewerMediaObserver
44		/*virtual*/ void handleMediaEvent( LLPluginClassMedia* self, EMediaEvent event );
45
46		// allow our controlling parent to tell us paramters
47		void setParams( bool specific_sum_requested, const std::string& message, S32 sum );
48
49		// parse and construct URL and set browser to navigate there.
50		void navigateToFinalURL();
51
52	private:
53		LLMediaCtrl* mBrowser;
54		bool mSpecificSumRequested;
55		std::string mMessage;
56		S32 mSum;
57};
58
59#endif  // LL_LLFLOATERBUYCURRENCYHTML_H