equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: Helper class to get IMEI number. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef _MDSGETIMEIAO_H_ |
|
19 #define _MDSGETIMEIAO_H_ |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <etel3rdparty.h> |
|
23 |
|
24 |
|
25 class CMdsGetImeiAO: public CActive |
|
26 { |
|
27 private: |
|
28 CTelephony *iTelephony; |
|
29 CTelephony::TPhoneIdV1 iV1; |
|
30 TBuf<CTelephony::KPhoneSerialNumberSize> iImei; |
|
31 CActiveSchedulerWait iAsw; |
|
32 public: |
|
33 virtual ~CMdsGetImeiAO(); |
|
34 static CMdsGetImeiAO* NewL(); |
|
35 static CMdsGetImeiAO* NewLC(); |
|
36 void GetIMEI(TDes &aImei); |
|
37 TInt64 GetIMEI(); |
|
38 |
|
39 void DoCancel(); |
|
40 |
|
41 void RunL(); |
|
42 |
|
43 private: |
|
44 CMdsGetImeiAO(): CActive(CActive::EPriorityStandard), iTelephony(NULL) |
|
45 {} |
|
46 void ConstructL(); |
|
47 |
|
48 }; |
|
49 |
|
50 #endif //_MDSGETIMEIAO_H_ |
|
51 |