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 XQACCELERATIONSENSORPRIVATE_H |
|
18 #define XQACCELERATIONSENSORPRIVATE_H |
|
19 |
|
20 // INCLUDES |
|
21 #include "xqsensor_p.h" |
|
22 #include "xqaccsensor.h" |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class CSensrvChannel; |
|
26 |
|
27 // CLASS DECLARATION |
|
28 class XQAccelerationSensorPrivate: public XQSensorPrivate |
|
29 { |
|
30 public: |
|
31 XQAccelerationSensorPrivate(XQSensor& qq); |
|
32 virtual ~XQAccelerationSensorPrivate(); |
|
33 |
|
34 void open(); |
|
35 void close(); |
|
36 void startReceiving(); |
|
37 void stopReceiving(); |
|
38 XQSensor::Error error() const; |
|
39 |
|
40 void addFilter(XQAbstractAccelerationSensorFilter& filter); |
|
41 QList<XQAbstractAccelerationSensorFilter*>& filters(); |
|
42 |
|
43 int xAcceleration() const; |
|
44 int yAcceleration() const; |
|
45 int zAcceleration() const; |
|
46 |
|
47 protected: |
|
48 void DataReceived(CSensrvChannel& aChannel, TInt aCount, TInt aDataLost); |
|
49 |
|
50 private: |
|
51 void HandleXyzAxisData(CSensrvChannel& aChannel, TInt aCount, TInt aDataLost); |
|
52 |
|
53 private: |
|
54 CSensrvChannel* iXyzAxisChannel; |
|
55 TInt iXAcceleration; |
|
56 TInt iYAcceleration; |
|
57 TInt iZAcceleration; |
|
58 TInt iError; |
|
59 |
|
60 QList<XQAbstractAccelerationSensorFilter*> iFilters; |
|
61 }; |
|
62 |
|
63 #endif /*XQACCELERATIONSENSORPRIVATE_H*/ |
|
64 |
|
65 // End of file |
|