MOBILISIS-Calculator/library/include/mobilisis/tariff_prepaid.h

30 lines
807 B
C
Raw Normal View History

#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