2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Kaj Wallin - kaj.wallin@ixonos.com
6 Katri Kaikkonen - katri.kaikkonen@ixonos.com
7 Pekka Nissinen - pekka.nissinen@ixonos.com
9 Situare is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License
11 version 2 as published by the Free Software Foundation.
13 Situare is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with Situare; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
27 #include "panelbase.h"
28 #include "user/user.h"
33 * @brief Class for sliding user information panel
35 * @author Kaj Wallin - kaj.wallin (at) ixonos.com
36 * @author Katri Kaikkonen - katri.kaikkonen (at) ixonos.com
37 * @author Pekka Nissinen - pekka.nissinen (at) ixonos.com
39 class UserInfoPanel : public PanelBase
45 * @brief Default constructor
49 UserInfoPanel(QWidget *parent = 0);
51 /*******************************************************************************
52 * MEMBER FUNCTIONS AND SLOTS
53 ******************************************************************************/
56 * @brief show / hide user information
58 * @param show true if userinfo should be shown
60 void showUserInfo(bool show);
63 * @brief Slot to capture returning user data from situareService
67 void userDataReceived(User *user);
69 /*******************************************************************************
71 ******************************************************************************/
74 * @brief Signal for collapse user info
79 * @brief Signal for finding user.
81 * @param coordinates user geo coordinates
83 void findUser(const GeoCoordinate &coordinates);
86 * @brief Signal for refreshing user data.
88 void refreshUserData();
91 * @brief Notify that update location message button was clicked
93 void updateLocationMessageButtonClicked();
95 /*******************************************************************************
97 ******************************************************************************/
99 UserInfo *m_userInfo; ///< Instance of the user info view
101 #endif // USERPANEL_H