equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 #ifndef XQSENSOR_H |
|
18 #define XQSENSOR_H |
|
19 |
|
20 // INCLUDES |
|
21 #include <QObject> |
|
22 #include "sensor_global.h" |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class XQSensorPrivate; |
|
26 |
|
27 // CLASS DECLARATION |
|
28 class XQSensor: public QObject |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 enum Error { |
|
34 NoError = 0, |
|
35 OutOfMemoryError, |
|
36 NotFoundError, |
|
37 UnknownError = -1 |
|
38 }; |
|
39 |
|
40 public: |
|
41 virtual ~XQSensor(); |
|
42 |
|
43 public Q_SLOTS: |
|
44 void open(); |
|
45 void close(); |
|
46 void startReceiving(); |
|
47 void stopReceiving(); |
|
48 |
|
49 public: |
|
50 XQSensor::Error error() const; |
|
51 |
|
52 protected: |
|
53 XQSensor(XQSensorPrivate& dd, QObject* parent = 0); |
|
54 |
|
55 protected: |
|
56 XQSensorPrivate* d; |
|
57 |
|
58 }; |
|
59 |
|
60 #endif /*XQSENSOR_H*/ |
|
61 |
|
62 // End of file |
|