locationpickerservice/src/locationpickerdatamanager.cpp
branchRCL_3
changeset 17 1fc85118c3ae
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
       
     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: LocationPickerDataManager implementation
       
    15 *
       
    16 */
       
    17 
       
    18 #include "locationpickerdatamanager.h"
       
    19 #include "locationpickerdatamanager_p.h"
       
    20 
       
    21 
       
    22 // ----------------------------------------------------------------------------
       
    23 // LocationPickerDataManager::getInstance()
       
    24 // ----------------------------------------------------------------------------
       
    25 LocationPickerDataManager* LocationPickerDataManager::getInstance()
       
    26 {
       
    27     static LocationPickerDataManager singletonInstance;
       
    28     return &singletonInstance;
       
    29 }
       
    30 
       
    31 // ----------------------------------------------------------------------------
       
    32 // LocationPickerDataManager::LocationPickerDataManager()
       
    33 // ----------------------------------------------------------------------------
       
    34 
       
    35 LocationPickerDataManager::LocationPickerDataManager() :
       
    36     d_ptr( new LocationPickerDataManagerPrivate() )
       
    37 {
       
    38 }
       
    39 
       
    40 
       
    41 // ----------------------------------------------------------------------------
       
    42 // LocationPickerDataManager::~LocationPickerDataManager()
       
    43 // ----------------------------------------------------------------------------
       
    44 LocationPickerDataManager::~LocationPickerDataManager()
       
    45 {
       
    46     delete d_ptr;
       
    47 }
       
    48 
       
    49 // ----------------------------------------------------------------------------
       
    50 // LocationPickerDataManager::populateModel()
       
    51 // ----------------------------------------------------------------------------
       
    52 bool LocationPickerDataManager::populateModel( QStandardItemModel &aModel, TViewType aViewType, 
       
    53         quint32 aCollectionId )
       
    54 {   
       
    55     Q_D( LocationPickerDataManager);
       
    56     return( d->populateModel( aModel, aViewType, aCollectionId) );
       
    57 }
       
    58 
       
    59 // ----------------------------------------------------------------------------
       
    60 // LocationPickerDataManager::getLocationItem()
       
    61 // ----------------------------------------------------------------------------
       
    62 
       
    63 void LocationPickerDataManager::getLocationItem( quint32 aLmId, QLocationPickerItem& aItem )
       
    64 {
       
    65     Q_D( LocationPickerDataManager);
       
    66     return( d->getLocationItem( aLmId, aItem ) );
       
    67 }