00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef UPDATELOCATIONDIALOG_H
00024 #define UPDATELOCATIONDIALOG_H
00025
00026 #include <QDialog>
00027 #ifdef Q_WS_MAEMO_5
00028 #include <QAbstractKineticScroller>
00029 #endif // Q_WS_MAEMO_5
00030 #include "texteditautoresizer.h"
00031
00032 class QCheckBox;
00033 class QDialogButtonBox;
00034 class QGroupBox;
00035 class QLabel;
00036 class QLineEdit;
00037 class QPushButton;
00038 class QScrollArea;
00039 class QTextEdit;
00040
00048 class UpdateLocationDialog : public QDialog
00049 {
00050 Q_OBJECT
00051
00052 public:
00060 UpdateLocationDialog(const QString &userMessage = "", bool publishOnFacebook = false,
00061 QWidget *parent = 0);
00062
00063 ~UpdateLocationDialog();
00064
00065
00066
00067
00068
00069 public slots:
00070
00076 void setAddress(const QString &address);
00077
00078 private slots:
00079
00084 void sendUpdate();
00085
00090 void textChanged();
00091
00096 void textSelectionChanged();
00097
00098
00099
00100
00101
00102 signals:
00103
00110 void statusUpdate(const QString &status, const bool &publish);
00111
00112
00113
00114
00115
00116 private:
00117
00118 QCheckBox *m_checkBox;
00119 QLabel *m_locationLabel;
00120 QLabel *m_charCountLabel;
00121 QTextEdit *m_textEdit;
00122 };
00123
00124 #endif // UPDATELOCATIONDIALOG_H