Added menu option to show/hide messages table.
[ptas] / zouba / location.h
index 82db0fc..30c1aea 100644 (file)
@@ -17,11 +17,11 @@ class Location : public QObject
 Q_OBJECT
 
 public:
-  Location( QString x, QString y );
-  Location( const QGeoPositionInfo &positionInfo );
+  Location( const QString &x, const QString &y, const QString &label=QString() );
+  Location( const QGeoPositionInfo &positionInfo, const QString &label=QString() );
   Location( const Location &from );
   Location &operator=( const Location &from );
-  Location();
+  Location( const QString &label=QString() );
 
   ~Location();
 
@@ -29,25 +29,27 @@ public:
 
   QString y() const;
 
+  void setAddress( const QString &address ) const;
+  QString address() const;
+
+  void setLabel( const QString &label ) const;
+  QString label() const;
+
   bool isValid() const;
 
-  public Q_SLOTS:
-    void resolveAddress( QString address );
+public Q_SLOTS:
+  void resolveAddress( const QString &address );
 
 Q_SIGNALS:
   void becomeValid();
 
-  private Q_SLOTS:
-    void replyFinished( QNetworkReply * reply );
+private Q_SLOTS:
+  void replyFinished( QNetworkReply * reply );
 
 private:
   LocationPrivate *q;
   QNetworkAccessManager *manager;
 
-  QString m_x;
-  QString m_y;
-  QString m_valid;
-
   typedef uint KKJ;
 
   /**