2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
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.
19 * This source code is a sample source code .
20 * Implementation of the function must be performed by the vendor.
23 #include <stub/DTime_Api.h>
24 #include <native_service/frameworkunified_framework_if.h>
26 #define DTIME_PARAM_NG FALSE
27 #define DTIME_PARAM_OK TRUE
29 /******************************************************************************
30 * API name : DTime_loadDisplaySetting
31 * Function : Load display setting
33 ******************************************************************************/
34 EFrameworkunifiedStatus DTime_loadDisplaySetting(HANDLE h_app, T_DisplaySetting *setting ) {
37 * This feature needs to be implemented by the vendor.
39 return eFrameworkunifiedStatusOK;
42 /******************************************************************************
43 * API name : DTime_getDisplaySetting
44 * Function : Get display setting
46 ******************************************************************************/
47 EFrameworkunifiedStatus DTime_getDisplaySetting(HANDLE h_app, T_DisplaySetting *setting ) {
50 * This feature needs to be implemented by the vendor.
52 return eFrameworkunifiedStatusOK;
55 /******************************************************************************
56 * API name : DTime_setGpsTime
57 * Function : GPS time setting
59 ******************************************************************************/
60 EFrameworkunifiedStatus DTime_setGpsTime(HANDLE h_app, T_DTIME_MSG_GPSTIME *gps_time ) {
63 * This feature needs to be implemented by the vendor.
65 return eFrameworkunifiedStatusOK;
68 /******************************************************************************
69 * API name : DTime_registerListener_DTime
70 * Function : Display time delivery registration
72 ******************************************************************************/
73 EFrameworkunifiedStatus DTime_registerListener_DTime(HANDLE h_app, PCSTR notify_name) {
76 * This feature needs to be implemented by the vendor.
78 return eFrameworkunifiedStatusOK;
81 /******************************************************************************
82 * API name : DTime_UnregisterListener_DTime
83 * Function : Release time delivery registration
85 ******************************************************************************/
86 EFrameworkunifiedStatus DTime_UnregisterListener_DTime(HANDLE h_app, PCSTR notify_name) {
89 * This feature needs to be implemented by the vendor.
91 return eFrameworkunifiedStatusOK;
94 /******************************************************************************
95 * API name : DTime_setAutoAdjust
96 * Function : GPS auto adjust setting
98 ******************************************************************************/
99 EFrameworkunifiedStatus DTime_setAutoAdjust(HANDLE h_app, BOOL setting, T_TimeOffset *offset) {
102 * This feature needs to be implemented by the vendor.
104 return eFrameworkunifiedStatusOK;
107 /******************************************************************************
108 * API name : DTime_increaseHour
109 * Function : Adjust the time (hour increaase)
111 ******************************************************************************/
112 EFrameworkunifiedStatus DTime_increaseHour(HANDLE h_app) {
115 * This feature needs to be implemented by the vendor.
117 return eFrameworkunifiedStatusOK;
120 /******************************************************************************
121 * API name : DTime_decreaseHour
122 * Function : Adjust the time (hour decrease)
124 ******************************************************************************/
125 EFrameworkunifiedStatus DTime_decreaseHour(HANDLE h_app) {
128 * This feature needs to be implemented by the vendor.
130 return eFrameworkunifiedStatusOK;
133 /******************************************************************************
134 * API name : DTime_increaseMinute
135 * Function : Adjust the time (minute increaase)
137 ******************************************************************************/
138 EFrameworkunifiedStatus DTime_increaseMinute(HANDLE h_app) {
141 * This feature needs to be implemented by the vendor.
143 return eFrameworkunifiedStatusOK;
146 /******************************************************************************
147 * API name : DTime_decreaseMinute
148 * Function : Adjust the time (minute decrease)
150 ******************************************************************************/
151 EFrameworkunifiedStatus DTime_decreaseMinute(HANDLE h_app) {
154 * This feature needs to be implemented by the vendor.
156 return eFrameworkunifiedStatusOK;
159 /******************************************************************************
160 * API name : DTime_clearMinute
161 * Function : Adjust the time (minute clear)
163 ******************************************************************************/
164 EFrameworkunifiedStatus DTime_clearMinute(HANDLE h_app) {
167 * This feature needs to be implemented by the vendor.
169 return eFrameworkunifiedStatusOK;
172 /******************************************************************************
173 * API name : DTime_setAMPM
174 * Function : AM/PM setting
176 ******************************************************************************/
177 EFrameworkunifiedStatus DTime_setAMPM(HANDLE h_app, BOOL meridiem) {
180 * This feature needs to be implemented by the vendor.
182 return eFrameworkunifiedStatusOK;
185 /******************************************************************************
186 * API name : DTime_setFormat
187 * Function : Format setting
189 ******************************************************************************/
190 EFrameworkunifiedStatus DTime_setFormat(HANDLE h_app, BOOL setting ) {
193 * This feature needs to be implemented by the vendor.
195 return eFrameworkunifiedStatusOK;
198 /******************************************************************************
199 * API name : DTime_setTimeZone
200 * Function : Time zone setting
202 ******************************************************************************/
203 EFrameworkunifiedStatus DTime_setTimeZone(HANDLE h_app, BOOL b_auto, T_TimeDiff *diff ) {
206 * This feature needs to be implemented by the vendor.
208 return eFrameworkunifiedStatusOK;
211 /******************************************************************************
212 * API name : DTime_setDST
213 * Function : DST setting
215 ******************************************************************************/
216 EFrameworkunifiedStatus DTime_setDST(HANDLE h_app, BOOL b_auto, BOOL setting ) {
219 * This feature needs to be implemented by the vendor.
221 return eFrameworkunifiedStatusOK;
225 /******************************************************************************
226 * API name : DTime_notifySwOff
227 * Function : SW OFF notification
229 * Note : Used to notify the SW OFF of on-screen operations.
230 ******************************************************************************/
231 EFrameworkunifiedStatus DTime_notifySwOff(HANDLE h_app) {
234 * This feature needs to be implemented by the vendor.
236 return eFrameworkunifiedStatusOK;
239 /** Parameter check functions **/
240 BOOL CheckParamTimeZone(T_TimeDiff *diff) {
243 * This feature needs to be implemented by the vendor.
245 return DTIME_PARAM_OK;