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