Add m_priceSteps, ResetPriceSteps() and priceSteps().

This commit is contained in:
Gerhard Hoffmann 2024-01-30 10:35:07 +01:00
parent 689bf9b3ba
commit 7bb2cbf01e

View File

@ -5,6 +5,7 @@
#include <optional>
#include "configuration.h"
#include "calculate_price.h"
#include "payment_method.h"
#include "ticket.h"
#include "tariff_time_range.h"
@ -14,6 +15,7 @@ using namespace std;
class Calculator {
mutable QList<int> m_timeSteps;
mutable QList<int> m_priceSteps;
protected:
explicit Calculator() = default;
@ -30,6 +32,9 @@ public:
void ResetTimeSteps() { m_timeSteps.clear(); }
QList<int> timeSteps() const { return m_timeSteps; }
void ResetPriceSteps() { m_priceSteps.clear(); }
QList<int> priceSteps() const { return m_priceSteps; }
/// <summary>
/// Gets duration in seconds from cost
/// </summary>