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: CMnrpMapImageService 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 CEikonEnv; |
|
26 class CFont; |
|
27 class CMnrpMapModel; |
|
28 |
|
29 /** Implementation of geocoding service (KMnAppMapImageService). |
|
30 */ |
|
31 class CMnrpMapImageService : public CMnMapImageServiceBase |
|
32 { |
|
33 public : |
|
34 static CMnrpMapImageService* NewL( CMnrpEngine& aEngine ); |
|
35 |
|
36 void HandleTestCommandL( TInt aCommand ); |
|
37 |
|
38 protected : |
|
39 /** C++ constructor */ |
|
40 CMnrpMapImageService( CMnrpEngine& aEngine ); |
|
41 /** Destructor */ |
|
42 virtual ~CMnrpMapImageService(); |
|
43 |
|
44 void ConstructL(); |
|
45 |
|
46 void LeaveIfBusyL(); |
|
47 void LeaveIfInstructedL(); |
|
48 void StartProcessingL(); |
|
49 static TInt MapImageProcessingCallBack( TAny* aPtr ); |
|
50 void HandleMapImageCompletedL(); |
|
51 void FinishProcessingL(); |
|
52 |
|
53 TInt GetTestCommand(); |
|
54 |
|
55 void RenderL(); |
|
56 |
|
57 private: |
|
58 void DumpDataL(); |
|
59 |
|
60 void CreateFonts(); |
|
61 void DestroyFonts(); |
|
62 |
|
63 protected: // from CMnMapImageServiceBase |
|
64 |
|
65 /** Handles client's request for finding address by given coordinate. */ |
|
66 void HandleRenderingL(); |
|
67 |
|
68 protected: // from CMnServiceBase |
|
69 |
|
70 /** Reports that client cancelled request */ |
|
71 void DoCancel(); |
|
72 |
|
73 private: |
|
74 |
|
75 enum TServiceType |
|
76 { |
|
77 ENone, |
|
78 ERender, |
|
79 }; |
|
80 |
|
81 TServiceType iCurrentService; |
|
82 CMnrpEngine& iEngine; |
|
83 CMnrpMapModel* iModel; |
|
84 CPeriodic* iProcessor; |
|
85 CEikonEnv* iEikon; |
|
86 CFont* iItemFont; |
|
87 CFont* iTextFont; |
|
88 }; |
|
89 |
|
90 #endif // MN_TPMAPIMAGESERVICE_H |
|
91 |
|
92 |
|