class QTimer;
-#ifdef Q_WS_MAEMO_5
class Application;
-#endif
+class ContactManager;
class FacebookAuthentication;
class FacebookCredentials;
class GeocodingService;
class MapEngine;
class MCE;
class NetworkAccessManager;
+class Route;
class RoutingService;
class SituareService;
class User;
void error(const int context, const int error);
/**
- * @brief Slot to intercept signal when username is fetched from settings
- *
- */
- void fetchUsernameFromSettings();
-
- /**
* @brief Slot to intercept signal when location search is issued
*
* @param location QString location
*/
void locationSearch(QString location);
+ void login();
+
/**
* @brief Slot to intercept signal when Login/Logout action is pressed
*
*/
void imageReady(User *user);
+ void loggedIn();
+
/**
* @brief Requests automatic update.
*
void requestAutomaticUpdateIfMoved(GeoCoordinate position);
/**
+ * @brief Route is parsed and is ready for further processing.
+ *
+ * @param route Route item containing parsed route details
+ */
+ void routeParsed(Route &route);
+
+ /**
+ * @brief Routes to geo coordinates.
+ *
+ * Uses map center coordinates as start point.
+ * @param endPointCoordinates end point geo coordinates
+ */
+ void routeTo(const GeoCoordinate &endPointCoordinates);
+
+ /**
+ * @brief Route to current cursor position
+ */
+ void routeToCursor();
+
+ /**
* @brief Slot for setting auto centering state.
*
* Calls gps to send last known position
void setPowerSaving(bool enabled);
/**
+ * @brief Shows contact dialog.
+ *
+ * Calls MainWindow showContactDialog with contact guid defined by contact's Facebook ID.
+ * @param facebookId contact's facebookId
+ */
+ void showContactDialog(const QString &facebookId);
+
+ /**
* @brief Automatic update interval timer timeout.
*
* Requests update location if user has moved.
*
* Does set power saving state.
*
- * @param mainWindowIsTopmost True if MainWindow is the topmost one
+ * @param isMainWindow True if MainWindow is the topmost one
*/
void topmostWindowChanged(bool isMainWindow);
bool m_automaticUpdateRequest; ///< Flag for automatic update request
bool m_userMoved; ///< Flag for user move
-#ifdef Q_WS_MAEMO_5
- Application *m_app; ///< Pointer to Application
-#endif
+ QTimer *m_automaticUpdateIntervalTimer; ///< Automatic update interval timer
+
+ ContactManager *m_contactManager; ///< Instance of contact manager
FacebookAuthentication *m_facebookAuthenticator; ///< Instance for facebook authenticator
GeocodingService *m_geocodingService; ///< Instance of the geocoding service
+ GeoCoordinate m_lastUpdatedGPSPosition; ///< Last updated GPS position
GPSPosition *m_gps; ///< Instance of the gps position
MainWindow *m_ui; ///< Instance of the MainWindow UI
MapEngine *m_mapEngine; ///< MapEngine
RoutingService *m_routingService; ///< Instance of the routing service
SituareService *m_situareService; ///< Instance of the situare server communication service
MCE *m_mce; ///< Instance of the MCE
-
- QTimer *m_automaticUpdateIntervalTimer; ///< Automatic update interval timer
- GeoCoordinate m_lastUpdatedGPSPosition; ///< Last updated GPS position
-
};
#endif // ENGINE_H