PageRenderTime 30ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): LGPL-2.1
  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. #ifndef LL_LLFLOATERTOS_H
  27. #define LL_LLFLOATERTOS_H
  28. #include "llmodaldialog.h"
  29. #include "llassetstorage.h"
  30. #include "llmediactrl.h"
  31. #include <boost/function.hpp>
  32. class LLButton;
  33. class LLRadioGroup;
  34. class LLVFS;
  35. class LLTextEditor;
  36. class LLUUID;
  37. class LLFloaterTOS :
  38. public LLModalDialog,
  39. public LLViewerMediaObserver
  40. {
  41. public:
  42. LLFloaterTOS(const LLSD& data);
  43. virtual ~LLFloaterTOS();
  44. BOOL postBuild();
  45. virtual void draw();
  46. static void updateAgree( LLUICtrl *, void* userdata );
  47. static void onContinue( void* userdata );
  48. static void onCancel( void* userdata );
  49. void setSiteIsAlive( bool alive );
  50. // inherited from LLViewerMediaObserver
  51. /*virtual*/ void handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event);
  52. private:
  53. std::string mMessage;
  54. int mWebBrowserWindowId;
  55. bool mLoadingScreenLoaded;
  56. bool mSiteAlive;
  57. bool mRealNavigateBegun;
  58. std::string mReplyPumpName;
  59. };
  60. #endif // LL_LLFLOATERTOS_H