author | Billy Gibson <Billy.Gibson@nokia.com> |
Fri, 09 Apr 2010 17:19:12 +0100 | |
branch | GeoConversion |
changeset 16 | 90477588756a |
permissions | -rw-r--r-- |
16
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
1 |
/* |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
3 |
* All rights reserved. |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
8 |
* |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
11 |
* |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
12 |
* Contributors: |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
13 |
* |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
14 |
* Description: Class used by client applications to convert location |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
15 |
* information |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
16 |
* |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
17 |
*/ |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
18 |
|
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
19 |
#include <e32base.h> |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
20 |
#include <lbs/lbslocationresolver.h> |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
21 |
#include <lbs/lbslocationinfoconvertercommon.h> |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
22 |
|
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
23 |
|
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
24 |
EXPORT_C TVersion MLbsLocationResolverObserver::Version() const |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
25 |
{ |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
26 |
return TVersion(1, 0, 0); |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
27 |
} |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
28 |
|
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
29 |
|
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
30 |
|
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
31 |
//---------------------------------------------------------------- |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
32 |
// CLbsLocationResolver::NewL |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
33 |
// (other items were commented in a header). |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
34 |
//---------------------------------------------------------------- |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
35 |
EXPORT_C CLbsLocationResolver* CLbsLocationResolver::NewL( |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
36 |
MLbsLocationResolverObserver& aObserver, |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
37 |
const TUid aConverterModuleId ) |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
38 |
{ |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
39 |
CLbsLocationResolver* self = new( ELeave ) CLbsLocationResolver; |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
40 |
CleanupStack::PushL( self ); |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
41 |
self->ConstructL( aObserver,aConverterModuleId ); |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
42 |
CleanupStack::Pop( self ); |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
43 |
return self; |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
44 |
} |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
45 |
|
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
46 |
//---------------------------------------------------------------- |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
47 |
// CLbsLocationResolver::NewL |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
48 |
// (other items were commented in a header). |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
49 |
//---------------------------------------------------------------- |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
50 |
EXPORT_C CLbsLocationResolver* CLbsLocationResolver::NewL( |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
51 |
MLbsLocationResolverObserver& aObserver ) |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
52 |
{ |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
53 |
CLbsLocationResolver* self = new( ELeave ) CLbsLocationResolver; |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
54 |
CleanupStack::PushL( self ); |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
55 |
self->ConstructL( aObserver,TUid::Uid( KNullUidValue ) ); |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
56 |
CleanupStack::Pop( self ); |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
57 |
return self; |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
58 |
} |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
59 |
|
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
60 |
//---------------------------------------------------------------- |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
61 |
// CLbsLocationResolver::~CLbsLocationResolver |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
62 |
// (other items were commented in a header). |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
63 |
//---------------------------------------------------------------- |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
64 |
EXPORT_C CLbsLocationResolver::~CLbsLocationResolver() |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
65 |
{ |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
66 |
delete iLocationResolverImpl; |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
67 |
iLocationResolverImpl = NULL; |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
68 |
} |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
69 |
|
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
70 |
//---------------------------------------------------------------- |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
71 |
// CLbsLocationResolver::ConvertLocationInfoToBasicLocationInfoL |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
72 |
// (other items were commented in a header). |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
73 |
//---------------------------------------------------------------- |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
74 |
EXPORT_C void CLbsLocationResolver::ResolveLocationL(const CLbsLocationInfo& /*aLocationInfo*/) |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
75 |
{ |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
76 |
} |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
77 |
|
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
78 |
|
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
79 |
|
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
80 |
//---------------------------------------------------------------- |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
81 |
// CLbsLocationResolver::CancelResolveLocation |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
82 |
// (other items were commented in a header). |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
83 |
//---------------------------------------------------------------- |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
84 |
EXPORT_C void CLbsLocationResolver::CancelResolveLocation() |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
85 |
{ |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
86 |
} |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
87 |
|
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
88 |
//---------------------------------------------------------------- |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
89 |
// CLbsLocationResolver::ConstructL |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
90 |
// (other items were commented in a header). |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
91 |
//---------------------------------------------------------------- |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
92 |
void CLbsLocationResolver::ConstructL( |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
93 |
MLbsLocationResolverObserver& /*aObserver*/, |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
94 |
const TUid /*aConverterModuleId*/ ) |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
95 |
{ |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
96 |
} |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
97 |
|
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
98 |
//---------------------------------------------------------------- |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
99 |
// CLbsLocationResolver::CLbsLocationResolver |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
100 |
// (other items were commented in a header). |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
101 |
//---------------------------------------------------------------- |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
102 |
CLbsLocationResolver::CLbsLocationResolver() |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
103 |
{ |
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
104 |
|
90477588756a
Draft APIs for Converting Cell and/or WLAN information to a latitudes and longitude
Billy Gibson <Billy.Gibson@nokia.com>
parents:
diff
changeset
|
105 |
} |