securitysettings/eapqtdialogs/inc/eapmschapv2oldpwddialog.h
changeset 42 53085837e73a
parent 39 fe6b6762fccd
equal deleted inserted replaced
39:fe6b6762fccd 42:53085837e73a
    14 * Description: EAP-MSCHAPv2 Old Password Input Dialog
    14 * Description: EAP-MSCHAPv2 Old Password Input Dialog
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 3 %
    19 * %version: 4 %
    20 */
    20 */
    21 
    21 
    22 #ifndef __EAPMSCHAPV2OLDPWDDIALOG_H__
    22 #ifndef __EAPMSCHAPV2OLDPWDDIALOG_H__
    23 #define __EAPMSCHAPV2OLDPWDDIALOG_H__
    23 #define __EAPMSCHAPV2OLDPWDDIALOG_H__
    24 
    24 
       
    25 // System includes
    25 #include <HbInputDialog>
    26 #include <HbInputDialog>
    26 #include <hbdevicedialoginterface.h>
    27 #include <hbdevicedialoginterface.h>
    27 
    28 
       
    29 // User includes
       
    30 
       
    31 // Forward declarations
    28 class HbTranslator;
    32 class HbTranslator;
    29 class EapQtValidator;
    33 class EapQtValidator;
       
    34 
       
    35 // External data types
       
    36 
       
    37 // Constants
       
    38 
       
    39 /*!
       
    40    @addtogroup group_eap_mschapv2_old_pwd_dialog
       
    41    @{
       
    42  */
       
    43 
       
    44 // Class declaration
    30 
    45 
    31 class EapMschapv2OldPwdDialog: public HbInputDialog, public HbDeviceDialogInterface
    46 class EapMschapv2OldPwdDialog: public HbInputDialog, public HbDeviceDialogInterface
    32     {
    47     {
    33     Q_OBJECT
    48     Q_OBJECT
    34 
    49 
    42         /* Function creates the actual dialog widget */
    57         /* Function creates the actual dialog widget */
    43         void createDialog( const QVariantMap &parameters );
    58         void createDialog( const QVariantMap &parameters );
    44         
    59         
    45         /* Device dialog parameters to be set while dialog is displayed.
    60         /* Device dialog parameters to be set while dialog is displayed.
    46          * Not supported.
    61          * Not supported.
       
    62          * (from HbDeviceDialogInterface)
    47          */
    63          */
    48         bool setDeviceDialogParameters(const QVariantMap &parameters);
    64         bool setDeviceDialogParameters(const QVariantMap &parameters);
    49         
    65         
    50         /* Not supported */
    66         /* Not supported. (from HbDeviceDialogInterface) */
    51         int deviceDialogError() const;
    67         int deviceDialogError() const;
    52         
    68         
    53         /* Closes the device dialog */
    69         /* Closes the device dialog. (from HbDeviceDialogInterface) */
    54         void closeDeviceDialog(bool byClient);
    70         void closeDeviceDialog(bool byClient);
    55         
    71         
    56         /* Returns a pointer to this dialog widget */
    72         /* Returns a pointer to this dialog widget. 
       
    73            (from HbDeviceDialogInterface) */
    57         HbPopup *deviceDialogWidget() const;
    74         HbPopup *deviceDialogWidget() const;
    58                 
    75                 
    59     signals:
    76     signals:
    60         /* Signal is emitted when the dialog is closed */
    77         /* Signal is emitted when the dialog is closed */
    61         void deviceDialogClosed();
    78         void deviceDialogClosed();
    77          
    94          
    78         bool validate() const;
    95         bool validate() const;
    79         
    96         
    80         Q_DISABLE_COPY(EapMschapv2OldPwdDialog)
    97         Q_DISABLE_COPY(EapMschapv2OldPwdDialog)
    81     
    98     
    82     private:
    99     private: // data
    83         /* Pointer to the line edit object */
   100         // NOT OWNED
       
   101         //! Pointer to the line edit object
    84         HbLineEdit *mEdit;
   102         HbLineEdit *mEdit;
    85                 
   103         
    86         /* Pointer to the password validator object */
   104         // OWNED             
       
   105         //! Pointer to the password validator object
    87         QScopedPointer<EapQtValidator> mPwdValidator;
   106         QScopedPointer<EapQtValidator> mPwdValidator;
    88                 
   107                 
    89         /* Pointer to the HbTranslator */
   108         //! Pointer to the HbTranslator
    90         QScopedPointer<HbTranslator> mTranslator;
   109         QScopedPointer<HbTranslator> mTranslator;
    91         
   110         
    92         /* Tells whether Ok Action has already been pressed */
   111         //! Tells whether Ok Action has already been pressed
    93         bool mOkActionPressed;
   112         bool mOkActionPressed;
    94         
   113         
    95         /* Tells whether close has already been called for the dialog */
   114         //! Tells whether close has already been called for the dialog
    96         bool mClose;
   115         bool mClose;
    97     };
   116     };
    98 
   117 
       
   118 /*! @} */
    99 
   119 
   100 #endif // __EAPMSCHAPV2OLDPWDDIALOG_H__
   120 #endif // __EAPMSCHAPV2OLDPWDDIALOG_H__
   101 
   121