filemanager/src/filemanager/src/components/fmmessagebox.h
branchRCL_3
changeset 39 65326cf895ed
parent 38 491b3ed49290
child 42 f5c50b8af68c
equal deleted inserted replaced
38:491b3ed49290 39:65326cf895ed
     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  * 
       
    15  * Description:
       
    16  *     The header file of filemanager messagebox
       
    17  */
       
    18 
       
    19 #ifndef FMMESSAGEBOX_H
       
    20 #define FMMESSAGEBOX_H
       
    21 
       
    22 #include <QEventLoop>
       
    23 #include <hbmessagebox.h>
       
    24 #include <hbaction.h>
       
    25 
       
    26 class FmMessageBox : public QObject
       
    27 {
       
    28 Q_OBJECT
       
    29 public:
       
    30     FmMessageBox()
       
    31     {
       
    32     }
       
    33     ~FmMessageBox()
       
    34     {
       
    35     }
       
    36     void information( const QString &informationText,
       
    37         HbMessageBox::StandardButtons buttons );
       
    38 
       
    39     bool question( const QString &questionText,
       
    40         HbMessageBox::StandardButtons buttons );
       
    41     
       
    42 public slots:
       
    43     void dialogClosed(HbAction *action);
       
    44 private:
       
    45     QEventLoop mEventLoop;
       
    46     bool mRet;
       
    47 };
       
    48 
       
    49 #endif