equal
deleted
inserted
replaced
|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __MOBILE_INFO_H__ |
|
20 #define __MOBILE_INFO_H__ |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <Etel3rdParty.h> |
|
24 |
|
25 /* |
|
26 * Helper class. Fetches Mobile Country Code information in order to pass it to widget to server Nokia Ovi Store. |
|
27 * Can be expanded with other Information functions, like fetching IMEI, Product Code etc. |
|
28 */ |
|
29 |
|
30 class CMobileInfo : public CActive |
|
31 { |
|
32 private: |
|
33 CMobileInfo(TDes& aMCC); |
|
34 virtual ~CMobileInfo(); |
|
35 |
|
36 void ConstructL(); |
|
37 public: |
|
38 // Static function, to be called to get information |
|
39 static void GetInfoL(TDes& aMCC); |
|
40 |
|
41 private: // From CActive |
|
42 void RunL(); |
|
43 void DoCancel(); |
|
44 |
|
45 private: // member variables |
|
46 TDes& iMCC; |
|
47 CActiveSchedulerWait* iWait; |
|
48 |
|
49 CTelephony* iTelephony; |
|
50 CTelephony::TNetworkInfoV1 iMCCMNCV1; |
|
51 CTelephony::TNetworkInfoV1Pckg iMCCMNCV1Pkg; |
|
52 }; |
|
53 |
|
54 #endif |