Changed fetchPeopleWithSimilarInterest to send request to Situare server instead...
[situare] / src / situareservice / situareservice.h
index 350884d..90d22ad 100644 (file)
@@ -59,7 +59,8 @@ private:
                        RequestReverseGeo,
                        RequestGetMessages,
                        RequestRemoveMessage,
-                       RequestSendMessage};
+                       RequestSendMessage,
+                       RequestGetPeopleWithSimilarInterest};
 
 public:
 
@@ -91,12 +92,10 @@ public:
     /**
     * @brief Retrieves people with similart interest (same tags).
     *
-    * People is searched from area defined by south-west and north-east bounds.
-    * @param southWest south-west coordinates of bounds
-    * @param northEast north-east coordinates of bounds
+    * People is searched from area defined by maximum distance
+    * @param maximumDistance maximum distance to people
     */
-    void fetchPeopleWithSimilarInterest(const GeoCoordinate &southWestCoordinates,
-                                        const GeoCoordinate &northEastCoordinates);
+    void fetchPeopleWithSimilarInterest(const qreal distance);
 
     /**
     * @brief Retrieves location user and friends information from Situare server
@@ -247,9 +246,9 @@ private:
     /**
     * @brief Parses interesting people data from JSON string
     *
-    * @param jsonReply JSON string
+    * @param interestingPeopleData interesting people data QVariant tree
     */
-    void parseInterestingPeopleData(const QByteArray &jsonReply);
+    void parseInterestingPeopleData(const QVariant &interestingPeopleData);
 
     /**
     * @brief Parses messages data from JSON string