diff options
| author | Erik Kundiman <erik@megapahit.org> | 2026-09-05 00:17:50 +0800 |
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2026-09-05 00:17:50 +0800 |
| commit | 11cab7b55c64bdc59d0780aacd853e5c12d6adab (patch) | |
| tree | 16f138566459efc960250b4a3dc87c664437549f /indra/newview/llfloaterbuycurrencyhtml.h | |
| parent | a0770adb8bda13e8daa2190a8f95972055983b0d (diff) | |
| parent | 79b07e64267386396f6b122c5ced12eda513c72e (diff) | |
Merge tag 'Second_Life_Release#79b07e64-26.4' into 26.426.4
Diffstat (limited to 'indra/newview/llfloaterbuycurrencyhtml.h')
| -rw-r--r-- | indra/newview/llfloaterbuycurrencyhtml.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/indra/newview/llfloaterbuycurrencyhtml.h b/indra/newview/llfloaterbuycurrencyhtml.h index 23a29cae4c..4b28cf6967 100644 --- a/indra/newview/llfloaterbuycurrencyhtml.h +++ b/indra/newview/llfloaterbuycurrencyhtml.h @@ -4,7 +4,7 @@ * * $LicenseInfo:firstyear=2010&license=viewerlgpl$ * Second Life Viewer Source Code - * Copyright (C) 2010, Linden Research, Inc. + * Copyright (C) 2026, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -24,36 +24,36 @@ * $/LicenseInfo$ */ -#ifndef LL_LLFLOATERBUYCURRENCYHTML_H -#define LL_LLFLOATERBUYCURRENCYHTML_H +#pragma once #include "llfloater.h" #include "llmediactrl.h" -class LLFloaterBuyCurrencyHTML : +class LLFloaterBuyCurrencyHTML: public LLFloater, public LLViewerMediaObserver { - public: - LLFloaterBuyCurrencyHTML( const LLSD& key ); + friend class LLFloaterReg; - /*virtual*/ bool postBuild(); - /*virtual*/ void onClose( bool app_quitting ); +public: + LLFloaterBuyCurrencyHTML(const LLSD& key); + ~LLFloaterBuyCurrencyHTML(); + bool postBuild() override; + void onClose(bool app_quitting) override; + void handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event) override; - // inherited from LLViewerMediaObserver - /*virtual*/ void handleMediaEvent( LLPluginClassMedia* self, EMediaEvent event ); + void navigateToFinalURL(); + void setShortfall(S32 shortfall) { mShortfall = shortfall; } + void setFallbackContext(const std::string& message, S32 sum); + static std::string buildURL(S32 shortfall = 0); - // allow our controlling parent to tell us paramters - void setParams( bool specific_sum_requested, const std::string& message, S32 sum ); +private: + void fallbackToLegacy(); - // parse and construct URL and set browser to navigate there. - void navigateToFinalURL(); - - private: - LLMediaCtrl* mBrowser; - bool mSpecificSumRequested; - std::string mMessage; - S32 mSum; + LLMediaCtrl* mBrowser; + S32 mShortfall{0}; + bool mHasFallbackTarget{false}; + std::string mFallbackMessage; + S32 mFallbackSum{0}; }; -#endif // LL_LLFLOATERBUYCURRENCYHTML_H |
