Add drafts for 3 new haeder files.
This commit is contained in:
parent
2b3ee3f384
commit
d6324f03a8
@ -1,15 +1,14 @@
|
|||||||
#ifndef TARIFF_CUSTOMER_TYPE_H_INCLUDED
|
#ifndef TARIFF_CUSTOMER_H_INCLUDED
|
||||||
#define TARIFF_CUSTOMER_TYPE_H_INCLUDED
|
#define TARIFF_CUSTOMER_H_INCLUDED
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
struct CustomerType {
|
struct Customer {
|
||||||
//enum class Customer;
|
enum class CustomerType {ADULT=0, CHILD, TEEN};
|
||||||
|
|
||||||
|
Customer() = default;
|
||||||
|
|
||||||
CustomerType() = default;
|
CustomerType cust_type;
|
||||||
|
|
||||||
int cust_type; // 1: Adult, 2: Child:
|
|
||||||
QString cust_label;
|
QString cust_label;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -18,8 +18,8 @@ struct DailyTicket {
|
|||||||
// some reference time point,
|
// some reference time point,
|
||||||
// typically "start time".
|
// typically "start time".
|
||||||
|
|
||||||
QVector<int> daily_ticket_clearance_id; // who is allowed to buy the ticket:
|
QVector<int> daily_ticket_clearance_type; // who is allowed to buy the ticket:
|
||||||
// list of user ids
|
// list of customer types
|
||||||
|
|
||||||
QTime daily_ticket_from_min; // used in case time base == 1
|
QTime daily_ticket_from_min; // used in case time base == 1
|
||||||
QTime daily_ticket_to_max;
|
QTime daily_ticket_to_max;
|
||||||
|
14
library/include/mobilisis/tariff_timebase.h
Normal file
14
library/include/mobilisis/tariff_timebase.h
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#ifndef TARIFF_TIME_BASE_H_INCLUDED
|
||||||
|
#define TARIFF_TIME_BASE_H_INCLUDED
|
||||||
|
|
||||||
|
#include <QString>
|
||||||
|
|
||||||
|
struct TimeBase {
|
||||||
|
enum class TimeBaseType {ABSOLUTE=0, RELATIVE=1};
|
||||||
|
|
||||||
|
TimeBase() = default;
|
||||||
|
TimeBaseType tbase_type;
|
||||||
|
QString tbase_label;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // TARIFF_TIME_BASE_H_INCLUDED
|
Loading…
Reference in New Issue
Block a user