connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifInc/WepWpaQueryDlg.h
changeset 1 40cb640ef159
parent 0 5a93021fdf25
child 14 7958d42f9d1a
equal deleted inserted replaced
0:5a93021fdf25 1:40cb640ef159
    20 #define __CWEPWPAQUERYDLG_H__
    20 #define __CWEPWPAQUERYDLG_H__
    21 
    21 
    22 
    22 
    23 // INCLUDES
    23 // INCLUDES
    24 #include <AknQueryDialog.h>
    24 #include <AknQueryDialog.h>
       
    25 #include "ExpiryTimerCallback.h"
    25 
    26 
    26 // FORWARD DECLARATIONS
    27 // FORWARD DECLARATIONS
    27 class CConnectionDialogsNotifBase;
    28 class CConnectionDialogsNotifBase;
       
    29 class CExpiryTimer;
    28 
    30 
    29 enum TDialogType
    31 enum TDialogType
    30     {
    32     {
    31     EDialogWep     =0,
    33     EDialogWep     =0,
    32     EDialogWpa     =1,
    34     EDialogWpa     =1,
    36 // CLASS DECLARATIONS
    38 // CLASS DECLARATIONS
    37 
    39 
    38 /**
    40 /**
    39  * Class implements a query dialog.
    41  * Class implements a query dialog.
    40  */
    42  */
    41 NONSHARABLE_CLASS( CWepWpaQueryDlg ) : public CAknTextQueryDialog
    43 NONSHARABLE_CLASS( CWepWpaQueryDlg ) : public CAknTextQueryDialog, public MExpiryTimerCallback
    42     {
    44     {
    43 public:
    45 public:
    44     /**
    46     /**
    45     * Constructor the COfflineWlanNoteDlg class
    47     * Constructor the COfflineWlanNoteDlg class
    46     * @param aDataText returned password
    48     * @param aDataText returned password
    63     /**
    65     /**
    64     * Destructor
    66     * Destructor
    65     */
    67     */
    66     virtual ~CWepWpaQueryDlg();
    68     virtual ~CWepWpaQueryDlg();
    67     
    69     
    68     TBool NeedToDismissQueryL(const TKeyEvent& aKeyEvent);    
    70     /**
       
    71     * from CCoeControl
       
    72     * @param aKeyEvent Event to handled.
       
    73     * @param aType Type of the key event. 
       
    74     * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). 
       
    75     */
       
    76     TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, 
       
    77                                  TEventCode aType);
       
    78     
       
    79     /**
       
    80      * Dialog expiration timeout callback
       
    81      */
       
    82     void HandleTimedOut();
    69 
    83 
    70 private:
    84 private:
    71 
    85 
    72     /**
    86     /**
    73     * Draws an info note
    87     * Draws an info note
    84 
    98 
    85 private:
    99 private:
    86     CConnectionDialogsNotifBase* iNotif;  // Pointer to the Notifier
   100     CConnectionDialogsNotifBase* iNotif;  // Pointer to the Notifier
    87     TInt   iDialogType;
   101     TInt   iDialogType;
    88     TBool& iHex;
   102     TBool& iHex;
       
   103     // Pointer for dialog expiration timer
       
   104     CExpiryTimer* iExpiryTimer;
    89     };
   105     };
    90 
   106 
    91 
   107 
    92 #endif  // __CWEPWPAQUERYDLG_H__
   108 #endif  // __CWEPWPAQUERYDLG_H__
    93 
   109