locationsystemui/locationsysui/possettings/poslocationservices/src/poslocationservicesengine.cpp
branchRCL_3
changeset 44 2b4ea9893b66
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
       
     1 /*
       
     2 * Copyright (c) 2010 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: Implementation of PosLocationServicesEngine class.  
       
    15 *
       
    16 */
       
    17 #include "poslocationservicesengine.h"
       
    18 
       
    19 
       
    20 //----------------------------------------------------------------------
       
    21 // PosLocationServicesEngine::PosLocationServicesEngine
       
    22 //----------------------------------------------------------------------
       
    23 PosLocationServicesEngine::PosLocationServicesEngine()
       
    24     {
       
    25     d_ptr = new PosLocationServicesEnginePrivate( *this );
       
    26     }
       
    27 
       
    28 //----------------------------------------------------------------------
       
    29 // PosLocationServicesEngine::~PosLocationServicesEngine
       
    30 //----------------------------------------------------------------------
       
    31 PosLocationServicesEngine::~PosLocationServicesEngine()
       
    32     {
       
    33     delete d_ptr;
       
    34     d_ptr = NULL;
       
    35     }
       
    36 
       
    37 //----------------------------------------------------------------------
       
    38 // PosLocationServicesEngine::getLocationServices
       
    39 //----------------------------------------------------------------------
       
    40 int PosLocationServicesEngine::getLocationServices( 
       
    41                                             QList<PosLocationServiceInfo>& 
       
    42                                             locationServiceList )
       
    43     {
       
    44     return d_ptr->GetLocationServices( locationServiceList );
       
    45     }
       
    46 
       
    47 //----------------------------------------------------------------------
       
    48 // PosLocationServicesEngine::removeLocationService
       
    49 //----------------------------------------------------------------------
       
    50 int PosLocationServicesEngine::removeLocationService( int serviceId )
       
    51     {
       
    52     return d_ptr->RemoveLocationService( serviceId );
       
    53     }
       
    54 
       
    55 //----------------------------------------------------------------------
       
    56 // PosLocationServicesEngine::handleLocationServiceUpdate
       
    57 //----------------------------------------------------------------------
       
    58 void PosLocationServicesEngine::handleLocationServiceUpdate()
       
    59     {
       
    60     emit locationServiceUpdate();
       
    61     }
       
    62 
       
    63 // End of file