PageRenderTime 26ms CodeModel.GetById 12ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 1ms

/indra/newview/llfloatertos.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 72 lines | 34 code | 12 blank | 26 comment | 0 complexity | 504a4892c935cc1681de0af2a507b451 MD5 | raw file
 1/** 
 2 * @file llfloatertos.h
 3 * @brief Terms of Service Agreement dialog
 4 *
 5 * $LicenseInfo:firstyear=2003&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_LLFLOATERTOS_H
28#define LL_LLFLOATERTOS_H
29
30#include "llmodaldialog.h"
31#include "llassetstorage.h"
32#include "llmediactrl.h"
33#include <boost/function.hpp>
34
35class LLButton;
36class LLRadioGroup;
37class LLVFS;
38class LLTextEditor;
39class LLUUID;
40
41class LLFloaterTOS : 
42	public LLModalDialog,
43	public LLViewerMediaObserver
44{
45public:
46	LLFloaterTOS(const LLSD& data);
47	virtual ~LLFloaterTOS();
48
49	BOOL postBuild();
50	
51	virtual void draw();
52
53	static void		updateAgree( LLUICtrl *, void* userdata );
54	static void		onContinue( void* userdata );
55	static void		onCancel( void* userdata );
56
57	void			setSiteIsAlive( bool alive );
58
59	// inherited from LLViewerMediaObserver
60	/*virtual*/ void handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event);
61
62private:
63
64	std::string		mMessage;
65	int				mWebBrowserWindowId;
66	bool			mLoadingScreenLoaded;
67	bool			mSiteAlive;
68	bool			mRealNavigateBegun;
69	std::string		mReplyPumpName;
70};
71
72#endif // LL_LLFLOATERTOS_H