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;
* @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
+class UserInfoPanel : public QWidget
{
Q_OBJECT
*/
void userDataReceived(User *user);
+/*******************************************************************************
+ * SIGNALS
+ ******************************************************************************/
signals:
/**
+ * @brief Signal for finding user.
+ *
+ * @param coordinates user geo 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.
*
*/
*/
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