summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterbuycurrencyhtml.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloaterbuycurrencyhtml.h')
-rw-r--r--indra/newview/llfloaterbuycurrencyhtml.h42
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