securitysettings/eapqtdialogs/inc/eapfastpacstorepwquerydialog.h
branchRCL_3
changeset 19 c74b3d9f6b9e
parent 18 bad0cc58d154
equal deleted inserted replaced
18:bad0cc58d154 19:c74b3d9f6b9e
     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: EAP-FAST PAC Store Password Query Dialog
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 4 %
       
    20 */
       
    21 
       
    22 #ifndef __EAPFASTPACSTOREPWQUERYDIALOG_H__
       
    23 #define __EAPFASTPACSTOREPWQUERYDIALOG_H__
       
    24 
       
    25 // System includes
       
    26 #include <HbInputDialog>
       
    27 #include <hbdevicedialoginterface.h>
       
    28 
       
    29 // User includes
       
    30 
       
    31 // Forward declarations
       
    32 class HbTranslator;
       
    33 class EapQtValidator;
       
    34 
       
    35 // External data types
       
    36 
       
    37 // Constants
       
    38 
       
    39 /*!
       
    40    @addtogroup group_eap_fast_pac_store_pwd_query_dialog
       
    41    @{
       
    42  */
       
    43 
       
    44 // Class declaration
       
    45 
       
    46 class EapFastPacStorePwQueryDialog: public HbInputDialog, public HbDeviceDialogInterface
       
    47     {
       
    48     Q_OBJECT
       
    49 
       
    50     public:
       
    51         /* Constructor */
       
    52         EapFastPacStorePwQueryDialog(const QVariantMap &parameters);
       
    53         /* Destructor */
       
    54         ~EapFastPacStorePwQueryDialog();
       
    55         
       
    56         /* Function creates the actual dialog widget. */
       
    57         void createDialog();
       
    58         
       
    59         /* Device dialog parameters to be set while dialog is displayed.
       
    60          * Not supported. (from HbDeviceDialogInterface)
       
    61          */
       
    62         bool setDeviceDialogParameters(const QVariantMap &parameters);
       
    63         
       
    64         /* Not supported. (from HbDeviceDialogInterface) */
       
    65         int deviceDialogError() const;
       
    66         
       
    67         /* Closes the device dialog. (from HbDeviceDialogInterface)*/
       
    68         void closeDeviceDialog(bool byClient);
       
    69         
       
    70         /* Returns a pointer to this dialog widget.
       
    71            (from HbDeviceDialogInterface) */
       
    72         HbPopup *deviceDialogWidget() const;
       
    73                 
       
    74     signals:
       
    75         /* Signal is emitted when the dialog is closed */
       
    76         void deviceDialogClosed();
       
    77     
       
    78         /* Data is emitted in QVariantMap when Ok Action button is selected */
       
    79         void deviceDialogData(QVariantMap data);
       
    80         
       
    81     private slots:
       
    82         /* Slot that is mapped to the Ok Action button's triggered signal */
       
    83         void okPressed();
       
    84                 
       
    85         /* Slot that is mapped to the Cancel Action button's triggered signal */
       
    86         void cancelPressed();
       
    87         
       
    88         /* Slot that is mapped to the signal that indicates to closing of the dialog */
       
    89         void closingDialog();
       
    90                
       
    91     private:
       
    92         
       
    93         bool validate() const;
       
    94         
       
    95         Q_DISABLE_COPY(EapFastPacStorePwQueryDialog)
       
    96    
       
    97     private: // data
       
    98         // NOT OWNED
       
    99         //! Pointer to the line edit object
       
   100         HbLineEdit *mEdit;
       
   101                 
       
   102         // OWNED        
       
   103         //! Pointer to the password validator object
       
   104         QScopedPointer<EapQtValidator> mPwdValidator;
       
   105                 
       
   106         //! Pointer to the HbTranslator
       
   107         QScopedPointer<HbTranslator> mTranslator;
       
   108         
       
   109         //! Pointer to the error message HbTranslator
       
   110         QScopedPointer<HbTranslator> mErrMsgTranslator;
       
   111         
       
   112         //! Tells whether close has already been called for the dialog
       
   113         bool mClose;
       
   114         
       
   115     };
       
   116 
       
   117 /*! @} */
       
   118 
       
   119 #endif // __EAPFASTPACSTOREPWQUERYDIALOG_H__
       
   120