locationpickerservice/inc/locationpickercontent.h
changeset 17 0f22fb80ebba
child 20 cd10d5b85554
equal deleted inserted replaced
15:13ae750350c9 17:0f22fb80ebba
       
     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(Qt::Orientation aOrientation );
       
    38 
       
    39     // destructor
       
    40     ~LocationPickerContent();
       
    41     
       
    42     // locationsNotFound
       
    43     bool locationsFound();
       
    44     
       
    45     //get proxy model
       
    46     LocationPickerProxyModel* getListProxyModel();
       
    47     
       
    48     //get standard Model
       
    49     QStandardItemModel* getStandardModel();
       
    50     
       
    51     //get data manager
       
    52     LocationPickerDataManager* getDataManager();
       
    53     
       
    54     //get hbgridview proxy model
       
    55     LocationPickerProxyModel* getGridProxyModel();
       
    56 
       
    57 private:
       
    58     Qt::Orientations mOrientation;
       
    59     LocationPickerProxyModel *mListProxyModel;
       
    60     LocationPickerProxyModel *mProxyGridModel;
       
    61     LocationPickerDataManager *mDataManager;
       
    62     QStandardItemModel *mModel;
       
    63     bool mLocationsFound;
       
    64     
       
    65 };
       
    66 
       
    67 
       
    68 #endif // LOCATIONPICKERCONTENT_H