class MapScale;
class MapScene;
class MapView;
+class Route;
+class RoutingPanel;
+class TabbedPanel;
class SettingsDialog;
class SceneCoordinate;
class SituareService;
class User;
class UserInfoPanel;
class ZoomButtonPanel;
+class Location;
/**
* @brief Main Window Class
void buildPanels();
/**
+ * @brief Build routing panel and connect slots
+ */
+ void buildRoutingPanel();
+
+ /**
* @brief Build user info panel and connect slots
*/
void buildUserInfoPanel();
void cancelLoginProcess();
/**
+ * @brief Signal for centering to coordinates.
+ *
+ * @param coordinates geo coordinates to center to.
+ */
+ void centerToCoordinates(const GeoCoordinate &coordinates);
+
+ /**
* @brief View should be centered to new location
*
* @param coordinate Scene coordinates of the new center point
void fetchUsernameFromSettings();
/**
- * @brief Signal for finding user.
- *
- * @param coordinates user geo coordinates
- */
- void findUser(const GeoCoordinate &coordinates);
-
- /**
* @brief Signals when friend's profile image is ready
*
* @param user Friend
void gpsTriggered(bool enabled);
/**
- * @brief Signal for finding friend.
- *
- * @param coordinates friend's geo coordinates
- */
- void findFriend(const GeoCoordinate &coordinates);
-
- /**
* @brief Signal for friend location ready.
*
* @param friendsList
void friendsLocationsReady(QList<User *> &friendsList);
/**
- * @brief Signal is emitted when location item is clicked.
+ * @brief Emited when location request is parsed and is ready for further processing
+ *
+ * @param result List of Location items
+ */
+ void locationDataParsed(const QList<Location> &result);
+
+ /**
+ * @brief Signal is emitted when location item is clicked on map.
*
* @param userIDs list of friends user IDs in the group
*/
void locationItemClicked(const QList<QString> &userIDs);
/**
+ * @brief Signal is emitted when location item is clicked in list.
+ *
+ * @param swBound south-west bound in GeoCoorinate
+ * @param neBound north-east bound in GeoCoordinate
+ */
+ void locationItemClicked(const GeoCoordinate &swBound, const GeoCoordinate &neBound);
+
+ /**
* @brief Signals when Login/Logout action is pressed
*
*/
void reverseGeoReady(const QString &address);
/**
+ * @brief Emited when route is parsed and is ready for further processing
+ *
+ * @param route Route item containing parsed route details
+ */
+ void routeParsed(Route &route);
+
+ /**
+ * @brief Signal for routing to geo coordinates.
+ *
+ * @param coordinates destination geo coordinates
+ */
+ void routeTo(const GeoCoordinate &coordinates);
+
+ /**
* @brief Signal to save username to settings
*
* @param username Username
MapScale *m_mapScale; ///< Instance of the map scale
MapView *m_mapView; ///< Instance of the map view
NetworkCookieJar *m_cookieJar; ///< Placeholder for QNetworkCookies
+ RoutingPanel *m_routingPanel; ///< Instance of routing panel
TabbedPanel *m_tabbedPanel; ///< Widget for tabbed panels
UserInfoPanel *m_userInfoPanel; ///< Instance of the user information panel
ZoomButtonPanel *m_zoomButtonPanel; ///< Instance of zoom button panel