securitysettings/eapqtdialogs/inc/eapmschapv2oldpwddialog.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: EAP-MSCHAPv2 Old Password Input Dialog
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 3 %
       
    20 */
       
    21 
       
    22 #ifndef __EAPMSCHAPV2OLDPWDDIALOG_H__
       
    23 #define __EAPMSCHAPV2OLDPWDDIALOG_H__
       
    24 
       
    25 #include <HbInputDialog>
       
    26 #include <hbdevicedialoginterface.h>
       
    27 
       
    28 class HbTranslator;
       
    29 class EapQtValidator;
       
    30 
       
    31 class EapMschapv2OldPwdDialog: public HbInputDialog, public HbDeviceDialogInterface
       
    32     {
       
    33     Q_OBJECT
       
    34 
       
    35     public:
       
    36         /* Constructor */
       
    37         EapMschapv2OldPwdDialog(const QVariantMap &parameters);
       
    38         
       
    39         /* Destructor */
       
    40         ~EapMschapv2OldPwdDialog();
       
    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         bool validate() const;
       
    79         
       
    80         Q_DISABLE_COPY(EapMschapv2OldPwdDialog)
       
    81     
       
    82     private:
       
    83         /* Pointer to the line edit object */
       
    84         HbLineEdit *mEdit;
       
    85                 
       
    86         /* Pointer to the password validator object */
       
    87         QScopedPointer<EapQtValidator> mPwdValidator;
       
    88                 
       
    89         /* Pointer to the HbTranslator */
       
    90         QScopedPointer<HbTranslator> mTranslator;
       
    91         
       
    92         /* Tells whether Ok Action has already been pressed */
       
    93         bool mOkActionPressed;
       
    94         
       
    95         /* Tells whether close has already been called for the dialog */
       
    96         bool mClose;
       
    97     };
       
    98 
       
    99 
       
   100 #endif // __EAPMSCHAPV2OLDPWDDIALOG_H__
       
   101