Tizen 2.0 Release
[platform/core/messaging/email-service.git] / email-daemon / include / email-daemon-auto-poll.h
1 /*
2 *  email-service
3 *
4 * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
5 *
6 * Contact: Kyuho Jo <kyuho.jo@samsung.com>, Sunghyun Kwon <sh0701.kwon@samsung.com>
7
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
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
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.
19 *
20 */
21
22
23 /**
24  * This file defines all APIs of Auto Poll.
25  * @file        email-daemon-auto-poll.h
26  * @author  
27  * @version     0.1
28  * @brief       This file is the header file of Auto Poll.
29  */
30 #ifndef __EMAIL_DAEMON_AUTO_POLL_H__
31 #define __EMAIL_DAEMON_AUTO_POLL_H__
32
33 #include "email-internal-types.h"
34 #include "alarm.h"
35
36 #ifdef __FEATURE_AUTO_POLLING__
37
38 #ifdef __cplusplus
39 extern "C"
40 {
41 #endif /* __cplusplus */
42
43
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();
49
50 #ifdef __cplusplus
51 }
52 #endif /* __cplusplus */
53
54 #endif /* __FEATURE_AUTO_POLLING__ */
55
56 #endif /* __EMAIL_DAEMON_AUTO_POLL_H__ */
57 /* EOF */