Add m_priceSteps, ResetPriceSteps() and priceSteps().
This commit is contained in:
parent
689bf9b3ba
commit
7bb2cbf01e
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user