void loggedIn(bool logged);
/**
- * @brief Gets the login state (logged in/logged out)
- *
- * @return bool Login state
- */
- bool loginState();
-
- /**
* @brief Reads automatic location update settings.
*/
void readAutomaticLocationUpdateSettings();
*/
void showEnableAutomaticUpdateLocationDialog(const QString &text);
- /**
- * @brief Gets the username from member variable for saving purposes
- *
- * @return QString Username
- */
- const QString username();
-
public slots:
/**
* @brief Builds information box with message.
void destroyLoginDialog();
/**
- * @brief Slot for failed login
- */
- void loginFailed();
-
- /**
* @brief Public slot, which open settings dialog
*/
void openSettingsDialog();
void showContactDialog(const QString &guid);
/**
- * @brief Public slot to intercept signal when old cerdentials are invalid or credentials
- * doesn't exist yet
- */
- void startLoginProcess();
-
- /**
* @brief Toggle progress indicator.
*
* @param state true if progress indicator should be shown, false otherwise
void toggleProgressIndicator(bool state);
/**
- * @brief Shows / hides Situare related UI items
+ * @brief Shows / hides Situare related UI items based on login state
*
+ * @param loggedIn Is the user currently logged in
*/
- void updateItemVisibility();
+ void updateItemVisibility(bool loggedIn);
private:
/**
void autoCenteringTriggered(bool enabled);
/**
- * @brief Signal that indicates when user has cancelled login process
- *
- */
- void cancelLoginProcess();
-
- /**
* @brief Signal for centering to coordinates.
*
* @param coordinates geo coordinates to center to.
void error(const int context, const int error);
/**
- * @brief Signal for requesting username from settings
- *
- */
- void fetchUsernameFromSettings();
-
- /**
* @brief Signals when friend's profile image is ready
*
* @param user Friend
QMessageBox *m_automaticUpdateLocationDialog; ///< Automatic update location dialog
- QString m_email; ///< Placeholder for email
- QString m_password; ///< Placeholder for password
-
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