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