ui/commandhandlers/commoncommandhandlers/inc/glxcommondialogs.h
branchRCL_3
changeset 59 8e5f6eea9c9f
equal deleted inserted replaced
57:ea65f74e6de4 59:8e5f6eea9c9f
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef GLXCOMMONDIALOGS_H
       
    19 #define GLXCOMMONDIALOGS_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <hbinputdialog.h>
       
    23 
       
    24 class QEventLoop;
       
    25 
       
    26 class GlxTextInputDialog : public QObject
       
    27 {
       
    28 	Q_OBJECT    
       
    29 public:
       
    30     GlxTextInputDialog(bool disableOkForEmptyText = true);
       
    31     ~GlxTextInputDialog();
       
    32     QString getText(const QString &label,const QString &text = QString(),bool *ok = 0);
       
    33 
       
    34 public slots:
       
    35     void textChanged(const QString &text);
       
    36     void dialogClosed(HbAction *action);
       
    37 
       
    38 private:
       
    39     HbInputDialog* mDialog;
       
    40     QEventLoop *mEventLoop;
       
    41     bool mResult;
       
    42     bool mDisableOkForEmptyText;
       
    43 };
       
    44 
       
    45 #endif // GLXCOMMONDIALOGS_H