From 3a6a47725ffae55ba1536457dedc66f25caa6548 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 30 Jan 2024 10:48:05 +0100 Subject: [PATCH] Re-implement accessors for payment-option(s). --- library/src/configuration.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/library/src/configuration.cpp b/library/src/configuration.cpp index 2569f2d..f5b313c 100644 --- a/library/src/configuration.cpp +++ b/library/src/configuration.cpp @@ -452,12 +452,18 @@ bool Configuration::ParseJson(Configuration* cfg, const char* json) } } - - ATBPaymentOption const &Configuration::getPaymentOptions() const { - return this->currentPaymentOptions; + return this->currentPaymentOptions.at(0); } ATBPaymentOption &Configuration::getPaymentOptions() { + return this->currentPaymentOptions[0]; +} + +QVector const &Configuration::getAllPaymentOptions() const { + return this->currentPaymentOptions; +} + +QVector &Configuration::getAllPaymentOptions() { return this->currentPaymentOptions; }