Added function to check whether a history item is supported
[platform/core/context/app-history.git] / src / shared / AppHistoryTypesPrivate.h
1 /*
2  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 #ifndef __CONTEXT_APP_HISTORY_TYPES_PRIVATE_H__
18 #define __CONTEXT_APP_HISTORY_TYPES_PRIVATE_H__
19
20 #include <ContextTypes.h>
21 #include <SharedUtil.h>
22
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'/>" \
30         "</method>" \
31         "<method name='isSupported'>" \
32         "       <arg type='s' name='uri' direction='in'/>" \
33         "</method>" \
34         "<method name='getLastFullyChargedTime'>" \
35         "       <arg type='i' name='result' direction='out'/>" \
36         "</method>"
37
38 #define CTX_APP_HISTORY_DB_PATH "context-app-history"
39
40 /* FW-wide Data Logger Parameters */
41 #define LOG_RETENTION_PERIOD    7776000         /* 90 days in secs */
42
43 /* FW-wide Default Values */
44 #define DEFAULT_TIME_SPAN               30
45 #define DEFAULT_LIMIT                   10
46
47 #endif