2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Katri Kaikkonen - katri.kaikkonen@ixonos.com
6 Henri Lampela - henri.lampela@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,
23 #ifndef UPDATELOCATIONDIALOG_H
24 #define UPDATELOCATIONDIALOG_H
28 #include <QAbstractKineticScroller>
29 #endif // Q_WS_MAEMO_5
30 #include "texteditautoresizer.h"
33 class QDialogButtonBox;
42 * @brief Update Location UI
44 * UI for update location functionality.
46 * @class UpdateLocationDialog
48 class UpdateLocationDialog : public QDialog
54 * @brief Default constructor
56 * @param userMessage update location dialog message
57 * @param publishOnFacebook update location dialog Facebook publish policity
60 UpdateLocationDialog(const QString &userMessage = "", bool publishOnFacebook = false,
63 /*******************************************************************************
64 * MEMBER FUNCTIONS AND SLOTS
65 ******************************************************************************/
70 * @brief Public slot, which is used to set the street address to location label
72 * @param address Street address, result from SituareService's reverseGeo
74 void setAddress(const QString &address);
79 * @brief Private slot, which is used to connect send button
84 /*******************************************************************************
86 ******************************************************************************/
90 * @brief Signal Signal for requestLocationUpdate from SituareEngine via MainWindow class
92 * @param status Status message
93 * @param publish Publish on Facebook
95 void statusUpdate(const QString &status, const bool &publish);
97 /*******************************************************************************
99 ******************************************************************************/
102 QLabel *m_locationLabel; ///< Pointer to locationLabel
103 QCheckBox *m_checkBox; ///< Pointer to CheckBox
104 QTextEdit *m_textEdit; ///< Pointer to TextEdit
107 #endif // UPDATELOCATIONDIALOG_H