ui/commandhandlers/commoncommandhandlers/inc/glxcommondialogs.h
changeset 29 2c833fc9e98f
parent 26 c499df2dbb33
child 58 383b67fbdb11
equal deleted inserted replaced
26:c499df2dbb33 29:2c833fc9e98f
    17 
    17 
    18 #ifndef GLXCOMMONDIALOGS_H
    18 #ifndef GLXCOMMONDIALOGS_H
    19 #define GLXCOMMONDIALOGS_H
    19 #define GLXCOMMONDIALOGS_H
    20 
    20 
    21 #include <QObject>
    21 #include <QObject>
       
    22 #include <hbinputdialog.h>
    22 
    23 
    23 #include <hbinputdialog.h>
    24 class QEventLoop;
    24 
    25 
    25 class GlxTextInputDialog : public QObject
    26 class GlxTextInputDialog : public QObject
    26 {
    27 {
    27 	Q_OBJECT    
    28 	Q_OBJECT    
    28 public:
    29 public:
    30     ~GlxTextInputDialog();
    31     ~GlxTextInputDialog();
    31     QString getText(const QString &label,const QString &text = QString(),bool *ok = 0);
    32     QString getText(const QString &label,const QString &text = QString(),bool *ok = 0);
    32 
    33 
    33 public slots:
    34 public slots:
    34     void textChanged(const QString &text);
    35     void textChanged(const QString &text);
       
    36     void dialogClosed(HbAction *action);
    35 
    37 
    36 private:
    38 private:
    37     HbInputDialog* mDialog;
    39     HbInputDialog* mDialog;
       
    40     QEventLoop *mEventLoop;
       
    41     bool mResult;
    38 };
    42 };
    39 
    43 
    40 #endif // GLXCOMMONDIALOGS_H
    44 #endif // GLXCOMMONDIALOGS_H