diff options
Diffstat (limited to 'dash')
| -rw-r--r-- | dash/previews/ErrorPreview.cpp | 5 | ||||
| -rw-r--r-- | dash/previews/ErrorPreview.h | 2 | ||||
| -rw-r--r-- | dash/previews/MusicPaymentPreview.cpp | 5 | ||||
| -rw-r--r-- | dash/previews/MusicPaymentPreview.h | 1 | ||||
| -rw-r--r-- | dash/previews/PaymentPreview.cpp | 6 | ||||
| -rw-r--r-- | dash/previews/PaymentPreview.h | 1 |
6 files changed, 19 insertions, 1 deletions
diff --git a/dash/previews/ErrorPreview.cpp b/dash/previews/ErrorPreview.cpp index 9afd4b1cc..bee583176 100644 --- a/dash/previews/ErrorPreview.cpp +++ b/dash/previews/ErrorPreview.cpp @@ -91,6 +91,11 @@ std::string ErrorPreview::GetName() const return "ErrorPreview"; } +void ErrorPreview::AddProperties(GVariantBuilder* builder) +{ + PaymentPreview::AddProperties(builder); +} + void ErrorPreview::OnActionActivated(ActionButton* button, std::string const& id) { Preview::OnActionActivated(button, id); diff --git a/dash/previews/ErrorPreview.h b/dash/previews/ErrorPreview.h index 841d92328..1c2088ddd 100644 --- a/dash/previews/ErrorPreview.h +++ b/dash/previews/ErrorPreview.h @@ -72,6 +72,8 @@ public: unsigned long special_keys_state); // From debug::Introspectable std::string GetName() const; + void AddProperties(GVariantBuilder* builder); + nux::Layout* GetTitle(); nux::Layout* GetPrice(); nux::Layout* GetBody(); diff --git a/dash/previews/MusicPaymentPreview.cpp b/dash/previews/MusicPaymentPreview.cpp index 4242231fe..dea364ca8 100644 --- a/dash/previews/MusicPaymentPreview.cpp +++ b/dash/previews/MusicPaymentPreview.cpp @@ -84,6 +84,11 @@ std::string MusicPaymentPreview::GetName() const return "MusicPaymentPreview"; } +void MusicPaymentPreview::AddProperties(GVariantBuilder* builder) +{ + PaymentPreview::AddProperties(builder); +} + void MusicPaymentPreview::OnActionActivated(ActionButton* button, std::string const& id) { // Check the action id and send the password only when we diff --git a/dash/previews/MusicPaymentPreview.h b/dash/previews/MusicPaymentPreview.h index 40062f562..2e8e37e8a 100644 --- a/dash/previews/MusicPaymentPreview.h +++ b/dash/previews/MusicPaymentPreview.h @@ -74,6 +74,7 @@ protected: // From debug::Introspectable std::string GetName() const; + void AddProperties(GVariantBuilder* builder); nux::Layout* GetTitle(); nux::Layout* GetPrice(); diff --git a/dash/previews/PaymentPreview.cpp b/dash/previews/PaymentPreview.cpp index 388734b34..e3773c7bc 100644 --- a/dash/previews/PaymentPreview.cpp +++ b/dash/previews/PaymentPreview.cpp @@ -194,9 +194,13 @@ PaymentPreview::PaymentPreview(dash::Preview::Ptr preview_model) std::string PaymentPreview::GetName() const { - return ""; + return "PaymentPreview"; } +void PaymentPreview::AddProperties(GVariantBuilder* builder) +{ + Preview::AddProperties(builder); +} nux::Layout* PaymentPreview::GetHeader() { diff --git a/dash/previews/PaymentPreview.h b/dash/previews/PaymentPreview.h index 3a09e895b..5db1e8bf9 100644 --- a/dash/previews/PaymentPreview.h +++ b/dash/previews/PaymentPreview.h @@ -60,6 +60,7 @@ public: // From debug::Introspectable std::string GetName() const; + void AddProperties(GVariantBuilder* builder); // Create and connect an action link to OnActionLinkActivated nux::ObjectPtr<ActionLink> CreateLink(dash::Preview::ActionPtr action); |
