Re-factored the source to use the new coordinate classes
[situare] / src / ui / userinfo.h
index 2d0070c..23f436b 100644 (file)
@@ -27,6 +27,8 @@
 #define USERINFO_H
 
 #include <QWidget>
+
+#include "coordinates/geocoordinate.h"
 #include "updatelocation/updatelocationdialog.h"
 
 class ImageButton;
@@ -96,7 +98,7 @@ public:
     *
     * @param coordinates Reference to users current coordinates
     */
-    void setCoordinates(const QPointF &coordinates);    
+    void setCoordinates(const GeoCoordinate &coordinates);
 
     /**
     * @brief Sets the user picture
@@ -174,7 +176,7 @@ private slots:
     * @brief Slot function to forward messageUpdate launch signal
     *
     */
-    void messageUpdate();    
+    void messageUpdate();
 
     /**
     * @brief Slot function to get indication when dialog is finished
@@ -191,7 +193,7 @@ signals:
     *
     * @param coordinates user geo coordinates
     */
-    void findUser(const QPointF &coordinates);
+    void findUser(const GeoCoordinate &coordinates);
 
     /**
     * @brief Signal that used to inform user that his message/location update tp Situare server
@@ -234,7 +236,7 @@ signals:
 ******************************************************************************/
 private:
     bool m_backupFacebookPublishPolicity; ///< Backup of publish on Facebook checkbox value
-    bool m_expanded;                    ///< Item expanded state   
+    bool m_expanded;                    ///< Item expanded state
     QLabel *m_locationLabel;            ///< Location label
     QLabel *m_nameLabel;                ///< Name label
     QLabel *m_statusTextLabel;          ///< Status text label
@@ -243,14 +245,14 @@ private:
     QPixmap m_backgroundMiddleImage;    ///< Middle background image
     QPixmap m_backgroundTopImage;       ///< Top background image
     QPoint m_mousePosition;             ///< Current mouse press position
-    QPointF m_coordinates;              ///< User current coordinates
+    GeoCoordinate m_coordinates;        ///< User current coordinates
     QString m_address;                  ///< Address from where the new message was sent
     QString m_backupMessage;            ///< Backup of users message
     QString m_expandedMessageText;      ///< Expanded message text
     QString m_messageText;              ///< User's message
     QString m_time;                     ///< Time when the new message was sent
     QString m_userName;                 ///< User's name
-    ImageButton *m_findButton;          ///< User find button   
+    ImageButton *m_findButton;          ///< User find button
     UpdateLocationDialog *m_updateLocation; ///< Update location dialog
 };