locationpickerservice/inc/locationpickerdatamanager_p.h
branchRCL_3
changeset 18 870918037e16
parent 17 1fc85118c3ae
equal deleted inserted replaced
17:1fc85118c3ae 18:870918037e16
     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 private declaration
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef LOCATIONPICKERDATAMANAGER_P_H
       
    19 #define LOCATIONPICKERDATAMANAGER_P_H
       
    20 
       
    21 #include <QStandardItemModel>
       
    22 #include "locationpickertypes.h"
       
    23 #include "qlocationpickeritem.h"
       
    24 
       
    25 class LocationDataLookupDb;
       
    26 class QLookupItem;
       
    27 
       
    28 /**  Class used for managing the data of model
       
    29  *
       
    30  */
       
    31 class LocationPickerDataManagerPrivate
       
    32 {
       
    33 public:
       
    34     // constructor
       
    35     LocationPickerDataManagerPrivate();
       
    36     
       
    37     // destructor
       
    38     ~LocationPickerDataManagerPrivate();
       
    39     
       
    40     // populates the model with data
       
    41     bool populateModel( QStandardItemModel &aModel, TViewType aViewType, 
       
    42             quint32 aCollectionId = 0 );
       
    43     
       
    44     // gets the location item
       
    45     void getLocationItem( quint32 aLmId, QLocationPickerItem &aItem );
       
    46 
       
    47 private:
       
    48     // populates landmarks
       
    49     bool populateLandmarks( QList<QLookupItem> &aItemArray );
       
    50     // populates collections
       
    51     void populateCollections( QList<int>& aCount );
       
    52 
       
    53 private:
       
    54     QStandardItemModel *mModel;
       
    55     TViewType mViewType;
       
    56     LocationDataLookupDb *mDb; 
       
    57     quint32 mCategoryId;
       
    58 };
       
    59 
       
    60 #endif // LOCATIONPICKERDATAMANAGER_P_H