Add Interpolation, Prepaid and CarryOver structures to streamline Json-File layout.
This commit is contained in:
29
library/include/mobilisis/tariff_prepaid.h
Normal file
29
library/include/mobilisis/tariff_prepaid.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef TARIFF_PREPAID_H_INCLUDED
|
||||
#define TARIFF_PREPAID_H_INCLUDED
|
||||
|
||||
#include <QTime>
|
||||
#include <QString>
|
||||
|
||||
struct ATBPrepaid {
|
||||
explicit ATBPrepaid() = default;
|
||||
int id;
|
||||
bool anytime;
|
||||
bool never;
|
||||
QTime static_start;
|
||||
QTime static_end;
|
||||
|
||||
friend QDebug operator<<(QDebug debug, ATBPrepaid const &pp) {
|
||||
QDebugStateSaver saver(debug);
|
||||
|
||||
debug.nospace()
|
||||
<< " id: " << pp.id << "\n"
|
||||
<< " static_start: " << pp.static_start.toString(Qt::ISODate) << "\n"
|
||||
<< " static_end: " << pp.static_end.toString(Qt::ISODate) << "\n"
|
||||
<< " anytime: " << pp.anytime << "\n"
|
||||
<< " never: " << pp.never << "\n";
|
||||
|
||||
return debug;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // TARIFF_PREPAID_H_INCLUDED
|
||||
Reference in New Issue
Block a user