#include <QWidget>
#include "coordinates/geocoordinate.h"
-#include "updatelocation/updatelocationdialog.h"
+
+class QLabel;
class ImageButton;
class TagsDialog;
void setProfileImage(const QPixmap &image);
/**
- * @brief Sets the user tags
- *
- * @param tags list of tags
- */
- void setProfileImage(const QStringList &tags);
-
- /**
* @brief Sets the user tags
*
* @param tags list of tags
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 Clears backups of message and publish on Facebook setting
- */
- void clearUpdateLocationDialogData();
-
- /**
* @brief Sets the message text
*
* @param text Reference to user message
private:
/**
- * @brief reads Unsend message from settings at startup
- */
- void restoreUnsendMessage();
-
- /**
* @brief Set shortened or full-length text to labels.
*
* @param expanded true if full-length text is set, false otherwise
void findButtonClicked();
/**
- * @brief Slot function to forward messageUpdate launch signal
- */
- void messageUpdate();
-
- /**
* @brief Slot to handle changes in tags dialog.
*/
void tagsDialogFinished(int reason);
- /**
- * @brief Slot function to get indication when dialog is finished
- */
- void updateLocationDialogFinished(int reason);
-
/******************************************************************************
* SIGNALS
******************************************************************************/
void findUser(const GeoCoordinate &coordinates);
/**
- * @brief Signal that used to inform user that his message/location update tp Situare server
- * was failed.
- * This signal is originally sended from UserInfo
- * @param message message for notification
- * @param modal true if modal notification otherwice false
- */
- void notificateUpdateFailing(const QString &message, bool modal);
-
- /**
- * @brief Signal for requesting reverseGeo from SituareEngine
- */
- void requestReverseGeo();
-
- /**
* @brief Signal for removing tags.
*
* @param tags tags to add
void removeTags(const QStringList &tags);
/**
- * @brief Signals, when address data is ready
- *
- * @param address Street address
- */
- void reverseGeoReady(const QString &address);
-
- /**
* @brief Signals, when item selection changed
*
* @param address Street address
*/
void itemSelectionChanged(bool selected);
- /**
- * @brief Signal for requestLocationUpdate from SituareEngine via MainWindow class
- *
- * @param status Status message
- * @param publish Publish on Facebook
- */
- void statusUpdate(const QString &status, const bool &publish);
-
/******************************************************************************
* DATA MEMBERS
******************************************************************************/
private:
- bool m_backupFacebookPublishPolicity; ///< Backup of publish on Facebook checkbox value
bool m_expanded; ///< Item expanded state
QLabel *m_locationLabel; ///< Location label
QPoint m_mousePosition; ///< Current mouse press position
- QString m_backupMessage; ///< Backup of users message
- QString m_expandedMessageText; ///< Expanded message text
QString m_messageText; ///< User's message
QString m_userName; ///< User's name
GeoCoordinate m_coordinates; ///< User current coordinates
ImageButton *m_avatar; ///< User find button
TagsDialog *m_tagsDialog; ///< Tags dialog
- UpdateLocationDialog *m_updateLocation; ///< Update location dialog
};
#endif // USERINFO_H