eapol/eapol_framework/eapol_symbian/am/eap_notifier/inc/eap_auth_observer.h
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
child 55 9c2aa05919d9
equal deleted inserted replaced
45:bad0cc58d154 46: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: Dialog Observer implementation
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 11 %
       
    20 */
       
    21 
       
    22 #ifndef __EAPAUTHOBSERVER_H__
       
    23 #define __EAPAUTHOBSERVER_H__
       
    24 
       
    25 // System includes
       
    26 
       
    27 // User includes
       
    28 
       
    29 // Forward declarations
       
    30 class CEapAuthNotifier;
       
    31 
       
    32 // External data types
       
    33 
       
    34 //Global function prototypes
       
    35 
       
    36 //Constants
       
    37 
       
    38 /**
       
    39  * EAP Observer
       
    40  */
       
    41 NONSHARABLE_CLASS ( CEapAuthObserver ) : public CBase, public MHbDeviceDialogObserver
       
    42     {
       
    43     public:
       
    44         /**
       
    45         * Two-phased constructor.
       
    46         */
       
    47         static CEapAuthObserver* NewL( 
       
    48                 CEapAuthNotifier* aNotifier
       
    49                 );
       
    50                 
       
    51         /**
       
    52         * Destructor
       
    53         */
       
    54         ~CEapAuthObserver();
       
    55         
       
    56         /**
       
    57         * Handles the setting of the notifier (dialog) type
       
    58         *
       
    59         * @param    aType EEapNotifierType
       
    60         * return -
       
    61         */
       
    62         void SetNotifierType( CEapAuthNotifier::EEapNotifierType aType );
       
    63             
       
    64         /**
       
    65         * Handles the user input received from the dialog
       
    66         *
       
    67         * @param    aData CHbSymbianVariantMap&
       
    68         * return -
       
    69         */
       
    70         void DataReceived( CHbSymbianVariantMap& aData );
       
    71         
       
    72         /**
       
    73         * Handles the closing of the dialog
       
    74         *
       
    75         * @param    aCompletionCode TInt
       
    76         * return -
       
    77         */
       
    78         void DeviceDialogClosed( TInt aCompletionCode );
       
    79     private:
       
    80         /**
       
    81         * Constructor
       
    82         */
       
    83         CEapAuthObserver( CEapAuthNotifier* aNotifier );
       
    84         
       
    85         /**
       
    86         * Handles the user name password input received from the dialog
       
    87         *
       
    88         * @param    aData CHbSymbianVariantMap&
       
    89         * return -
       
    90         */
       
    91         void UsernamePasswordDlgDataReceived( CHbSymbianVariantMap& aData );
       
    92           
       
    93         /**
       
    94         * Handles the password query user input received from the dialog
       
    95         *
       
    96         * @param    aData CHbSymbianVariantMap&
       
    97         * return -
       
    98         */
       
    99         void PwdQueryDataReceived( CHbSymbianVariantMap& aData );
       
   100         
       
   101         /**
       
   102         * Handles the old password query user input received from the dialog
       
   103         *
       
   104         * @param    aData CHbSymbianVariantMap&
       
   105         * return -
       
   106         */
       
   107         void OldPwdQueryDataReceived( CHbSymbianVariantMap& aData );
       
   108         
       
   109     private: // Data
       
   110         /** 
       
   111          * Pointer to the object that triggered the dialog opening,
       
   112          * needed to update the information about the user input.
       
   113          */
       
   114         CEapAuthNotifier* iNotifier;
       
   115         
       
   116         /** 
       
   117          * Current EAP notifier type to serve 
       
   118          */
       
   119         CEapAuthNotifier::EEapNotifierType iType;
       
   120     };
       
   121 
       
   122 #endif /* __EAPAUTHOBSERVER_H__ */