|
1 /* |
|
2 * Copyright (c) 2001-2006 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 the License "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: EAP and WLAN authentication protocols. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _EAPPROTECTEDSETUPINTERFACE_H_ |
|
20 #define _EAPPROTECTEDSETUPINTERFACE_H_ |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include "eap_tools.h" |
|
25 |
|
26 #include <etelmm.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class eap_am_type_protected_setup_symbian_c; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 /** |
|
33 * Class (active object) that handles the communications with the 3G SIM. |
|
34 */ |
|
35 class CEapProtectedSetupInterface |
|
36 : public CActive |
|
37 { |
|
38 public: |
|
39 |
|
40 // For differentiating the query type. |
|
41 enum TQueryType |
|
42 { |
|
43 EQueryNone, |
|
44 EQueryDeviceParams |
|
45 }; |
|
46 |
|
47 /** |
|
48 * Initialisation function. |
|
49 * @param aTools Tools class pointer. |
|
50 * @param aParent Pointer to the parent class. |
|
51 */ |
|
52 static CEapProtectedSetupInterface* NewL( |
|
53 abs_eap_am_tools_c* const aTools, |
|
54 eap_am_type_protected_setup_symbian_c* const aParent); |
|
55 |
|
56 /** |
|
57 * Destructor |
|
58 */ |
|
59 virtual ~CEapProtectedSetupInterface(); |
|
60 |
|
61 /** |
|
62 * This function queries the device parameters. |
|
63 * After the request has been completed complete_protetced_setup_device_params_L is called in the parent. |
|
64 */ |
|
65 void QueryDeviceParametersL(); |
|
66 |
|
67 protected: |
|
68 |
|
69 CEapProtectedSetupInterface(abs_eap_am_tools_c* const aTools, eap_am_type_protected_setup_symbian_c* const aParent); |
|
70 |
|
71 void ConstructL(); |
|
72 |
|
73 void RunL(); |
|
74 |
|
75 void DoCancel(); |
|
76 |
|
77 private: |
|
78 |
|
79 // Creates the MMETel connection and loads the phone module. |
|
80 TInt CreateMMETelConnectionL(); |
|
81 void DisconnectMMETel(); |
|
82 |
|
83 private: |
|
84 |
|
85 eap_am_type_protected_setup_symbian_c * const iParent; |
|
86 |
|
87 abs_eap_am_tools_c * const m_am_tools; |
|
88 |
|
89 // ETel connection. |
|
90 RTelServer iServer; |
|
91 RMobilePhone iPhone; |
|
92 |
|
93 // Stores the last queried Phone identities like manufacturer, model, |
|
94 // revision and serial number |
|
95 RMobilePhone::TMobilePhoneIdentityV1 iDeviceId; |
|
96 |
|
97 // Stores the query identifier. Used to check if IMSI query or KC & SRES query. |
|
98 TQueryType iQueryId; |
|
99 |
|
100 // Tells if MMETEL is connected already or not. |
|
101 TBool iMMETELConnectionStatus; |
|
102 |
|
103 }; |
|
104 |
|
105 #endif // _EAPPROTECTEDSETUPINTERFACE_H_ |
|
106 |
|
107 // End of file |