2 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __CONTEXT_APP_HISTORY_TYPES_PRIVATE_H__
18 #define __CONTEXT_APP_HISTORY_TYPES_PRIVATE_H__
20 #include <ContextTypes.h>
21 #include <SharedUtil.h>
23 #define CTX_APP_HISTORY "AppHistory"
24 #define CTX_APP_HISTORY_SPEC \
25 "<method name='readJson'>" \
26 " <arg type='s' name='uri' direction='in'/>" \
27 " <arg type='s' name='option' direction='in'/>" \
28 " <arg type='s' name='columnNames' direction='out'/>" \
29 " <arg type='v' name='result' direction='out'/>" \
31 "<method name='isSupported'>" \
32 " <arg type='s' name='uri' direction='in'/>" \
34 "<method name='getLastFullyChargedTime'>" \
35 " <arg type='i' name='result' direction='out'/>" \
38 #define CTX_APP_HISTORY_DB_PATH "context-app-history"
40 /* FW-wide Data Logger Parameters */
41 #define LOG_RETENTION_PERIOD 7776000 /* 90 days in secs */
43 /* FW-wide Default Values */
44 #define DEFAULT_TIME_SPAN 30
45 #define DEFAULT_LIMIT 10