2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Kaj Wallin - kaj.wallin@ixonos.com
7 Situare is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 version 2 as published by the Free Software Foundation.
11 Situare is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Situare; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
27 #include "../user/user.h"
28 #include "sidepanel.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 SidePanel
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 QPointF &coordinates);
73 * @brief Signal that informs that user's message/location failed to update on Situare server
74 * This signal is originally sended from SituareService with name error
75 * Signal is renamed on MainWindow
77 * @param error Error code
79 void messageSendingFailed(const int error);
82 * @brief Signal that used to inform user that his message/location update tp Situare server
84 * This signal is originally sended from UserInfo
85 * @param message message for notification
86 * @param modal true if modal notification otherwice false
88 void notificateUpdateFailing(const QString &message, bool modal);
91 * @brief Signal for refreshing user data.
94 void refreshUserData();
97 * @brief Signal for requesting reverseGeo from SituareEngine
100 void requestReverseGeo();
103 * @brief Signals, when address data is ready
105 * @param address Street address
107 void reverseGeoReady(const QString &address);
110 * @brief Signal Signal for requestLocationUpdate from SituareEngine via MainWindow class
112 * @param status Status message
113 * @param publish Publish on Facebook
115 void statusUpdate(const QString &status, const bool &publish);
118 * @brief Signals when updateLocation request finished successfully
121 void updateWasSuccessful();
122 /*******************************************************************************
124 ******************************************************************************/
126 UserInfo *m_userInfo; ///< Instance of the user info view
129 #endif // USERPANEL_H