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