26
|
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 |
#ifndef __EAPAUTHOBSERVER_H__
|
|
19 |
#define __EAPAUTHOBSERVER_H__
|
|
20 |
|
|
21 |
class CEapAuthNotifier;
|
|
22 |
|
|
23 |
NONSHARABLE_CLASS ( CEapAuthObserver ) : public CBase, public MHbDeviceDialogObserver
|
|
24 |
{
|
|
25 |
public:
|
|
26 |
/**
|
|
27 |
* Two-phased constructor.
|
|
28 |
*/
|
|
29 |
static CEapAuthObserver* NewL(
|
|
30 |
CEapAuthNotifier* aNotifier,
|
|
31 |
CEapAuthNotifier::EEapNotifierType aType );
|
|
32 |
|
|
33 |
/**
|
|
34 |
* Destructor
|
|
35 |
*/
|
|
36 |
~CEapAuthObserver();
|
|
37 |
|
|
38 |
/**
|
|
39 |
* Handles the user input received from the dialog
|
|
40 |
* @param aData CHbSymbianVariantMap&
|
|
41 |
*/
|
|
42 |
void DataReceived(CHbSymbianVariantMap& aData);
|
|
43 |
|
|
44 |
/**
|
|
45 |
* Handles the closing of the dialog
|
|
46 |
* @param aCompletionCode TInt
|
|
47 |
*/
|
|
48 |
void DeviceDialogClosed( TInt /*aCompletionCode*/ );
|
|
49 |
private:
|
|
50 |
/**
|
|
51 |
* Constructor
|
|
52 |
*/
|
|
53 |
CEapAuthObserver(
|
|
54 |
CEapAuthNotifier* aNotifier,
|
|
55 |
CEapAuthNotifier::EEapNotifierType aType );
|
|
56 |
|
|
57 |
/**
|
|
58 |
* Handles the user name password input received from the dialog
|
|
59 |
* @param aData CHbSymbianVariantMap&
|
|
60 |
*/
|
|
61 |
void UsernamePasswordDlgDataReceived( CHbSymbianVariantMap& aData );
|
|
62 |
|
|
63 |
|
|
64 |
/**
|
|
65 |
* Handles the password query user input received from the dialog
|
|
66 |
* @param aData CHbSymbianVariantMap&
|
|
67 |
*/
|
|
68 |
void PwdQueryDataReceived( CHbSymbianVariantMap& aData );
|
|
69 |
|
|
70 |
/**
|
|
71 |
* Handles the old password query user input received from the dialog
|
|
72 |
* @param aData CHbSymbianVariantMap&
|
|
73 |
*/
|
|
74 |
void OldPwdQueryDataReceived( CHbSymbianVariantMap& aData );
|
|
75 |
|
|
76 |
private:
|
|
77 |
|
|
78 |
/* Current EAP notifier type to serve */
|
|
79 |
CEapAuthNotifier::EEapNotifierType iType;
|
|
80 |
|
|
81 |
/* Pointer to the object that triggered the dialog opening,
|
|
82 |
* needed to update the information about the user input.
|
|
83 |
*/
|
|
84 |
CEapAuthNotifier* iNotifier;
|
|
85 |
};
|
|
86 |
|
|
87 |
#endif /* __EAPAUTHOBSERVER_H__ */
|