equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the Qt Mobility Components. |
7 ** This file is part of the Qt Mobility Components. |
8 ** |
8 ** |
42 #ifndef MAEMO6COMPASS_H |
42 #ifndef MAEMO6COMPASS_H |
43 #define MAEMO6COMPASS_H |
43 #define MAEMO6COMPASS_H |
44 |
44 |
45 #include "maemo6sensorbase.h" |
45 #include "maemo6sensorbase.h" |
46 #include <qcompass.h> |
46 #include <qcompass.h> |
47 #include <qsensorbackend.h> |
|
48 |
47 |
49 #include <sensord/compasssensor_i.h> |
48 #include <compasssensor_i.h> |
|
49 #include <compass.h> |
50 |
50 |
51 QTM_USE_NAMESPACE |
51 QTM_USE_NAMESPACE |
52 |
52 |
53 class maemo6compass : public maemo6sensorbase |
53 class maemo6compass : public maemo6sensorbase |
54 { |
54 { |
61 private: |
61 private: |
62 QCompassReading m_reading; |
62 QCompassReading m_reading; |
63 static bool m_initDone; |
63 static bool m_initDone; |
64 |
64 |
65 private slots: |
65 private slots: |
66 void slotLevelChanged(const int& level); |
66 void dataAvailable(const Compass& data); |
67 void slotDegreesChanged(const int& degrees); |
|
68 }; |
67 }; |
69 |
68 |
70 #endif |
69 #endif |