locationpickerservice/inc/locationpickercontent.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: LocationPickerContent declaration
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef LOCATIONPICKERCONTENT_H
       
    19 #define LOCATIONPICKERCONTENT_H
       
    20 
       
    21 
       
    22 #include "locationpickerproxymodel.h"
       
    23 
       
    24 //forward declaration
       
    25 class QStandardItemModel;
       
    26 class LocationPickerDataManager;
       
    27 
       
    28 /**  
       
    29  *Class to create model for Location Picker
       
    30  */
       
    31 class LocationPickerContent : public QObject
       
    32 {
       
    33     Q_OBJECT
       
    34 public:
       
    35 
       
    36     // contructor
       
    37     LocationPickerContent();
       
    38 
       
    39     // destructor
       
    40     ~LocationPickerContent();
       
    41     
       
    42     //get standard Grid Model
       
    43     QStandardItemModel* getStandardModel();
       
    44     
       
    45     void createNoEntryDisplay( QStandardItemModel *aModel );
       
    46     
       
    47     bool populateModel();
       
    48 
       
    49 private:
       
    50     Qt::Orientations mOrientation;
       
    51     LocationPickerDataManager *mDataManager;
       
    52     QStandardItemModel *mStandardModel;
       
    53     
       
    54 };
       
    55 
       
    56 
       
    57 #endif // LOCATIONPICKERCONTENT_H