securitysettings/eapqtdialogs/inc/eapfastprovnotsuccessnotedialog.h
changeset 27 9660a5eb236f
parent 26 9abfd4f00d37
child 28 0e43dd645395
equal deleted inserted replaced
26:9abfd4f00d37 27:9660a5eb236f
     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: 
       
    15 *
       
    16 */
       
    17 #ifndef __EAPFASTPROVNOTSUCCESSNOTEDIALOG_H__
       
    18 #define __EAPFASTPROVNOTSUCCESSNOTEDIALOG_H__
       
    19 
       
    20 #include <HbAction>
       
    21 #include <HbMessageBox>
       
    22 #include <HbTranslator>
       
    23 #include <hbdevicedialoginterface.h>
       
    24 
       
    25 
       
    26 class EapFastProvNotSuccessNoteDialog: public HbMessageBox, public HbDeviceDialogInterface
       
    27     {
       
    28     Q_OBJECT
       
    29 
       
    30     public:
       
    31         /* Constructor */
       
    32         EapFastProvNotSuccessNoteDialog(const QVariantMap &parameters);
       
    33         /* Destructor */
       
    34         ~EapFastProvNotSuccessNoteDialog();
       
    35         
       
    36         /* Function creates the actual dialog widget */
       
    37         void createDialog(const QVariantMap &parameters );
       
    38         
       
    39         /* Device dialog parameters to be set while dialog is displayed.
       
    40          * Not supported.
       
    41          */
       
    42         bool setDeviceDialogParameters(const QVariantMap &parameters);
       
    43         
       
    44         /* Not supported */
       
    45         int deviceDialogError() const;
       
    46         
       
    47         /* Closes the device dialog */
       
    48         void closeDeviceDialog(bool byClient);
       
    49         
       
    50         /* Returns a pointer to this dialog widget */
       
    51         HbPopup *deviceDialogWidget() const;
       
    52                 
       
    53     signals:
       
    54         /* Signal is emitted when the dialog is closed */
       
    55         void deviceDialogClosed();
       
    56         
       
    57         /* Data is emitted in QVariantMap when Ok Action button is selected */
       
    58         void deviceDialogData(QVariantMap data);
       
    59             
       
    60     private slots:
       
    61         /* Slot that is mapped to the Ok Action button's triggered signal */
       
    62         void okPressed();
       
    63         
       
    64         /* Slot that is mapped to the signal that indicates to closing of the dialog */
       
    65         void closingDialog();
       
    66                
       
    67     private:
       
    68                 
       
    69         Q_DISABLE_COPY(EapFastProvNotSuccessNoteDialog)
       
    70    
       
    71     private:
       
    72         /* Pointer to the Ok action button */
       
    73         HbAction* mActionOk;
       
    74         
       
    75         /* Pointer to the HbTranslator */
       
    76         QScopedPointer<HbTranslator> mTranslator;
       
    77                 
       
    78         /* Tells whether Ok Action has already been pressed */
       
    79         bool mOkActionPressed;
       
    80     };
       
    81 
       
    82 #endif // __EAPFASTPROVNOTSUCCESSNOTEDIALOG_H__