homescreenapp/hsutils/inc/hsmenudialogfactory.h
changeset 77 4b195f3bea29
child 90 3ac3aaebaee5
equal deleted inserted replaced
61:2b1b11a301d2 77:4b195f3bea29
       
     1 /*
       
     2 * Copyright (c) 2010 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:  Menu Dialog
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef HSMENUDIALOG_H
       
    20 #define HSMENUDIALOG_H
       
    21 
       
    22 #include <QScopedPointer>
       
    23 
       
    24 class QStringList;
       
    25 class HbAction;
       
    26 class HbMessageBox;
       
    27 
       
    28 #include "hsutils_global.h"
       
    29 
       
    30 class HSUTILS_EXPORT HsMenuDialogFactory
       
    31 {
       
    32 public:
       
    33     enum Options { OkCancel, Close };
       
    34 
       
    35     virtual HbMessageBox *create(const QString &text,
       
    36                                  Options options = OkCancel) const;
       
    37     virtual ~HsMenuDialogFactory();
       
    38 private:
       
    39     void setUpActions(HbMessageBox *box,
       
    40                       const QStringList &translationIdentifiers) const;
       
    41 };
       
    42 
       
    43 #endif
       
    44