The first "kind of" working version of the new panels
[situare] / src / ui / userinfopanel.h
index a539a10..84f7440 100644 (file)
@@ -3,6 +3,7 @@
     Copyright (C) 2010  Ixonos Plc. Authors:
 
         Kaj Wallin - kaj.wallin@ixonos.com
+        Katri Kaikkonen - katri.kaikkonen@ixonos.com
 
     Situare is free software; you can redistribute it and/or
     modify it under the terms of the GNU General Public License
     USA.
  */
 
-
 #ifndef USERPANEL_H
 #define USERPANEL_H
 
 #include <QtGui>
+
 #include "../user/user.h"
-#include "sidepanel.h"
 
 class UserInfo;
 
@@ -35,7 +35,7 @@ class UserInfo;
 * @author Kaj Wallin - kaj.wallin (at) ixonos.com
 * @class UserInfoPanel
 */
-class UserInfoPanel : public SidePanel
+class UserInfoPanel : public QWidget
 {
     Q_OBJECT
 
@@ -67,7 +67,16 @@ signals:
     *
     * @param coordinates user geo coordinates
     */
-    void findUser(const QPointF &coordinates);
+    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 refreshing user data.
@@ -95,8 +104,12 @@ signals:
     * @param publish Publish on Facebook
     */
     void statusUpdate(const QString &status, const bool &publish);
-    void messageUpdatedToSituare();
 
+    /**
+    * @brief Signals when updateLocationDialog's data must be cleared
+    *
+    */
+    void clearUpdateLocationDialogData();
 /*******************************************************************************
  * DATA MEMBERS
  ******************************************************************************/