Changed the section to user/hidden as required for Nokia Store
[ghostsoverboard] / orientationcontrolledgraphicspixmapobject.h
index 25baeb8..802766b 100644 (file)
@@ -1,5 +1,5 @@
 /**************************************************************************
-        Ghosts Overboard - a game for Maemo 5
+        Ghosts Overboard - a game for 'Meego 1.2 Harmattan'
 
         Copyright (C) 2011  Heli Hyvättinen
 
@@ -25,6 +25,7 @@
 
 #include <QGraphicsPixmapItem>
 #include <QRotationSensor>
+#include <QTimer>
 
 QTM_USE_NAMESPACE
 
@@ -40,12 +41,16 @@ public:
 //    explicit OrientationControlledGraphicsPixmapObject(QGraphicsItem *parent = 0);
     explicit OrientationControlledGraphicsPixmapObject(QPixmap pixmap = 0, QGraphicsItem *parent = 0);
 
+
 signals:
 
+
 public slots:
     void startMoving();
     void stopMoving();
     void readRotationSensor();
+    virtual void setPos(const QPointF &pos);
+    void rotationSensorReady();
 
 
 protected:
@@ -54,9 +59,13 @@ protected:
 */
     virtual bool handleCollisions();
 
+
 private:
 
     QRotationSensor rotationSensor_;
+    QPointF oldOldPos_;
+    QTimer rotationReadingTimer_;
+    bool rotationReadingInitialized_;