eapol/eapol_framework/eapol_symbian/am/eap_notifier/inc/eap_auth_observer.h
changeset 33 938269283a16
child 39 fe6b6762fccd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/eapol/eapol_framework/eapol_symbian/am/eap_notifier/inc/eap_auth_observer.h	Fri Jun 11 13:40:22 2010 +0300
@@ -0,0 +1,86 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Dialog Observer implementation
+*
+*/
+
+#ifndef __EAPAUTHOBSERVER_H__
+#define __EAPAUTHOBSERVER_H__
+
+class CEapAuthNotifier;
+
+NONSHARABLE_CLASS ( CEapAuthObserver ) : public CBase, public MHbDeviceDialogObserver
+    {
+    public:
+        /**
+        * Two-phased constructor.
+        */
+        static CEapAuthObserver* NewL( 
+                CEapAuthNotifier* aNotifier,
+                CEapAuthNotifier::EEapNotifierType aType );
+        
+        /**
+        * Destructor
+        */
+        ~CEapAuthObserver();
+        
+        /**
+        * Handles the user input received from the dialog
+        * @param    aData CHbSymbianVariantMap&
+        */
+        void DataReceived(CHbSymbianVariantMap& aData);
+        
+        /**
+        * Handles the closing of the dialog
+        * @param    aCompletionCode TInt
+        */
+        void DeviceDialogClosed( TInt /*aCompletionCode*/ );
+    private:
+        /**
+        * Constructor
+        */
+        CEapAuthObserver( 
+                CEapAuthNotifier* aNotifier,
+                CEapAuthNotifier::EEapNotifierType aType );
+        
+        /**
+        * Handles the user name password input received from the dialog
+        * @param    aData CHbSymbianVariantMap&
+        */
+        void UsernamePasswordDlgDataReceived( CHbSymbianVariantMap& aData );
+        
+        
+        /**
+        * Handles the password query user input received from the dialog
+        * @param    aData CHbSymbianVariantMap&
+        */
+        void PwdQueryDataReceived( CHbSymbianVariantMap& aData );
+        
+        /**
+        * Handles the old password query user input received from the dialog
+        * @param    aData CHbSymbianVariantMap&
+        */
+        void OldPwdQueryDataReceived( CHbSymbianVariantMap& aData );
+        
+    private:
+        /* Pointer to the object that triggered the dialog opening,
+         * needed to update the information about the user input.
+         */
+        CEapAuthNotifier* iNotifier;
+        
+        /* Current EAP notifier type to serve */
+        CEapAuthNotifier::EEapNotifierType iType;
+    };
+
+#endif /* __EAPAUTHOBSERVER_H__ */