locationpickerservice/inc/locationpickerdatamanager.h
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 declaration
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef LOCATIONPICKERDATAMANAGER_H
       
    19 #define LOCATIONPICKERDATAMANAGER_H
       
    20 
       
    21 #include <QStandardItemModel>
       
    22 #include "locationpickertypes.h"
       
    23 #include "qlocationpickeritem.h"
       
    24 
       
    25 class LocationPickerDataManagerPrivate;
       
    26 
       
    27 /**  Class used for managing the data of model
       
    28  *
       
    29  */
       
    30 class LocationPickerDataManager
       
    31 {
       
    32 public:
       
    33     static LocationPickerDataManager* getInstance();
       
    34 private:
       
    35     // constructors
       
    36     LocationPickerDataManager();
       
    37 
       
    38     // destructor
       
    39     ~LocationPickerDataManager();
       
    40 public:
       
    41     // populates the model with data
       
    42     bool populateModel( QStandardItemModel &aModel, TViewType aViewType, 
       
    43             quint32 aCollectionId = 0);
       
    44 
       
    45     // gets the location item
       
    46     void getLocationItem( quint32 aLmId, QLocationPickerItem &aItem );
       
    47 
       
    48 private:
       
    49 
       
    50     LocationPickerDataManagerPrivate* const d_ptr;
       
    51     Q_DECLARE_PRIVATE_D(d_ptr, LocationPickerDataManager)
       
    52 };
       
    53 
       
    54 #endif // LOCATIONPICKERDATAMANAGER_H