Changes: tweaks to unit tests
[ptas] / zouba / src / location_p.h
1 #ifndef LOCATION_P_H
2 #define LOCATION_P_H
3
4 #include <QObject>
5 #include <QString>
6 #include <QByteArray>
7
8 class LocationPrivate : public QObject
9 {
10     Q_OBJECT
11
12 public:
13   LocationPrivate( const QString &x, const QString &y, const QString &label );
14   LocationPrivate( const QString &label );
15   virtual ~LocationPrivate();
16
17   void setX( uint x );
18   void setX( const QString &x );
19   QString x() const;
20
21   void setY( uint y );
22   void setY( const QString &y );
23   QString y() const;
24
25   void setAddress( const QString &address );
26   QString address() const;
27
28   void setLabel( const QString &label );
29   QString label() const;
30
31   void setValid( bool valid );
32   bool isValid() const;
33
34   void parseReply( const QByteArray &reply );
35
36   QString m_label;
37   QString m_address;
38   QString m_x;
39   QString m_y;
40   bool    m_valid;
41 };
42
43 #endif // LOCATION_P_H
44