filemanager/src/filemanager/src/components/fmdialog.h
branchRCL_3
changeset 20 491b3ed49290
equal deleted inserted replaced
19:95243422089a 20:491b3ed49290
       
     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 base dialog class
       
    17  */
       
    18 
       
    19 #ifndef FMDIALOG_H
       
    20 #define FMDIALOG_H
       
    21 
       
    22 #include <QEventLoop>
       
    23 #include <hbaction.h>
       
    24 #include <hbdialog.h>
       
    25 #include <hbmenu.h>
       
    26 class FmDialog : public HbDialog
       
    27 {
       
    28 Q_OBJECT
       
    29 public:
       
    30     explicit FmDialog( QGraphicsItem *parent = 0 );
       
    31     HbAction *exec();
       
    32     
       
    33     HbAction *primaryAction() const;
       
    34     void setPrimaryAction( HbAction *action );
       
    35 
       
    36     HbAction *secondaryAction() const;
       
    37     void setSecondaryAction( HbAction *action );
       
    38 public slots:
       
    39     void dialogClosed(HbAction *action);
       
    40 private:
       
    41     QEventLoop mEventLoop;
       
    42     HbAction   *mRetAction; 
       
    43 };
       
    44 
       
    45 #endif