diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-09-22 18:26:23 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-09-23 11:43:53 +0300 |
commit | 2c0814b00a26d99de00161f9307e706a49251017 (patch) | |
tree | 948bb37b58aa524891c4d98d5e607fb2500c9296 /indra/newview/llfloaterbuycurrency.h | |
parent | 749464660f6241730231d9621e9bf05ba983480d (diff) |
SL-13335 Friendlier L$ Buy flow when no payment method on file
Diffstat (limited to 'indra/newview/llfloaterbuycurrency.h')
-rw-r--r-- | indra/newview/llfloaterbuycurrency.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/indra/newview/llfloaterbuycurrency.h b/indra/newview/llfloaterbuycurrency.h index 7ff6c42384..1722f56dc1 100644 --- a/indra/newview/llfloaterbuycurrency.h +++ b/indra/newview/llfloaterbuycurrency.h @@ -27,15 +27,34 @@ #ifndef LL_LLFLOATERBUYCURRENCY_H #define LL_LLFLOATERBUYCURRENCY_H +#include "llavatarpropertiesprocessor.h" #include "stdtypes.h" - +#include "llagent.h" class LLFloater; +class LLFetchAvatarPaymentInfo : public LLAvatarPropertiesObserver +{ +public: + LLFetchAvatarPaymentInfo(bool has_target, const std::string& name = std::string(), S32 price = 0); + ~LLFetchAvatarPaymentInfo(); + + void processProperties(void* data, EAvatarProcessorType type); + +private: + LLUUID mAvatarID; + bool mHasTarget; + std::string mName; + S32 mPrice; +}; + + class LLFloaterBuyCurrency { public: static void buyCurrency(); static void buyCurrency(const std::string& name, S32 price); + + static void handleBuyCurrency(bool has_piof, bool has_target, const std::string& name, S32 price); /* name should be a noun phrase of the object or service being bought: "That object costs" "Trying to give" @@ -44,7 +63,8 @@ public: */ static LLFloater* buildFloater(const LLSD& key); -}; + static LLFetchAvatarPaymentInfo* sPropertiesRequest; +}; #endif |