locationmgmt/locmonitor/ConversionApi/ConversionClientApi/src/lbslocationresolver.cpp
branchGeoConversion
changeset 16 90477588756a
equal deleted inserted replaced
15:2cd881e4a6fb 16:90477588756a
       
     1 /*
       
     2 * Copyright (c) 2009 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: Class used by client applications to convert location 
       
    15 * information
       
    16 *
       
    17 */
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <lbs/lbslocationresolver.h>
       
    21 #include <lbs/lbslocationinfoconvertercommon.h>
       
    22 
       
    23 
       
    24 EXPORT_C TVersion MLbsLocationResolverObserver::Version()  const
       
    25 	{
       
    26 	return TVersion(1, 0, 0);
       
    27 	}
       
    28 
       
    29 
       
    30 
       
    31 //----------------------------------------------------------------
       
    32 // CLbsLocationResolver::NewL
       
    33 // (other items were commented in a header).
       
    34 //----------------------------------------------------------------
       
    35 EXPORT_C CLbsLocationResolver* CLbsLocationResolver::NewL(
       
    36                                      MLbsLocationResolverObserver& aObserver, 
       
    37                                      const TUid aConverterModuleId )
       
    38     {
       
    39     CLbsLocationResolver* self = new( ELeave ) CLbsLocationResolver;
       
    40     CleanupStack::PushL( self );
       
    41     self->ConstructL( aObserver,aConverterModuleId );
       
    42     CleanupStack::Pop( self );
       
    43     return self;
       
    44     }
       
    45 
       
    46 //----------------------------------------------------------------
       
    47 // CLbsLocationResolver::NewL
       
    48 // (other items were commented in a header).
       
    49 //----------------------------------------------------------------
       
    50 EXPORT_C CLbsLocationResolver* CLbsLocationResolver::NewL(
       
    51                                      MLbsLocationResolverObserver& aObserver )
       
    52     {
       
    53     CLbsLocationResolver* self = new( ELeave ) CLbsLocationResolver;
       
    54     CleanupStack::PushL( self );
       
    55     self->ConstructL( aObserver,TUid::Uid( KNullUidValue ) );
       
    56     CleanupStack::Pop( self );
       
    57     return self;
       
    58     }
       
    59 
       
    60 //----------------------------------------------------------------
       
    61 // CLbsLocationResolver::~CLbsLocationResolver
       
    62 // (other items were commented in a header).
       
    63 //----------------------------------------------------------------
       
    64 EXPORT_C CLbsLocationResolver::~CLbsLocationResolver()
       
    65     {
       
    66     delete iLocationResolverImpl;
       
    67     iLocationResolverImpl = NULL;
       
    68     }
       
    69 
       
    70 //----------------------------------------------------------------
       
    71 // CLbsLocationResolver::ConvertLocationInfoToBasicLocationInfoL
       
    72 // (other items were commented in a header).
       
    73 //----------------------------------------------------------------
       
    74 EXPORT_C void CLbsLocationResolver::ResolveLocationL(const CLbsLocationInfo& /*aLocationInfo*/)
       
    75     {
       
    76     }
       
    77 
       
    78 
       
    79 
       
    80 //----------------------------------------------------------------
       
    81 // CLbsLocationResolver::CancelResolveLocation
       
    82 // (other items were commented in a header).
       
    83 //----------------------------------------------------------------
       
    84 EXPORT_C void CLbsLocationResolver::CancelResolveLocation()
       
    85     {
       
    86     }
       
    87 
       
    88 //----------------------------------------------------------------
       
    89 // CLbsLocationResolver::ConstructL
       
    90 // (other items were commented in a header).
       
    91 //----------------------------------------------------------------
       
    92 void CLbsLocationResolver::ConstructL( 
       
    93                         MLbsLocationResolverObserver& /*aObserver*/, 
       
    94                         const TUid /*aConverterModuleId*/ )
       
    95     {
       
    96     }
       
    97 
       
    98 //----------------------------------------------------------------
       
    99 // CLbsLocationResolver::CLbsLocationResolver
       
   100 // (other items were commented in a header).
       
   101 //----------------------------------------------------------------
       
   102 CLbsLocationResolver::CLbsLocationResolver()
       
   103     {
       
   104     
       
   105     }