locationpickerservice/inc/locationpickerdatamanager.h
changeset 20 cd10d5b85554
parent 17 0f22fb80ebba
child 31 8db05346071b
--- a/locationpickerservice/inc/locationpickerdatamanager.h	Mon May 03 12:27:22 2010 +0300
+++ b/locationpickerservice/inc/locationpickerdatamanager.h	Fri May 14 15:47:27 2010 +0300
@@ -30,18 +30,17 @@
 class LocationPickerDataManager
 {
 public:
+    static LocationPickerDataManager* getInstance();
+private:
     // constructors
     LocationPickerDataManager();
-    LocationPickerDataManager( QStandardItemModel &aModel, TViewType aViewType );
 
     // destructor
     ~LocationPickerDataManager();
-
+public:
     // populates the model with data
-    bool populateModel(Qt::Orientations aOrientation,quint32 aCollectionId = 0);
-
-    // gets the data pointed to by index and copies to the aValue
-    void getData(int index, quint32& aValue );
+    bool populateModel( QStandardItemModel &aModel, TViewType aViewType, 
+            Qt::Orientations aOrientation,quint32 aCollectionId = 0);
 
     // gets the location item
     void getLocationItem( quint32 aLmId, QLocationPickerItem &aItem );