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 class UpdateLocation;
\r
34 #include "texteditautoresizer.h"
\r
37 class QDialogButtonBox;
\r
46 * @brief Update Location UI
\r
48 * UI for update location functionality.
\r
50 class UpdateLocationDialog : public QDialog
\r
56 * @brief Default constructor
\r
58 * Is deleted automatically when closed.
\r
60 * @param controller Controller for location update
\r
63 UpdateLocationDialog(UpdateLocation *controller, QWidget *parent = 0);
\r
70 ~UpdateLocationDialog();
\r
72 /*******************************************************************************
\r
73 * MEMBER FUNCTIONS AND SLOTS
\r
74 ******************************************************************************/
\r
77 * @brief Used to set the street address to location label
\r
79 * @param address Street address, result from SituareService's reverseGeo
\r
81 void setAddress(const QString &address);
\r
85 * @brief Used to connect send button
\r
90 * @brief Used to get changes in messagetext
\r
95 * @brief Used to clear default messagetext
\r
97 void textSelectionChanged();
\r
99 /*******************************************************************************
\r
101 ******************************************************************************/
\r
103 QCheckBox *m_checkBox; ///< Pointer to CheckBox
\r
104 QLabel *m_charCountLabel; ///< Pointer to character counter label
\r
105 QLabel *m_locationLabel; ///< Pointer to locationLabel
\r
106 QTextEdit *m_textEdit; ///< Pointer to TextEdit
\r
108 UpdateLocation *m_controller; ///< Controller for location update dialog
\r
111 #endif // UPDATELOCATIONDIALOG_H
\r