class SettingsDialog;
class SituareService;
class TabbedPanel;
-class UpdateLocationDialog;
+class UpdateLocation;
class User;
class UserInfoPanel;
class ZoomButtonPanel;
public slots:
/**
- * @brief Saves status message and Facebook publish setting
- *
- * @param status message that user sends. Message is stored to m_backupMessage data member
- * @param publish setting that determines whether the user status message is published on
- * Facebook. This value is stored to m_backupFacebookPublishPolicity data member.
- */
- void backupUpdateLocationDialogData(const QString &status, bool publish);
-
- /**
* @brief Builds information box with message.
*
* @param message Information message
void buildInformationBox(const QString &message, bool modal=false);
/**
- * @brief Clears backups of message and publish on Facebook setting
- */
- void clearUpdateLocationDialogData();
-
- /**
* @brief Hides and deletes login dialog
*/
void destroyLoginDialog();
void queueDialog(QDialog *dialog);
/**
- * @brief reads Unsend message from settings at startup
- */
- void restoreUnsendMessage();
-
- /**
* @brief Shows queued error information box
*
*/
*/
void toggleFullScreen();
- /**
- * @brief Slot function to get indication when dialog is finished
- */
- void updateLocationDialogFinished(int reason);
-
/*******************************************************************************
* SIGNALS
******************************************************************************/
void locationItemClicked(const GeoCoordinate &swBound, const GeoCoordinate &neBound);
/**
+ * @brief Send location update
+ *
+ * @param status Status message
+ * @param publish Publish on Facebook?
+ */
+ void locationUpdate(const QString &status, bool publish);
+
+ /**
* @brief Signals when Login/Logout action is pressed
*
*/
void searchHistoryItemClicked(const QString &searchString);
/**
- * @brief Signal for requestLocationUpdate from SituareEngine
- *
- * @param status Status message
- * @param publish Publish on Facebook
- */
- void statusUpdate(const QString &status, const bool &publish);
-
- /**
* @brief Dragging mode triggered.
*/
void draggingModeTriggered();
void viewZoomFinished();
/**
+ * @brief Signals when updateLocation request finished successfully
+ */
+ void updateWasSuccessful();
+
+ /**
* @brief Signal for use location ready.
*
* @param user User object
* DATA MEMBERS
******************************************************************************/
private:
- bool m_backupFacebookPublishPolicity; ///< Backup of publish on Facebook checkbox value
bool m_errorShown; ///< Indicates if error dialog/note is shown
bool m_loggedIn; ///< Indicates login state
bool m_refresh; ///< Indicates when webpage is refreshed
QMessageBox *m_automaticUpdateLocationDialog; ///< Automatic update location dialog
- QString m_backupMessage; ///< Backup of users message
-
FriendListPanel *m_friendsListPanel; ///< Instance of friends list panel
FullScreenButton *m_fullScreenButton; ///< Instance of the fullscreen toggle button
IndicatorButtonPanel *m_indicatorButtonPanel; ///< Instance of direction indicator button
MapView *m_mapView; ///< Instance of the map view
RoutingPanel *m_routingPanel; ///< Instance of routing panel
TabbedPanel *m_tabbedPanel; ///< Widget for tabbed panels
- UpdateLocationDialog *m_updateLocation; ///< Update location dialog
+ UpdateLocation *m_updateLocationController; ///< Controller for update location dialog
UserInfoPanel *m_userInfoPanel; ///< Instance of the user information panel
ZoomButtonPanel *m_zoomButtonPanel; ///< Instance of zoom button panel
};