Add m_priceSteps, ResetPriceSteps() and priceSteps().
This commit is contained in:
parent
689bf9b3ba
commit
7bb2cbf01e
@ -5,6 +5,7 @@
|
|||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
|
#include "calculate_price.h"
|
||||||
#include "payment_method.h"
|
#include "payment_method.h"
|
||||||
#include "ticket.h"
|
#include "ticket.h"
|
||||||
#include "tariff_time_range.h"
|
#include "tariff_time_range.h"
|
||||||
@ -14,6 +15,7 @@ using namespace std;
|
|||||||
|
|
||||||
class Calculator {
|
class Calculator {
|
||||||
mutable QList<int> m_timeSteps;
|
mutable QList<int> m_timeSteps;
|
||||||
|
mutable QList<int> m_priceSteps;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
explicit Calculator() = default;
|
explicit Calculator() = default;
|
||||||
@ -30,6 +32,9 @@ public:
|
|||||||
void ResetTimeSteps() { m_timeSteps.clear(); }
|
void ResetTimeSteps() { m_timeSteps.clear(); }
|
||||||
QList<int> timeSteps() const { return m_timeSteps; }
|
QList<int> timeSteps() const { return m_timeSteps; }
|
||||||
|
|
||||||
|
void ResetPriceSteps() { m_priceSteps.clear(); }
|
||||||
|
QList<int> priceSteps() const { return m_priceSteps; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets duration in seconds from cost
|
/// Gets duration in seconds from cost
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user