qtmobility/examples/sensors/panorama/rotationcontroller.h
changeset 11 06b8e2af4411
child 14 6fbed849b4f4
equal deleted inserted replaced
8:71781823f776 11:06b8e2af4411
       
     1 #ifndef ROTATIONCONTROLLER_H
       
     2 #define ROTATIONCONTROLLER_H
       
     3 
       
     4 
       
     5 #include "timedcontroller.h"
       
     6 #include <qrotationsensor.h>
       
     7 #include <QTimer>
       
     8 #include <QTime>
       
     9 
       
    10 QTM_USE_NAMESPACE
       
    11 
       
    12 class RotationController : public TimedController
       
    13 {
       
    14     Q_OBJECT
       
    15 
       
    16 public:
       
    17     RotationController();
       
    18     virtual void startSensor();
       
    19     virtual void stopSensor();
       
    20     virtual void updateCoordinates();
       
    21 
       
    22 
       
    23 public slots:
       
    24     void update();
       
    25 
       
    26 private:
       
    27     QTM_NAMESPACE::QRotationSensor m_rotationSensor;
       
    28     int m_dx, m_dy;
       
    29     qtimestamp m_exTimestamp;
       
    30     qreal m_factor;
       
    31 
       
    32 };
       
    33 
       
    34 
       
    35 #endif // ROTATIONCONTROLLER_H