1 /* |
|
2 * Copyright (c) 2009-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: Imsi reader |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __SCONIMSIREADER_H__ |
|
20 #define __SCONIMSIREADER_H__ |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <Etel3rdParty.h> |
|
24 |
|
25 enum TImsiReaderStatus |
|
26 { |
|
27 EIdle, |
|
28 ERequestingImsi, |
|
29 ERequestingNetworkStatus |
|
30 }; |
|
31 |
|
32 class CSconImsiReader : public CActive |
|
33 { |
|
34 public: |
|
35 |
|
36 static TInt GetImsiL( TDes& aImsi ); |
|
37 |
|
38 static TInt GetNetworkStatusL( CTelephony::TRegistrationStatus& aRegistrationStatus ); |
|
39 |
|
40 private: |
|
41 CSconImsiReader( TDes& aImsi, CTelephony::TRegistrationStatus& aRegistrationStatus ); |
|
42 void ConstructL(); |
|
43 ~CSconImsiReader(); |
|
44 |
|
45 void RequestImsi(); |
|
46 void RequestNetworkStatus(); |
|
47 |
|
48 private: // From CActive |
|
49 |
|
50 void RunL(); |
|
51 void DoCancel(); |
|
52 |
|
53 private: // data |
|
54 TDes& iImsi; |
|
55 CTelephony::TRegistrationStatus& iNetworkStatus; |
|
56 CTelephony* iTelephony; |
|
57 CTelephony::TSubscriberIdV1 iSubscriberIdV1; |
|
58 CTelephony::TSubscriberIdV1Pckg iSubscriberIdV1Pckg; |
|
59 |
|
60 CTelephony::TNetworkRegistrationV1 iNetworkRegistrationV1; |
|
61 CTelephony::TNetworkRegistrationV1Pckg iNetworkRegistrationV1Pckg; |
|
62 TImsiReaderStatus iImsiReaderStatus; |
|
63 }; |
|
64 |
|
65 #endif // __SCONIMSIREADER_H__ |
|