|
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: RMnMapImageServiceClient class implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <fbs.h> |
|
21 |
|
22 #include "mndebug.h" |
|
23 #include "mninternal.h" |
|
24 #include "mnappserviceuids.hrh" |
|
25 |
|
26 #include "mnprovider.h" |
|
27 #include "mnmapimage.h" |
|
28 #include "mnmapimageserviceclient.h" |
|
29 |
|
30 // ======== LOCAL FUNCTIONS ======== |
|
31 |
|
32 // ======== MEMBER FUNCTIONS ======== |
|
33 |
|
34 // --------------------------------------------------------------------------- |
|
35 // --------------------------------------------------------------------------- |
|
36 // |
|
37 RMnMapImageServiceClient::RMnMapImageServiceClient() |
|
38 : iParamsDes( NULL, 0 ), iOptionsPack( iOptions ) |
|
39 { |
|
40 } |
|
41 |
|
42 // --------------------------------------------------------------------------- |
|
43 // --------------------------------------------------------------------------- |
|
44 // |
|
45 void RMnMapImageServiceClient::Render( |
|
46 CFbsBitmap& aBitmap, |
|
47 TMnMapImageParams& aParams, |
|
48 TMnMapImageOptions& aOptions, |
|
49 TRequestStatus& aStatus) |
|
50 { |
|
51 LOG("RMnMapImageServiceClient::RenderL"); |
|
52 TIpcArgs args; |
|
53 |
|
54 // bitmap handle |
|
55 TInt handle = aBitmap.Handle(); |
|
56 args.Set( EMnIpcImageBitmapHandleParamIndex, handle ); |
|
57 |
|
58 // options |
|
59 iOptions = aOptions; |
|
60 args.Set( EMnIpcImageOptionsParamIndex, &iOptionsPack ); |
|
61 |
|
62 // params |
|
63 TPckg<TMnMapImageParams> pack( aParams ); |
|
64 iParamsDes.Set( pack ); |
|
65 args.Set( EMnIpcImageParamsParamIndex, &iParamsDes ); |
|
66 |
|
67 SendReceive( EMnIpcRenderImage, args, aStatus ); |
|
68 iLastRequest = EMnIpcRenderImage; |
|
69 } |
|
70 |
|
71 // --------------------------------------------------------------------------- |
|
72 // From class RApaAppServiceBase. |
|
73 // --------------------------------------------------------------------------- |
|
74 // |
|
75 EXPORT_C TUid RMnMapImageServiceClient::ServiceUid() const |
|
76 { |
|
77 LOG("RMnMapImageServiceClient::ServiceUid"); |
|
78 return TUid::Uid( KMnAppMapImageService ); |
|
79 } |