56
|
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: RMnGeocodingServiceClient class
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef MN_GEOCODINGSERVICECLIENT_H
|
|
20 |
#define MN_GEOCODINGSERVICECLIENT_H
|
|
21 |
|
|
22 |
#include "mninternal.h"
|
|
23 |
#include "mngeocoder.h"
|
|
24 |
#include "mnserviceclientbase.h"
|
|
25 |
|
|
26 |
/** \internal
|
|
27 |
* Client side of IPC with CMnGeocodingServiceBase.
|
|
28 |
*/
|
|
29 |
NONSHARABLE_CLASS( RMnGeocodingServiceClient ): public RMnServiceClientBase
|
|
30 |
{
|
|
31 |
public:
|
|
32 |
/** C++ constructor */
|
|
33 |
RMnGeocodingServiceClient();
|
|
34 |
~RMnGeocodingServiceClient();
|
|
35 |
|
|
36 |
/** Issues async request for geocoding */
|
|
37 |
void AddressByCoordinateL(
|
|
38 |
const CPosLandmark& aCoordinateLanmdark,
|
|
39 |
CMnGeocoder::TOptions aOptions,
|
|
40 |
TRequestStatus& aStatus);
|
|
41 |
|
|
42 |
/** Issues async request for reverse geocoding */
|
|
43 |
void CoordinateByAddressL(
|
|
44 |
const CPosLandmark& aAddressLanmdark,
|
|
45 |
CMnGeocoder::TOptions aOptions,
|
|
46 |
TRequestStatus& aStatus);
|
|
47 |
|
|
48 |
/** Issues async request for reverse geocoding
|
|
49 |
* with plain string address
|
|
50 |
*/
|
|
51 |
void CoordinateByAddressL(
|
|
52 |
const TDesC& aAddress,
|
|
53 |
CMnGeocoder::TOptions aOptions,
|
|
54 |
TRequestStatus& aStatus);
|
|
55 |
|
|
56 |
/** Client takes ownership of the returned pointer,
|
|
57 |
* if this method succeeds.
|
|
58 |
* \leaves KErrNotFound if result is not available.
|
|
59 |
*/
|
|
60 |
void GetLastResultL( CPosLandmark*& aResult, TMnGeocodingResultType& aResultType );
|
|
61 |
|
|
62 |
private : // from RApaAppServiceBase
|
|
63 |
IMPORT_C TUid ServiceUid() const;
|
|
64 |
|
|
65 |
private:
|
|
66 |
TInt iResultSize;
|
|
67 |
TPckg<TInt> iResultSizePtr;
|
|
68 |
|
|
69 |
HBufC8* iLandmarkBuffer;
|
|
70 |
HBufC* iPlainAddress;
|
|
71 |
|
|
72 |
CMnGeocoder::TOptions iOptions;
|
|
73 |
TPtrC8 iOptionsPtr;
|
|
74 |
};
|
|
75 |
|
|
76 |
#endif // MN_GEOCODINGSERVICECLIENT_H
|