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