95a64e6bb4a6baa9fc21a294a1288546c3565b5e
[platform/core/context/app-history.git] / include / private / AppHistoryTypes.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_H__
18 #define __CONTEXT_APP_HISTORY_TYPES_H__
19
20 #define SUBJ_USAGE_STATS_BASE           "stats/app/"
21 #define SUBJ_APP_RECENTLY_USED          SUBJ_USAGE_STATS_BASE "recently"
22 #define SUBJ_APP_FREQUENTLY_USED        SUBJ_USAGE_STATS_BASE "often"
23 #define SUBJ_APP_RARELY_USED            SUBJ_USAGE_STATS_BASE "rarely"
24
25 #define SUBJ_BATTERY_STATS_BASE         "stats/battery/"
26 #define SUBJ_BATTERY_USAGE                      SUBJ_BATTERY_STATS_BASE "history"
27 #define SUBJ_BATTERY_RECENT_USAGE       SUBJ_BATTERY_STATS_BASE "since_last_charge"
28
29 /* Legacy */
30 #define SUBJ_APP_PEAK_TIME                      SUBJ_USAGE_STATS_BASE "peak_time"
31 #define SUBJ_APP_COMMON_SETTING         SUBJ_USAGE_STATS_BASE "setting"
32 #define SUBJ_APP_FREQUENCY                      SUBJ_USAGE_STATS_BASE "frequency"
33
34 #define SUBJ_MEDIA_LOGGER                       "stats/media/logger"
35 #define SUBJ_MUSIC_STATS                        "stats/music/"
36 #define SUBJ_MUSIC_PEAK_TIME            SUBJ_MUSIC_STATS "peak_time"
37 #define SUBJ_MUSIC_COMMON_SETTING       SUBJ_MUSIC_STATS "setting"
38 #define SUBJ_MUSIC_FREQUENCY            SUBJ_MUSIC_STATS "frequency"
39 #define SUBJ_VIDEO_STATS                        "stats/video/"
40 #define SUBJ_VIDEO_PEAK_TIME            SUBJ_VIDEO_STATS "peak_time"
41 #define SUBJ_VIDEO_COMMON_SETTING       SUBJ_VIDEO_STATS "setting"
42 #define SUBJ_VIDEO_FREQUENCY            SUBJ_VIDEO_STATS "frequency"
43
44 #define SUBJ_SOCIAL_STATS                       "stats/contact/"
45 #define SUBJ_SOCIAL_FREQ_ADDRESS        SUBJ_SOCIAL_STATS "often"
46 #define SUBJ_SOCIAL_FREQUENCY           SUBJ_SOCIAL_STATS "frequency"
47
48 /* Data & Option Keys */
49 #define KEY_CLIENT_PKG_ID       "_ClientPkgId_" /* Special key for internal use */
50 #define KEY_QUERY_RESULT        "QueryResult"
51 #define KEY_RESULT_SIZE         "ResultSize"
52 #define KEY_COL_ROW_ID          "rowId"
53 #define KEY_TIME_SPAN           "TimeSpan"
54 #define KEY_START_TIME          "StartTime"
55 #define KEY_END_TIME            "EndTime"
56 #define KEY_LAST_TIME           "LastTime"
57 #define KEY_TOTAL_COUNT         "TotalCount"
58 #define KEY_TOTAL_AMOUNT        "TotalAmount"
59 #define KEY_AVERAGE_COUNT       "AvgCount"
60 #define KEY_DURATION            "Duration"
61 #define KEY_TOTAL_DURATION      "TotalDuration"
62 #define KEY_DAY_OF_WEEK         "DayOfWeek"
63 #define KEY_HOUR_OF_DAY         "HourOfDay"
64 #define KEY_TIME_OF_DAY         "TimeOfDay"
65 #define KEY_TOTAL_COUNT         "TotalCount"
66 #define KEY_APP_ID                      "AppId"
67 #define KEY_PKG_ID                      "PkgId"
68 #define KEY_AUDIO_JACK          "AudioJack"
69 #define KEY_SYSTEM_VOLUME       "SystemVolume"
70 #define KEY_MEDIA_VOLUME        "MediaVolume"
71 #define KEY_BSSID                       "BSSID"
72 #define KEY_UNIV_TIME           "UTC"
73 #define KEY_LOCAL_TIME          "LocalTime"
74 #define KEY_RANK                        "Rank"
75 #define KEY_COMMUNICATION_TYPE  "CommunicationType"
76 #define KEY_USED_TIME           "UsedTime"
77
78 #define KEY_EVENT                       "Event"
79 #define KEY_STATE                       "State"
80 #define KEY_TYPE                        "Type"
81 #define KEY_LEVEL                       "Level"
82 #define KEY_ACCURACY            "Accuracy"
83 #define KEY_BSSID                       "BSSID"
84 #define KEY_MEDIUM                      "Medium"
85 #define KEY_ADDRESS                     "Address"
86 #define KEY_IS_CONNECTED        "IsConnected"
87 #define KEY_IS_ENABLED          "IsEnabled"
88 #define KEY_IS_CHARGING         "IsCharging"
89 #define KEY_DETECTED            "Detected"
90 #define KEY_DAY_OF_MONTH        "DayOfMonth"
91 #define KEY_PLACE_ID            "PlaceId"
92
93
94 /* Data & Option Values */
95 #define VAL_TRUE                        1
96 #define VAL_FALSE                       0
97 #define VAL_ENTER                       "Enter"
98 #define VAL_EXIT                        "Exit"
99 #define VAL_DISABLED            "Disabled"
100 #define VAL_CONNECTED           "Connected"
101 #define VAL_UNCONNECTED         "Unconnected"
102 #define VAL_SEARCHING           "Searching"
103 #define VAL_EMPTY                       "Empty"
104 #define VAL_CRITICAL            "Critical"
105 #define VAL_LOW                         "Low"
106 #define VAL_NORMAL                      "Normal"
107 #define VAL_HIGH                        "High"
108 #define VAL_FULL                        "Full"
109 #define VAL_HEADSET                     "Headset"
110 #define VAL_BLUETOOTH           "Bluetooth"
111 #define VAL_IDLE                        "Idle"
112 #define VAL_CONNECTING          "Connecting"
113 #define VAL_CONNECTED           "Connected"
114 #define VAL_HELD                        "Held"
115 #define VAL_DIALING                     "Dialing"
116 #define VAL_VOICE                       "Voice"
117 #define VAL_VIDEO                       "Video"
118 #define VAL_SENT                        "Sent"
119 #define VAL_RECEIVED            "Received"
120 #define VAL_SMS                         "SMS"
121 #define VAL_MMS                         "MMS"
122 #define VAL_MY_PROFILE          "MyProfile"
123 #define VAL_PERSON                      "Person"
124 #define VAL_CHANGED                     "Changed"
125 #define VAL_DETECTED            "Detected"
126 #define VAL_UNCERTAIN           "Uncertain"
127 #define VAL_IN                          "In"
128 #define VAL_OUT                         "Out"
129
130 #define VAL_ACTIVE              VAL_CONNECTED
131 #define VAL_ALERTING    VAL_CONNECTING
132 #define VAL_INCOMING    VAL_CONNECTING
133
134
135 #define COLUMN_NAME_DELIMITER ","
136
137 #endif