|
1 /* |
|
2 * Copyright (c) 2008 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: Constants for Sensor API |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SENSORNATIVECONSTANTS_H |
|
19 #define SENSORNATIVECONSTANTS_H |
|
20 |
|
21 const int ERROR_NONE = 0; |
|
22 const int ERROR_GENERAL = -2; |
|
23 const int ERROR_NOMEMORY = -4; |
|
24 |
|
25 /** |
|
26 * Same order as in S60 sensor API |
|
27 * enum TSensrvConditionOperator |
|
28 * { |
|
29 * ESensrvOperatorEquals = 0, |
|
30 * ESensrvOperatorGreaterThan, |
|
31 * ESensrvOperatorGreaterThanOrEquals, |
|
32 * ESensrvOperatorLessThan, |
|
33 * ESensrvOperatorLessThanOrEquals, |
|
34 * ESensrvOperatorBinaryAnd, |
|
35 * ESensrvOperatorBinaryAll |
|
36 * }; |
|
37 */ |
|
38 const int INT_EQUALS = 0; |
|
39 const int INT_GREATER_THAN = 1; |
|
40 const int INT_GREATER_THAN_OR_EQUALS = 2; |
|
41 const int INT_LESS_THAN = 3; |
|
42 const int INT_LESS_THAN_OR_EQUALS = 4; |
|
43 const int INT_NO_OPERATION = -1; |
|
44 |
|
45 #endif // SENSORNATIVECONSTANTS_H |