PageRenderTime 188ms CodeModel.GetById 1ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1
  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. #ifndef LL_LLFLOATERBUYCURRENCYHTML_H
  27. #define LL_LLFLOATERBUYCURRENCYHTML_H
  28. #include "llfloater.h"
  29. #include "llmediactrl.h"
  30. class LLFloaterBuyCurrencyHTML :
  31. public LLFloater,
  32. public LLViewerMediaObserver
  33. {
  34. public:
  35. LLFloaterBuyCurrencyHTML( const LLSD& key );
  36. /*virtual*/ BOOL postBuild();
  37. /*virtual*/ void onClose( bool app_quitting );
  38. // inherited from LLViewerMediaObserver
  39. /*virtual*/ void handleMediaEvent( LLPluginClassMedia* self, EMediaEvent event );
  40. // allow our controlling parent to tell us paramters
  41. void setParams( bool specific_sum_requested, const std::string& message, S32 sum );
  42. // parse and construct URL and set browser to navigate there.
  43. void navigateToFinalURL();
  44. private:
  45. LLMediaCtrl* mBrowser;
  46. bool mSpecificSumRequested;
  47. std::string mMessage;
  48. S32 mSum;
  49. };
  50. #endif // LL_LLFLOATERBUYCURRENCYHTML_H