c0778bce798c73bcaa1daff78636d5c4b2734f33
[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   QString m_label;
14   QString m_address;
15   QString m_x;
16   QString m_y;
17   bool    m_valid;
18   LocationPrivate( const QString &x, const QString &y, const QString &label );
19
20   LocationPrivate( const QString &label );
21   virtual ~LocationPrivate();
22
23   void setX( uint x );
24   void setX( const QString &x );
25   QString x() const;
26
27   void setY( uint y );
28   void setY( const QString &y );
29   QString y() const;
30
31   void setAddress( const QString &address );
32   QString address() const;
33
34   void setLabel( const QString &label );
35   QString label() const;
36
37   void setValid( bool valid );
38   bool isValid() const;
39
40   void parseReply( const QByteArray &reply );
41
42 };
43
44 #endif // LOCATION_P_H
45