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 ** |
41 |
41 |
42 #ifndef MAEMO6SENSORBASE_H |
42 #ifndef MAEMO6SENSORBASE_H |
43 #define MAEMO6SENSORBASE_H |
43 #define MAEMO6SENSORBASE_H |
44 |
44 |
45 #include <qsensorbackend.h> |
45 #include <qsensorbackend.h> |
46 #include "sensord/sensormanagerinterface.h" |
46 #include <sensormanagerinterface.h> |
47 #include "sensord/abstractsensor_i.h" |
47 #include <abstractsensor_i.h> |
48 |
48 |
49 QTM_USE_NAMESPACE |
49 QTM_USE_NAMESPACE |
50 |
50 |
51 class maemo6sensorbase : public QSensorBackend |
51 class maemo6sensorbase : public QSensorBackend |
52 { |
52 { |
73 m_sensorInterface = T::controlInterface(sensorName); |
73 m_sensorInterface = T::controlInterface(sensorName); |
74 if (!m_sensorInterface) { |
74 if (!m_sensorInterface) { |
75 m_sensorInterface = const_cast<T*>(T::listenInterface(sensorName)); |
75 m_sensorInterface = const_cast<T*>(T::listenInterface(sensorName)); |
76 } |
76 } |
77 } |
77 } |
78 |
|
79 qtimestamp createTimestamp(); |
|
80 }; |
78 }; |
81 |
79 |
82 #endif |
80 #endif |