1 /* |
|
2 * Copyright (c) 2005-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 "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: CTestProviderMapImageService class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MN_TPMAPIMAGESERVICE_H |
|
20 #define MN_TPMAPIMAGESERVICE_H |
|
21 |
|
22 #include "mnmapimageservicebase.h" |
|
23 |
|
24 class CPosLandmark; |
|
25 class CTestCommandListener; |
|
26 |
|
27 /** Implementation of geocoding service (KMnAppMapImageService). |
|
28 */ |
|
29 class CTestProviderMapImageService : public CMnMapImageServiceBase |
|
30 { |
|
31 public : |
|
32 static CTestProviderMapImageService* NewL(); |
|
33 |
|
34 void HandleTestCommandL( TInt aCommand ); |
|
35 |
|
36 protected : |
|
37 /** C++ constructor */ |
|
38 CTestProviderMapImageService(); |
|
39 /** Destructor */ |
|
40 virtual ~CTestProviderMapImageService(); |
|
41 |
|
42 void ConstructL(); |
|
43 |
|
44 void LeaveIfBusyL(); |
|
45 void LeaveIfInstructedL(); |
|
46 void StartProcessingL(); |
|
47 static TInt MapImageProcessingCallBack( TAny* aPtr ); |
|
48 void HandleMapImageCompletedL(); |
|
49 void FinishProcessingL(); |
|
50 |
|
51 TInt GetTestCommand(); |
|
52 |
|
53 void RenderL(); |
|
54 |
|
55 private: |
|
56 void DumpDataL(); |
|
57 |
|
58 protected: // from CMnMapImageServiceBase |
|
59 |
|
60 /** Handles client's request for finding address by given coordinate. */ |
|
61 void HandleRenderingL(); |
|
62 |
|
63 protected: // from CMnServiceBase |
|
64 |
|
65 /** Reports that client cancelled request */ |
|
66 void DoCancel(); |
|
67 |
|
68 private: |
|
69 |
|
70 enum TServiceType |
|
71 { |
|
72 ENone, |
|
73 ERender, |
|
74 }; |
|
75 |
|
76 TServiceType iCurrentService; |
|
77 |
|
78 CPeriodic* iProcessor; |
|
79 }; |
|
80 |
|
81 #endif // MN_TPMAPIMAGESERVICE_H |
|
82 |
|
83 |
|