4 * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Kyuho Jo <kyuho.jo@samsung.com>, Sunghyun Kwon <sh0701.kwon@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
24 * This file defines all APIs of Auto Poll.
25 * @file email-daemon-auto-poll.h
28 * @brief This file is the header file of Auto Poll.
30 #ifndef __EMAIL_DAEMON_AUTO_POLL_H__
31 #define __EMAIL_DAEMON_AUTO_POLL_H__
33 #include "email-internal-types.h"
36 #ifdef __FEATURE_AUTO_POLLING__
41 #endif /* __cplusplus */
44 INTERNAL_FUNC int emdaemon_add_polling_alarm(int account_id, int alarm_interval);
45 INTERNAL_FUNC int emdaemon_remove_polling_alarm(int account_id);
46 INTERNAL_FUNC int emdaemon_check_auto_polling_started(int account_id);
47 INTERNAL_FUNC int emdaemon_alarm_polling_cb(alarm_id_t alarm_id, void* user_param);
48 INTERNAL_FUNC int emdaemon_free_account_alarm_binder_list();
52 #endif /* __cplusplus */
54 #endif /* __FEATURE_AUTO_POLLING__ */
56 #endif /* __EMAIL_DAEMON_AUTO_POLL_H__ */