Annotation of /trunk/linden/indra/newview/llfloatertos.h
Parent Directory
|
Revision Log
Revision 61 - (view) (download)
| 1 : | mjm | 57 | /** |
| 2 : | * @file llfloatertos.h | ||
| 3 : | * @brief Terms of Service Agreement dialog | ||
| 4 : | * | ||
| 5 : | * $LicenseInfo:firstyear=2003&license=viewergpl$ | ||
| 6 : | * | ||
| 7 : | * Copyright (c) 2003-2008, Linden Research, Inc. | ||
| 8 : | * | ||
| 9 : | * Second Life Viewer Source Code | ||
| 10 : | * The source code in this file ("Source Code") is provided by Linden Lab | ||
| 11 : | * to you under the terms of the GNU General Public License, version 2.0 | ||
| 12 : | * ("GPL"), unless you have obtained a separate licensing agreement | ||
| 13 : | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
| 14 : | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
| 15 : | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
| 16 : | * | ||
| 17 : | * There are special exceptions to the terms and conditions of the GPL as | ||
| 18 : | * it is applied to this Source Code. View the full text of the exception | ||
| 19 : | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
| 20 : | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
| 21 : | * | ||
| 22 : | * By copying, modifying or distributing this software, you acknowledge | ||
| 23 : | * that you have read and understood your obligations described above, | ||
| 24 : | * and agree to abide by those obligations. | ||
| 25 : | * | ||
| 26 : | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
| 27 : | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
| 28 : | * COMPLETENESS OR PERFORMANCE. | ||
| 29 : | * $/LicenseInfo$ | ||
| 30 : | */ | ||
| 31 : | |||
| 32 : | #ifndef LL_LLFLOATERTOS_H | ||
| 33 : | #define LL_LLFLOATERTOS_H | ||
| 34 : | |||
| 35 : | #include "llmodaldialog.h" | ||
| 36 : | #include "llassetstorage.h" | ||
| 37 : | #include "llwebbrowserctrl.h" | ||
| 38 : | |||
| 39 : | class LLButton; | ||
| 40 : | class LLRadioGroup; | ||
| 41 : | class LLVFS; | ||
| 42 : | class LLTextEditor; | ||
| 43 : | class LLUUID; | ||
| 44 : | |||
| 45 : | class LLFloaterTOS : | ||
| 46 : | public LLModalDialog, | ||
| 47 : | public LLWebBrowserCtrlObserver | ||
| 48 : | { | ||
| 49 : | public: | ||
| 50 : | virtual ~LLFloaterTOS(); | ||
| 51 : | |||
| 52 : | // Types of dialog. | ||
| 53 : | enum ETOSType | ||
| 54 : | { | ||
| 55 : | TOS_TOS = 0, | ||
| 56 : | TOS_CRITICAL_MESSAGE = 1 | ||
| 57 : | }; | ||
| 58 : | |||
| 59 : | // Asset_id is overwritten with LLUUID::null when agree is clicked. | ||
| 60 : | static LLFloaterTOS* show(ETOSType type, const std::string & message); | ||
| 61 : | |||
| 62 : | BOOL postBuild(); | ||
| 63 : | |||
| 64 : | virtual void draw(); | ||
| 65 : | |||
| 66 : | static void updateAgree( LLUICtrl *, void* userdata ); | ||
| 67 : | static void onContinue( void* userdata ); | ||
| 68 : | static void onCancel( void* userdata ); | ||
| 69 : | |||
| 70 : | void setSiteIsAlive( bool alive ); | ||
| 71 : | |||
| 72 : | virtual void onNavigateComplete( const EventType& eventIn ); | ||
| 73 : | |||
| 74 : | private: | ||
| 75 : | // Asset_id is overwritten with LLUUID::null when agree is clicked. | ||
| 76 : | LLFloaterTOS(ETOSType type, const std::string & message); | ||
| 77 : | |||
| 78 : | private: | ||
| 79 : | ETOSType mType; | ||
| 80 : | std::string mMessage; | ||
| 81 : | int mWebBrowserWindowId; | ||
| 82 : | int mLoadCompleteCount; | ||
| 83 : | |||
| 84 : | static LLFloaterTOS* sInstance; | ||
| 85 : | }; | ||
| 86 : | |||
| 87 : | #endif // LL_LLFLOATERTOS_H |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

