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
8 Situare is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 version 2 as published by the Free Software Foundation.
12 Situare is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with Situare; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
28 #include "../user/user.h"
33 * @brief Class for sliding user information panel
35 * @author Kaj Wallin - kaj.wallin (at) ixonos.com
36 * @class UserInfoPanel
38 class UserInfoPanel : public QWidget
44 * @brief Default constructor
48 UserInfoPanel(QWidget *parent = 0);
50 /*******************************************************************************
51 * MEMBER FUNCTIONS AND SLOTS
52 ******************************************************************************/
55 * @brief Slot to capture returning user data from situareService
59 void userDataReceived(User *user);
61 /*******************************************************************************
63 ******************************************************************************/
66 * @brief Signal for finding user.
68 * @param coordinates user geo coordinates
70 void findUser(const GeoCoordinate &coordinates);
73 * @brief Signal that used to inform user that his message/location update tp Situare server
75 * This signal is originally sended from UserInfo
76 * @param message message for notification
77 * @param modal true if modal notification otherwice false
79 void notificateUpdateFailing(const QString &message, bool modal);
82 * @brief Signal for refreshing user data.
85 void refreshUserData();
88 * @brief Signal for requesting reverseGeo from SituareEngine
91 void requestReverseGeo();
94 * @brief Signals, when address data is ready
96 * @param address Street address
98 void reverseGeoReady(const QString &address);
101 * @brief Signal Signal for requestLocationUpdate from SituareEngine via MainWindow class
103 * @param status Status message
104 * @param publish Publish on Facebook
106 void statusUpdate(const QString &status, const bool &publish);
109 * @brief Signals when updateLocationDialog's data must be cleared
112 void clearUpdateLocationDialogData();
113 /*******************************************************************************
115 ******************************************************************************/
117 UserInfo *m_userInfo; ///< Instance of the user info view
120 #endif // USERPANEL_H