• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

qmorientation.h

Go to the documentation of this file.
00001 
00031 #ifndef QMORIENTATION_H
00032 #define QMORIENTATION_H
00033 
00034 #include <QtCore/qobject.h>
00035 #include <qmsensor.h>
00036 
00037 QT_BEGIN_HEADER
00038 
00039 namespace MeeGo {
00040 
00041     class QmOrientationReading; // Defined below
00042 
00081     class MEEGO_SYSTEM_EXPORT QmOrientation : public QmSensor
00082     {
00083         Q_OBJECT;
00084         Q_PROPERTY(QmOrientationReading orientation READ orientation);
00085         Q_PROPERTY(int threshold READ threshold WRITE setThreshold);
00086 
00087     public:
00088 
00092         enum Orientation
00093         {
00094             Undefined = 0,   
00095             BottomUp,     
00096             BottomDown, 
00097             LeftUp,         
00098             RightUp,       
00099             FaceDown,     
00100             FaceUp          
00101         };
00102 
00107         QmOrientation(QObject *parent = 0);
00108 
00112         ~QmOrientation();
00113 
00118         QmOrientationReading orientation();
00119 
00124         int threshold();
00125 
00139         void setThreshold(int value);
00140 
00141     Q_SIGNALS:
00146         void orientationChanged(const MeeGo::QmOrientationReading orientation);
00147 
00148     };
00149 
00153     class QmOrientationReading : public QmSensorReading
00154     {
00155     public:
00156         QmOrientation::Orientation value;
00157     };
00158 
00159 } // MeeGo namespace
00160 
00161 QT_END_HEADER
00162 
00163 #endif

Generated on Mon Jul 4 2011 14:27:35 for QmSystem by  doxygen 1.7.1