3 * Copyright 2012 Samsung Electronics Co., Ltd
5 * Licensed under the Flora License, Version 1.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://floralicense.org/license/
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 #ifndef __CALENDAR_LIST_BROKER_H__
19 #define __CALENDAR_LIST_BROKER_H__
23 typedef void* cal_list_broker_h;
25 cal_list_broker_h cal_list_broker_create(struct tm* start_date, int direction,
26 bool include_completed_tasks);
28 void cal_list_broker_fetch(cal_list_broker_h cursor);
30 bool cal_list_broker_no_more(cal_list_broker_h cursor);
32 calendar_record_h cal_list_broker_get_next(cal_list_broker_h cursor, bool* day_has_changed);
34 const struct tm* cal_list_broker_get_current_day_p(cal_list_broker_h cursor);
36 void cal_list_broker_destroy(cal_list_broker_h cursor);