securitysettings/eapqtdialogs/inc/eapquerydialog.h
changeset 36 c98682f98478
parent 34 ad1f037f1ac2
equal deleted inserted replaced
34:ad1f037f1ac2 36:c98682f98478
     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: EAP query Dialog
    14 * Description: EAP Challenge query Dialog
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19  * %version: 2 %
    19  * %version: 3 %
    20  */
    20  */
    21  
    21  
    22 #ifndef __EAPQUERYDIALOG_H__
    22 #ifndef __EAPQUERYDIALOG_H__
    23 #define __EAPQUERYDIALOG_H__
    23 #define __EAPQUERYDIALOG_H__
    24 
    24 
    25 
    25 // System includes
    26 #include <HbMessageBox>
    26 #include <HbMessageBox>
    27 #include <hbdevicedialoginterface.h>
    27 #include <hbdevicedialoginterface.h>
    28 
    28 
       
    29 // User includes
       
    30 
       
    31 // Forward declarations
    29 class HbTranslator;
    32 class HbTranslator;
    30 class EapQtValidator;
    33 class EapQtValidator;
       
    34 
       
    35 // External data types
       
    36 
       
    37 // Constants
       
    38 
       
    39 /*!
       
    40    @addtogroup group_query_dialog
       
    41    @{
       
    42  */
       
    43 
       
    44 // Class declaration
    31 
    45 
    32 class EapQueryDialog: public HbMessageBox, public HbDeviceDialogInterface
    46 class EapQueryDialog: public HbMessageBox, public HbDeviceDialogInterface
    33     {
    47     {
    34     Q_OBJECT
    48     Q_OBJECT
    35 
    49 
    41         
    55         
    42         /* Function creates the actual dialog widget */
    56         /* Function creates the actual dialog widget */
    43         void createDialog(const QVariantMap &parameters );
    57         void createDialog(const QVariantMap &parameters );
    44         
    58         
    45         /* Device dialog parameters to be set while dialog is displayed.
    59         /* Device dialog parameters to be set while dialog is displayed.
    46          * Not supported.
    60          * Not supported. (from HbDeviceDialogInterface)
    47          */
    61          */
    48         bool setDeviceDialogParameters(const QVariantMap &parameters);
    62         bool setDeviceDialogParameters(const QVariantMap &parameters);
    49         
    63         
    50         /* Not supported */
    64         /* Not supported. (from HbDeviceDialogInterface) */
    51         int deviceDialogError() const;
    65         int deviceDialogError() const;
    52         
    66         
    53         /* Closes the device dialog */
    67         /* Closes the device dialog. (from HbDeviceDialogInterface) */
    54         void closeDeviceDialog(bool byClient);
    68         void closeDeviceDialog(bool byClient);
    55         
    69         
    56         /* Returns a pointer to this dialog widget */
    70         /* Returns a pointer to this dialog widget.
       
    71            (from HbDeviceDialogInterface) */
    57         HbPopup *deviceDialogWidget() const;
    72         HbPopup *deviceDialogWidget() const;
    58                 
    73                 
    59     signals:
    74     signals:
    60         /* Signal is emitted when the dialog is closed */
    75         /* Signal is emitted when the dialog is closed */
    61         void deviceDialogClosed();
    76         void deviceDialogClosed();
    72                
    87                
    73     private:
    88     private:
    74                 
    89                 
    75         Q_DISABLE_COPY(EapQueryDialog)
    90         Q_DISABLE_COPY(EapQueryDialog)
    76    
    91    
    77     private:
    92     private: // data
       
    93         // NOT OWNED
    78         
    94         
    79         /* Pointer to the HbTranslator */
    95         // OWNED      
       
    96         //! Pointer to the HbTranslator
    80         QScopedPointer<HbTranslator> mTranslator;
    97         QScopedPointer<HbTranslator> mTranslator;
    81         
    98         
    82         /* Tells whether Ok Action has already been pressed */
    99         //! Tells whether Ok Action has already been pressed
    83         bool mOkActionPressed;
   100         bool mOkActionPressed;
    84     };
   101     };
       
   102     
       
   103 /*! @} */
    85 
   104 
    86 #endif // __EAPQUERYDIALOG_H__
   105 #endif // __EAPQUERYDIALOG_H__