locationpickerservice/inc/locationpickerdatamanager.h
changeset 20 cd10d5b85554
parent 17 0f22fb80ebba
child 31 8db05346071b
equal deleted inserted replaced
17:0f22fb80ebba 20:cd10d5b85554
    28  *
    28  *
    29  */
    29  */
    30 class LocationPickerDataManager
    30 class LocationPickerDataManager
    31 {
    31 {
    32 public:
    32 public:
       
    33     static LocationPickerDataManager* getInstance();
       
    34 private:
    33     // constructors
    35     // constructors
    34     LocationPickerDataManager();
    36     LocationPickerDataManager();
    35     LocationPickerDataManager( QStandardItemModel &aModel, TViewType aViewType );
       
    36 
    37 
    37     // destructor
    38     // destructor
    38     ~LocationPickerDataManager();
    39     ~LocationPickerDataManager();
    39 
    40 public:
    40     // populates the model with data
    41     // populates the model with data
    41     bool populateModel(Qt::Orientations aOrientation,quint32 aCollectionId = 0);
    42     bool populateModel( QStandardItemModel &aModel, TViewType aViewType, 
    42 
    43             Qt::Orientations aOrientation,quint32 aCollectionId = 0);
    43     // gets the data pointed to by index and copies to the aValue
       
    44     void getData(int index, quint32& aValue );
       
    45 
    44 
    46     // gets the location item
    45     // gets the location item
    47     void getLocationItem( quint32 aLmId, QLocationPickerItem &aItem );
    46     void getLocationItem( quint32 aLmId, QLocationPickerItem &aItem );
    48 
    47 
    49 private:
    48 private: