00001 /* 00002 Situare - A location system for Facebook 00003 Copyright (C) 2010 Ixonos Plc. Authors: 00004 00005 Kaj Wallin - kaj.wallin@ixonos.com 00006 Katri Kaikkonen - katri.kaikkonen@ixonos.com 00007 Pekka Nissinen - pekka.nissinen@ixonos.com 00008 00009 Situare is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU General Public License 00011 version 2 as published by the Free Software Foundation. 00012 00013 Situare is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with Situare; if not, write to the Free Software 00020 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 00021 USA. 00022 */ 00023 00024 #ifndef USERPANEL_H 00025 #define USERPANEL_H 00026 00027 #include "panelbase.h" 00028 #include "user/user.h" 00029 00030 class UserInfo; 00031 00039 class UserInfoPanel : public PanelBase 00040 { 00041 Q_OBJECT 00042 00043 public: 00049 UserInfoPanel(QWidget *parent = 0); 00050 00051 /******************************************************************************* 00052 * MEMBER FUNCTIONS AND SLOTS 00053 ******************************************************************************/ 00054 public slots: 00060 void userDataReceived(User *user); 00061 00062 /******************************************************************************* 00063 * SIGNALS 00064 ******************************************************************************/ 00065 signals: 00071 void findUser(const GeoCoordinate &coordinates); 00072 00076 void collapse(); 00077 00086 void notificateUpdateFailing(const QString &message, bool modal); 00087 00091 void refreshUserData(); 00092 00096 void requestReverseGeo(); 00097 00103 void reverseGeoReady(const QString &address); 00104 00111 void statusUpdate(const QString &status, const bool &publish); 00112 00116 void clearUpdateLocationDialogData(); 00117 00118 /******************************************************************************* 00119 * DATA MEMBERS 00120 ******************************************************************************/ 00121 private: 00122 UserInfo *m_userInfo; 00123 }; 00124 #endif // USERPANEL_H