17 #include <MOEventAbstract>
19 #ifndef MSIFACE_EXPORT
20 #define MSIFACE_EXPORT Q_DECL_IMPORT
29 Q_PROPERTY(Nullable<qint64> eventid READ eventid)
30 Q_PROPERTY(QString startTimeString READ startTimeString)
31 Q_PROPERTY(QString startDateString READ startDateString)
32 Q_PROPERTY(QString endTimeString READ endTimeString)
33 Q_PROPERTY(QString priceString READ priceString)
35 Q_PROPERTY(
bool isValid READ isValid)
36 Q_PROPERTY(QList<MOEventPrice> priceFiltered READ priceFiltered)
42 inline Nullable<qint64>
eventid()
const{
return id();}
45 QString startTimeString()
const;
47 QString startDateString()
const;
49 QString endTimeString()
const;
52 QString priceString()
const;
57 bool isValid()
const{
return !eventid().isNull() && eventid().value()>0;}
60 QList<MOEventPrice> priceFiltered()
const;
encapsulation of an event, this class wraps the auto-generated event class to provide some convenienc...
Definition: event.h:25
QRegExp priceRegExp(bool localize)
return a (localized) regular expression that validates prices
Definition: misc.cpp:87
virtual Nullable< qint64 > id() const
Definition: srcMOEventAbstract.h:89
#define MSIFACE_EXPORT
Definition: event.h:20
Nullable< qint64 > eventid() const
alias for id()
Definition: event.h:42
bool isValid() const
returns whether the event is valid.
Definition: event.h:57
Q_DECLARE_METATYPE(QDomNode)
Definition: srcMOEventAbstract.h:17