Added new scalable panels, deleted obsolite bitmaps and made some minor cosmetic...
[situare] / src / ui / userinfopanel.h
index 21d1e2c..ebebdf7 100644 (file)
     USA.
  */
 
-
 #ifndef USERPANEL_H
 #define USERPANEL_H
 
 #include <QtGui>
+
 #include "../user/user.h"
 #include "sidepanel.h"
 
@@ -33,7 +33,7 @@ class UserInfo;
 * @brief Class for sliding user information panel
 *
 * @author Kaj Wallin - kaj.wallin (at) ixonos.com
-* @class UserInfoPanel userpanel.h "ui/userpanel.h"
+* @class UserInfoPanel
 */
 class UserInfoPanel : public SidePanel
 {
@@ -58,8 +58,36 @@ public slots:
     */
     void userDataReceived(User *user);
 
+/*******************************************************************************
+ * SIGNALS
+ ******************************************************************************/
 signals:
     /**
+    * @brief Signal for finding user.
+    *
+    * @param coordinates user geo coordinates
+    */
+    void findUser(const QPointF &coordinates);
+
+    /**
+    * @brief Signal that informs that user's message/location failed to update on Situare server
+    *        This signal is originally sended from SituareService with name error
+    *        Signal is renamed on MainWindow
+    *
+    * @param error Error code
+    */
+    void messageSendingFailed(const int error);
+
+    /**
+    * @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 refreshing user data.
     *
     */
@@ -86,10 +114,16 @@ signals:
     */
     void statusUpdate(const QString &status, const bool &publish);
 
+    /**
+    * @brief Signals when updateLocationDialog's data must be cleared
+    *
+    */
+    void clearUpdateLocationDialogData();
 /*******************************************************************************
  * DATA MEMBERS
  ******************************************************************************/
 private:
     UserInfo *m_userInfo; ///< Instance of the user info view
+
 };
 #endif // USERPANEL_H