2 Situare - A location system for Facebook
\r
3 Copyright (C) 2010 Ixonos Plc. Authors:
\r
5 Katri Kaikkonen - katri.kaikkonen@ixonos.com
\r
6 Henri Lampela - henri.lampela@ixonos.com
\r
8 Situare is free software; you can redistribute it and/or
\r
9 modify it under the terms of the GNU General Public License
\r
10 version 2 as published by the Free Software Foundation.
\r
12 Situare is distributed in the hope that it will be useful,
\r
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
15 GNU General Public License for more details.
\r
17 You should have received a copy of the GNU General Public License
\r
18 along with Situare; if not, write to the Free Software
\r
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
\r
23 #ifndef UPDATELOCATIONDIALOG_H
\r
24 #define UPDATELOCATIONDIALOG_H
\r
29 #include <QAbstractKineticScroller>
\r
30 #endif // Q_WS_MAEMO_5
\r
32 #include "texteditautoresizer.h"
\r
35 class QDialogButtonBox;
\r
44 * @brief Update Location UI
\r
46 * UI for update location functionality.
\r
48 class UpdateLocationDialog : public QDialog
\r
54 * @brief Default constructor
\r
56 * @param userMessage update location dialog message
\r
57 * @param publishOnFacebook update location dialog Facebook publish policity
\r
60 UpdateLocationDialog(const QString &userMessage = "", bool publishOnFacebook = false,
\r
61 QWidget *parent = 0);
\r
63 ~UpdateLocationDialog();
\r
65 /*******************************************************************************
\r
66 * MEMBER FUNCTIONS AND SLOTS
\r
67 ******************************************************************************/
\r
70 * @brief Used to set the street address to location label
\r
72 * @param address Street address, result from SituareService's reverseGeo
\r
74 void setAddress(const QString &address);
\r
78 * @brief Used to connect send button
\r
84 * @brief Used to get changes in messagetext
\r
90 * @brief Used to clear default messagetext
\r
93 void textSelectionChanged();
\r
95 /*******************************************************************************
\r
97 ******************************************************************************/
\r
100 * @brief Routing signal for requestLocationUpdate to SituareEngine via MainWindow class
\r
102 * @param status Status message
\r
103 * @param publish Publish on Facebook
\r
105 void statusUpdate(const QString &status, const bool &publish);
\r
107 /*******************************************************************************
\r
109 ******************************************************************************/
\r
111 QCheckBox *m_checkBox; ///< Pointer to CheckBox
\r
112 QLabel *m_charCountLabel; ///< Pointer to character counter label
\r
113 QLabel *m_locationLabel; ///< Pointer to locationLabel
\r
114 QTextEdit *m_textEdit; ///< Pointer to TextEdit
\r
117 #endif // UPDATELOCATIONDIALOG_H
\r