2 * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
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 ALARM_ALARM_UTILS_H_
18 #define ALARM_ALARM_UTILS_H_
20 #include <app_control.h>
21 #include <app_alarm.h>
23 #include "common/picojson.h"
24 #include "common/platform_result.h"
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;
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,
47 #endif // ALARM_ALARM_UTILS_H_