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