24 // --------------------------------------------------------- |
24 // --------------------------------------------------------- |
25 // CEapAuthObserver* CEapAuthObserver::NewL |
25 // CEapAuthObserver* CEapAuthObserver::NewL |
26 // --------------------------------------------------------- |
26 // --------------------------------------------------------- |
27 // |
27 // |
28 CEapAuthObserver* CEapAuthObserver::NewL( |
28 CEapAuthObserver* CEapAuthObserver::NewL( |
29 CEapAuthNotifier* aNotifier, |
29 CEapAuthNotifier* aNotifier ) |
30 CEapAuthNotifier::EEapNotifierType aType ) |
|
31 { |
30 { |
32 RDebug::Print(_L("CEapAuthObserver::NewL") ); |
31 RDebug::Print(_L("CEapAuthObserver::NewL") ); |
33 |
32 |
34 CEapAuthObserver* self = new ( ELeave ) CEapAuthObserver( aNotifier, aType ); |
33 CEapAuthObserver* self = new ( ELeave ) CEapAuthObserver( aNotifier ); |
35 return self; |
34 return self; |
36 } |
35 } |
37 |
36 |
38 // --------------------------------------------------------- |
37 // --------------------------------------------------------- |
39 // CEapAuthObserver::CEapAuthObserver |
38 // CEapAuthObserver::CEapAuthObserver |
40 // --------------------------------------------------------- |
39 // --------------------------------------------------------- |
41 // |
40 // |
42 CEapAuthObserver::CEapAuthObserver( |
41 CEapAuthObserver::CEapAuthObserver( |
43 CEapAuthNotifier* aNotifier, |
42 CEapAuthNotifier* aNotifier ): |
44 CEapAuthNotifier::EEapNotifierType aType ): |
43 iNotifier( aNotifier ) |
45 iNotifier( aNotifier ), |
|
46 iType(aType) |
|
47 { |
44 { |
48 RDebug::Print(_L("CEapAuthObserver::CEapAuthObserver") ); |
45 RDebug::Print(_L("CEapAuthObserver::CEapAuthObserver") ); |
49 } |
46 } |
50 |
47 |
51 // --------------------------------------------------------- |
48 // --------------------------------------------------------- |
56 { |
53 { |
57 RDebug::Print(_L("CEapAuthObserver::~CEapAuthObserver") ); |
54 RDebug::Print(_L("CEapAuthObserver::~CEapAuthObserver") ); |
58 } |
55 } |
59 |
56 |
60 // --------------------------------------------------------- |
57 // --------------------------------------------------------- |
|
58 // CEapAuthObserver::SetNotifierType |
|
59 // --------------------------------------------------------- |
|
60 // |
|
61 void CEapAuthObserver::SetNotifierType( CEapAuthNotifier::EEapNotifierType aType ) |
|
62 { |
|
63 RDebug::Print(_L("CEapAuthObserver::setNotifierType") ); |
|
64 |
|
65 iType = aType; |
|
66 } |
|
67 |
|
68 // --------------------------------------------------------- |
61 // void CEapAuthObserver::DataReceived |
69 // void CEapAuthObserver::DataReceived |
62 // --------------------------------------------------------- |
70 // --------------------------------------------------------- |
63 // |
71 // |
64 void CEapAuthObserver::DataReceived( CHbSymbianVariantMap& aData ) |
72 void CEapAuthObserver::DataReceived( CHbSymbianVariantMap& aData ) |
65 { |
73 { |
88 else if ( iType == CEapAuthNotifier::EEapNotifierTypeMsChapV2UsernamePasswordDialog ) |
96 else if ( iType == CEapAuthNotifier::EEapNotifierTypeMsChapV2UsernamePasswordDialog ) |
89 { |
97 { |
90 RDebug::Print(_L("CEapAuthObserver::DataReceived: EEapNotifierTypeMsChapV2UsernamePasswordDialog") ); |
98 RDebug::Print(_L("CEapAuthObserver::DataReceived: EEapNotifierTypeMsChapV2UsernamePasswordDialog") ); |
91 UsernamePasswordDlgDataReceived(aData); |
99 UsernamePasswordDlgDataReceived(aData); |
92 } |
100 } |
93 else if ( iType == CEapAuthNotifier::EEapNotifierTypeGTCSecurIDPasscodeQueryUidDialog ) |
101 else if ( iType == CEapAuthNotifier::EEapNotifierTypeGTCQueryDialog ) |
94 { |
102 { |
95 RDebug::Print(_L("CEapAuthObserver::DataReceived: EEapNotifierTypeGTCSecurIDPasscodeQueryUidDialog") ); |
103 RDebug::Print(_L("CEapAuthObserver::DataReceived: EEapNotifierTypeGTCQueryDialog") ); |
96 PwdQueryDataReceived(aData); |
104 PwdQueryDataReceived(aData); |
97 } |
105 } |
98 else if ( iType == CEapAuthNotifier::EEapNotifierTypePapChallengeReplyQueryDialog ) |
106 else if ( iType == CEapAuthNotifier::EEapNotifierTypePapAuthQueryDialog ) |
99 { |
107 { |
100 RDebug::Print(_L("CEapAuthObserver::DataReceived: EEapNotifierTypePapChallengeReplyQueryDialog") ); |
108 RDebug::Print(_L("CEapAuthObserver::DataReceived: EEapNotifierTypePapAuthQueryDialog") ); |
101 PwdQueryDataReceived(aData); |
109 PwdQueryDataReceived(aData); |
102 } |
110 } |
103 else if ( iType == CEapAuthNotifier::EEapNotifierTypeFastPacStorePwQueryDialog ) |
111 else if ( iType == CEapAuthNotifier::EEapNotifierTypeFastPacStorePwQueryDialog ) |
104 { |
112 { |
105 RDebug::Print(_L("CEapAuthObserver::DataReceived: EEapNotifierTypeFastPacStorePwQueryDialog") ); |
113 RDebug::Print(_L("CEapAuthObserver::DataReceived: EEapNotifierTypeFastPacStorePwQueryDialog") ); |