securitysettings/eapqtdialogs/inc/eapfastpacfilepwquerydialog.h
changeset 34 ad1f037f1ac2
child 36 c98682f98478
equal deleted inserted replaced
31:372d2d6c5cf9 34:ad1f037f1ac2
       
     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: Fast Pac File Password Query Dialog
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 3 %
       
    20 */
       
    21 
       
    22 #ifndef __EAPFASTPACFILEPWQUERYDIALOG_H__
       
    23 #define __EAPFASTPACFILEPWQUERYDIALOG_H__
       
    24 
       
    25 
       
    26 #include <HbInputDialog>
       
    27 #include <hbdevicedialoginterface.h>
       
    28 
       
    29 
       
    30 class HbTranslator;
       
    31 
       
    32 class EapFastPacFilePwQueryDialog: public HbInputDialog, public HbDeviceDialogInterface
       
    33     {
       
    34     Q_OBJECT
       
    35 
       
    36     public:
       
    37         /* Constructor */
       
    38         EapFastPacFilePwQueryDialog(const QVariantMap &parameters);
       
    39         /* Destructor */
       
    40         ~EapFastPacFilePwQueryDialog();
       
    41         
       
    42         /* Function creates the actual dialog widget */
       
    43         void createDialog( const QVariantMap &parameters );
       
    44         
       
    45         /* Device dialog parameters to be set while dialog is displayed.
       
    46          * Not supported.
       
    47          */
       
    48         bool setDeviceDialogParameters(const QVariantMap &parameters);
       
    49         
       
    50         /* Not supported */
       
    51         int deviceDialogError() const;
       
    52         
       
    53         /* Closes the device dialog */
       
    54         void closeDeviceDialog(bool byClient);
       
    55         
       
    56         /* Returns a pointer to this dialog widget */
       
    57         HbPopup *deviceDialogWidget() const;
       
    58                 
       
    59     signals:
       
    60         /* Signal is emitted when the dialog is closed */
       
    61         void deviceDialogClosed();
       
    62     
       
    63         /* Data is emitted in QVariantMap when Ok Action button is selected */
       
    64         void deviceDialogData(QVariantMap data);
       
    65         
       
    66     private slots:
       
    67         /* Slot that is mapped to the Ok Action button's triggered signal */
       
    68         void okPressed();
       
    69                 
       
    70         /* Slot that is mapped to the Cancel Action button's triggered signal */
       
    71         void cancelPressed();
       
    72         
       
    73         /* Slot that is mapped to the signal that indicates to closing of the dialog */
       
    74         void closingDialog();
       
    75                
       
    76     private:
       
    77                 
       
    78         Q_DISABLE_COPY(EapFastPacFilePwQueryDialog)
       
    79    
       
    80     private:
       
    81         /* Pointer to the line edit object */
       
    82         HbLineEdit *mEdit;
       
    83                                 
       
    84         /* Pointer to the HbTranslator */
       
    85         QScopedPointer<HbTranslator> mTranslator;
       
    86                 
       
    87         /* Tells whether close has already been called for the dialog */
       
    88         bool mClose;
       
    89         
       
    90         /* Tells whether Ok Action has already been pressed */
       
    91         bool mOkActionPressed;
       
    92     };
       
    93 
       
    94 
       
    95 #endif // __EAPFASTPACFILEPWQUERYDIALOG_H__
       
    96 
       
    97