tizen 2.3.1 release
[framework/web/mobile/wrt-plugins-tizen.git] / src / HumanActivityMonitor / plugin_config.h
1 //
2 // Tizen Web Device API
3 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18
19 #ifndef _PEDOMETER_PLUGIN_CONFIG_H_
20 #define _PEDOMETER_PLUGIN_CONFIG_H_
21
22 #include <string>
23 #include <Commons/FunctionDeclaration.h>
24 #include <Logger.h>
25
26 namespace DeviceAPI {
27 namespace HumanActivityMonitor {
28
29 #define MOTION_API_GET_CONTEXT_INFO "getHumanActivityData"
30 #define MOTION_API_START "start"
31 #define MOTION_API_MEDICALINFO "medicalinfo"
32 #define MOTION_API_STOP "stop"
33 #define MOTION_API_SET_ACCUMULATIVE_PEDOMETER_LISTENER "setAccumulativePedometerListener"
34 #define MOTION_API_UNSET_ACCUMULATIVE_PEDOMETER_LISTENER "unsetAccumulativePedometerListener"
35 #define MOTION_API_START_HAND_GESTURE_RECOGNITION_LISTENER "startHandGestureRecognition"
36 #define MOTION_API_STOP_HAND_GESTURE_RECOGNITION_LISTENER "stopHandGestureRecognition"
37
38
39
40 // attributes
41 #define PEDOMETER_INFO_STEP_STATUS "stepStatus"
42 #define PEDOMETER_INFO_SPEED "speed"
43 #define PEDOMETER_INFO_WALKING_FREQUENCY "walkingFrequency"
44 #define PEDOMETER_INFO_STEP_COUNT_DIFFERENCES "stepCountDifferences"
45
46 #define PEDOMETER_INFO_CUMULATIVE_DISTANCE "cumulativeDistance"
47 #define PEDOMETER_INFO_CUMULATIVE_CALORIE "cumulativeCalorie"
48 #define PEDOMETER_INFO_CUMULATIVE_TOTAL_STEP_COUNT "cumulativeTotalStepCount"
49 #define PEDOMETER_INFO_CUMULATIVE_WALK_STEP_COUNT "cumulativeWalkStepCount"
50 #define PEDOMETER_INFO_CUMULATIVE_RUN_STEP_COUNT "cumulativeRunStepCount"
51
52 // functions
53 #define PEDOMETER_MANAGER_API_GET_CONTEXT_INFO "getHumanActivityData"
54 #define PEDOMETER_MANAGER_API_START "start"
55 #define PEDOMETER_MANAGER_API_STOP "stop"
56
57 DECLARE_FUNCTION_GETTER(HumanActivityMonitor);
58
59 #define HUMANACTIVITYMONITOR_CHECK_ACCESS(functionName) \
60     aceCheckAccess<AceFunctionGetter, DefaultArgsVerifier<> >( \
61     getHumanActivityMonitorFunctionData, \
62     functionName)
63
64 }
65 }
66
67 #endif // _PEDOMETER_PLUGIN_CONFIG_H_