Added coordinates to sendMessage.
[situare] / src / engine / engine.h
index 90e0300..2cd2341 100644 (file)
@@ -31,6 +31,7 @@
 #include <QPair>
 
 #include "coordinates/geocoordinate.h"
+#include "situareservice/situareservice.h"
 
 class QTimer;
 
@@ -142,8 +143,9 @@ public slots:
     /**
     * @brief Slot to intercept signal from successful location update
     *
+    * @param successfulMethod which method was successful
     */
-    void updateWasSuccessful();
+    void updateWasSuccessful(SituareService::SuccessfulMethod successfulMethod);
 
     /**
     * @brief Slot to intercept signal when new user data is available.
@@ -272,6 +274,16 @@ private slots:
     void routeToCursor();
 
     /**
+    * @brief Requests to send a message to a person.
+    *
+    * Adds coordinates to to message if selected.
+    * @param receiverId Facebook user ID
+    * @param message message text
+    * @param addCoordinates true if coordinates should be added, false otherwise
+    */
+    void requestSendMessage(const QString &receiverId, const QString &message, bool addCoordinates);
+
+    /**
     * @brief Slot for setting auto centering state.
     *
     * Calls gps to send last known position