homescreenapp/hsutils/inc/hsmessageboxwrapper.h
changeset 63 52b0f64eeb51
child 69 87476091b3f5
equal deleted inserted replaced
62:341166945d65 63:52b0f64eeb51
       
     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 HSMESSAGEBOXWRAPPER_H
       
    19 #define HSMESSAGEBOXWRAPPER_H
       
    20 
       
    21 #include <HbWidget>
       
    22 
       
    23 #include "hsutils_global.h"
       
    24 
       
    25 #include "hstest_global.h"
       
    26 HOMESCREEN_TEST_CLASS(t_hsUtils)
       
    27 
       
    28 class HbAction;
       
    29 struct HsMessageBoxWrapperImpl;
       
    30 
       
    31 class HSUTILS_EXPORT HsMessageBoxWrapper : public QObject
       
    32 {
       
    33     Q_OBJECT
       
    34 
       
    35 public:
       
    36     HsMessageBoxWrapper(QObject *parent=0);
       
    37     ~HsMessageBoxWrapper();
       
    38 
       
    39     void setHeader(const QString &header);
       
    40     void setQueryText(const QString &queryText);
       
    41 
       
    42 signals:
       
    43     void accepted();
       
    44     void rejected();
       
    45 public slots:
       
    46     void show();
       
    47 
       
    48 private:
       
    49     Q_DISABLE_COPY(HsMessageBoxWrapper)
       
    50 
       
    51 private slots:
       
    52     void onDialogClosed(int action);
       
    53  
       
    54 private:
       
    55     HsMessageBoxWrapperImpl *mImpl;
       
    56 
       
    57     HOMESCREEN_TEST_FRIEND_CLASS(t_hsUtils)
       
    58 };
       
    59 
       
    60 #endif // HSPAGEINDICATOR_H