homescreenapp/hsdomainmodel/inc/hspage.h
changeset 51 4785f57bf3d4
parent 46 23b5d6a29cce
child 55 03646e8da489
--- a/homescreenapp/hsdomainmodel/inc/hspage.h	Fri May 14 15:43:04 2010 +0300
+++ b/homescreenapp/hsdomainmodel/inc/hspage.h	Thu May 27 12:46:08 2010 +0300
@@ -30,15 +30,16 @@
 
 class HSDOMAINMODEL_EXPORT HsPage : public HbWidget
 {
-	Q_OBJECT
+    Q_OBJECT
+    Q_PROPERTY(int pageIndex READ pageIndex)
 
 public:
     HsPage(QGraphicsItem *parent = 0);
-	~HsPage();
+    ~HsPage();
 
     int databaseId() const;
     void setDatabaseId(int id);
-    
+
     bool load();
 
     bool addExistingWidget(HsWidgetHost *widgetHost);
@@ -50,10 +51,10 @@
     bool deleteFromDatabase();
 
     QList<HsWidgetHost *> widgets() const;
-        
+
     bool isRemovable() const;
     void setRemovable(bool removable);
-    
+
     static HsPage *createInstance(const HsPageData &pageData);
 
 public slots:
@@ -63,6 +64,8 @@
 
     void updateZValues();
 
+    int pageIndex();
+
 private:
     void connectWidget(HsWidgetHost *widget);
     void disconnectWidget(HsWidgetHost *widget);
@@ -72,12 +75,12 @@
     void onWidgetResized(HsWidgetHost *widget);
 
 private:
-    int mDatabaseId;    
+    int mDatabaseId;
     bool mRemovable;
     QList<HsWidgetHost*> mWidgets;
     QList<HsWidgetHost*> mNewWidgets;
-    
+
     HOMESCREEN_TEST_FRIEND_CLASS(TestRuntimeServices)
 };
- 
+
 #endif