committing work in progress
[ptas] / zouba / src / journey_p.h
1 #ifndef JOURNEY_P_H
2 #define JOURNEY_P_H
3
4 #include <QObject>
5 #include <QString>
6 #include <QByteArray>
7
8 class JourneyPrivate : public QObject
9 {
10     Q_OBJECT
11
12 public:
13   JourneyPrivate();
14   virtual ~JourneyPrivate();
15
16   void setFrom( const QString &from );
17   QString from() const;
18
19   void setTo( const QString &to );
20   QString to() const;
21
22   void setLabel( const QString &label );
23   QString label() const;
24
25   void setValid( bool valid );
26   bool isValid() const;
27
28 private:
29   bool fromAndToAreValid() const;
30
31   QString m_from;
32   QString m_to;
33   QString m_label;
34   bool    m_valid;
35 };
36
37 #endif // JOURNEY_P_H
38