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 TMGETIMEI_H |
|
19 #define TMGETIMEI_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <etel3rdparty.h> |
|
23 |
|
24 #include "thumbnailmanagerconstants.h" |
|
25 |
|
26 class CTMGetImei: public CActive |
|
27 { |
|
28 private: |
|
29 CTelephony *iTelephony; |
|
30 CTelephony::TPhoneIdV1 iV1; |
|
31 TBuf<KImeiBufferSize> iImei; |
|
32 CActiveSchedulerWait iAsw; |
|
33 public: |
|
34 virtual ~CTMGetImei(); |
|
35 static CTMGetImei* NewL(); |
|
36 static CTMGetImei* NewLC(); |
|
37 TBuf<KImeiBufferSize> GetIMEI(); |
|
38 |
|
39 void DoCancel(); |
|
40 |
|
41 void RunL(); |
|
42 |
|
43 private: |
|
44 CTMGetImei(): CActive(EPriorityStandard), iTelephony(NULL) |
|
45 {} |
|
46 void ConstructL(); |
|
47 }; |
|
48 |
|
49 #endif //TNMGETIMEI_H |
|
50 |