CLbsLocationResolver Class Reference

List of all members.

Public Member Functions

IMPORT_C ~CLbsLocationResolver ()
IMPORT_C void ResolveLocationL (const CLbsLocationInfo &aLocationInfo)
IMPORT_C TInt SetConversionPreferences (TLbsConversionPrefs aConversionPrefs)
IMPORT_C TLbsConversionPrefs ConversionPreferences ()
IMPORT_C void CancelResolveLocation ()

Static Public Member Functions

static IMPORT_C
CLbsLocationResolver
NewL (MLbsLocationResolverObserver &aObserver, const TUid aConverterModuleId)
static IMPORT_C
CLbsLocationResolver
NewL (MLbsLocationResolverObserver &aObserver)

Protected Member Functions

 CLbsLocationResolver ()
void ConstructL (MLbsLocationResolverObserver &aObserver, const TUid aConverterModuleId)

Constructor & Destructor Documentation

EXPORT_C CLbsLocationResolver::~CLbsLocationResolver (  ) 

Destructor.

CLbsLocationResolver::CLbsLocationResolver (  )  [protected]

Default constructor


Member Function Documentation

EXPORT_C void CLbsLocationResolver::CancelResolveLocation (  ) 

Cancels an ongoing conversion operation. If there is no ongoing conversion the cancellation request is ignored.

The MLbsLocationResolverObserver callback will not be invoked if cancellation is successful.

void CLbsLocationResolver::ConstructL ( MLbsLocationResolverObserver aObserver,
const TUid  aConverterModuleId 
) [protected]

Symbian 2nd phase constructor.

EXPORT_C TLbsConversionPrefs CLbsLocationResolver::ConversionPreferences (  ) 

Returns the option currently set for the conversion module's connection preference [ eg. "local cache"]

Returns:
The enum corresponding to the currently set connection preferences (ELbsConversionNotDefined will be returned if the conversion preferences have not been set yet)
EXPORT_C CLbsLocationResolver * CLbsLocationResolver::NewL ( MLbsLocationResolverObserver aObserver  )  [static]

Allocates and construct a new CLbsLocationResolver

Parameters:
[in] aObserver An observer for location conversion event.
EXPORT_C CLbsLocationResolver * CLbsLocationResolver::NewL ( MLbsLocationResolverObserver aObserver,
const TUid  aConverterModuleId 
) [static]

Allocates and construct a new CLbsLocationResolver

Parameters:
[in] aObserver An observer for location conversion event.
[in] aConverterModuleId UID of the conversion plugin to be used.
EXPORT_C void CLbsLocationResolver::ResolveLocationL ( const CLbsLocationInfo &  aLocationInfo  ) 

A simple function that converts a single Location Info into a TLocality No preferences or masks may be set. The result is returned in the MLbsLocationResolverObserver callback via OnResolveLocationComplete

Only one outstanding conversion can be open at a time for each client. Attempting to perform more than one will result in a leave with KErrInUse

Parameters:
[in] aLocationInfo the information to be converted into a location.
EXPORT_C TInt CLbsLocationResolver::SetConversionPreferences ( TLbsConversionPrefs  aConversionPrefs  ) 

Sets the option for the conversion module's connection preferences [ eg. "online without prompt"]

Parameters:
[in] aConversionPref - Enum specifying the connection preferences
Returns:
KErrArgument if the value is invalid, KErrNone otherwise

The documentation for this class was generated from the following files:

Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved. These materials are provided under the terms of the Eclipse Public License v1.0.