30 lines
807 B
C
30 lines
807 B
C
|
#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
|