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