Merge "Do Not Use Repository in Build Script" into tizen
[platform/core/api/webapi-plugins.git] / src / alarm / alarm_utils.h
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
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 ALARM_ALARM_UTILS_H_
18 #define ALARM_ALARM_UTILS_H_
19
20 #include <app_control.h>
21 #include <app_alarm.h>
22
23 #include "common/picojson.h"
24 #include "common/platform_result.h"
25
26 namespace extension {
27 namespace alarm {
28 namespace util {
29
30 extern const char* kSundayShort;
31 extern const char* kMondayShort;
32 extern const char* kTuesdayShort;
33 extern const char* kWednesdayShort;
34 extern const char* kThuesdayShort;
35 extern const char* kFridayShort;
36 extern const char* kSaturdayShort;
37
38 common::PlatformResult AppControlToService(const picojson::object& obj, app_control_h *app_control);
39 common::PlatformResult AppControlToServiceExtraData(const picojson::object& app_obj,
40                                                     app_control_h *app_control);
41 common::PlatformResult ArrayDaysToMask(const picojson::array &days_of_the_week,
42                                                     int *repeat_value);
43 } // util
44 } // alarm
45 } // extension
46
47 #endif // ALARM_ALARM_UTILS_H_