class SettingsDialog;
class SituareService;
class TabbedPanel;
+class UpdateLocationDialog;
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 settingsDialogAccepted();
/**
+ * @brief Show update location dialog
+ */
+ void showUpdateLocationDialog();
+
+ /**
* @brief Ignore SSL error from the reply
*/
void sslErrors(QNetworkReply *reply, const QList<QSslError> &errors);
*/
void toggleFullScreen();
+ /**
+ * @brief Slot function to get indication when dialog is finished
+ */
+ void updateLocationDialogFinished(int reason);
+
/*******************************************************************************
* SIGNALS
******************************************************************************/
void statusUpdate(const QString &status, const bool &publish);
/**
- * @brief Signals when updateLocationDialog's data must be cleared
- *
- */
- void clearUpdateLocationDialogData();
-
- /**
* @brief Dragging mode triggered.
*/
void draggingModeTriggered();
* 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
UserInfoPanel *m_userInfoPanel; ///< Instance of the user information panel
ZoomButtonPanel *m_zoomButtonPanel; ///< Instance of zoom button panel
};