diff options
author | Kibum Kim <kb0929.kim@samsung.com> | 2012-02-27 21:15:52 +0900 |
---|---|---|
committer | Kibum Kim <kb0929.kim@samsung.com> | 2012-02-27 21:15:52 +0900 |
commit | 4c73c3e1e4085d17f8f9cfe0ec4c41bc9e0cb826 (patch) | |
tree | f86bd5ef488a8497efc5022d4f614cd0bba133d4 /email-core/include/em-core-mailbox.h | |
download | email-service-4c73c3e1e4085d17f8f9cfe0ec4c41bc9e0cb826.tar.gz email-service-4c73c3e1e4085d17f8f9cfe0ec4c41bc9e0cb826.tar.bz2 email-service-4c73c3e1e4085d17f8f9cfe0ec4c41bc9e0cb826.zip |
tizen beta release
Diffstat (limited to 'email-core/include/em-core-mailbox.h')
-rwxr-xr-x | email-core/include/em-core-mailbox.h | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/email-core/include/em-core-mailbox.h b/email-core/include/em-core-mailbox.h new file mode 100755 index 0000000..9c1066d --- /dev/null +++ b/email-core/include/em-core-mailbox.h @@ -0,0 +1,91 @@ +/* +* email-service +* +* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. +* +* Contact: Kyuho Jo <kyuho.jo@samsung.com>, Sunghyun Kwon <sh0701.kwon@samsung.com> +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +*/ + + + +/****************************************************************************** + * File : em-core-mailbox.h + * Desc : Local Mailbox Management Header + * + * Auth : + * + * History : + * 2006.08.16 : created + *****************************************************************************/ +#ifndef __EM_CORE_MAILBOX_H__ +#define __EM_CORE_MAILBOX_H__ + +#ifdef __cplusplus +extern "C" +{ +#endif /* __cplusplus */ + +#include "c-client.h" + +#if !defined(EXPORT_API) +#define EXPORT_API __attribute__((visibility("default"))) +#endif + +typedef enum +{ + EM_CORE_STREAM_TYPE_RECV = 0, + EM_CORE_STREAM_TYPE_SEND, +} em_core_stream_type_t; + +#ifdef __FEATURE_KEEP_CONNECTION__ +EXPORT_API int em_core_remove_connection_info(int account_id); +#endif /* __FEATURE_KEEP_CONNECTION__ */ +/* in SMTP case, path argument must be (ENCODED_PATH_SMTP) */ +/* ex) em_core_mailbox_open(xxx, (char *)ENCODED_PATH_SMTP, xxx, xxx); */ +EXPORT_API int em_core_mailbox_open_with_account_info(emf_account_t *ref_account, char *mailbox, void **mail_stream, int *err_code); +EXPORT_API int em_core_mailbox_open(int account_id, char *mailbox, void **mail_stream, int *err_code); +EXPORT_API int em_core_mailbox_close(int account_id, void *mail_stream); +#ifdef __FEATURE_KEEP_CONNECTION__ +EXPORT_API void em_core_close_receiving_stream(); +EXPORT_API void em_core_close_partial_body_stream(); +EXPORT_API void em_core_reset_streams(); +#endif + +EXPORT_API int em_core_mailbox_get_list_to_be_sync(int account_id, emf_mailbox_t **mailbox_list, int *p_count, int *err_code); +EXPORT_API int em_core_mailbox_get_list(int account_id, emf_mailbox_t **mailbox_list, int *p_count, int *err_code); +EXPORT_API int em_core_mailbox_free(emf_mailbox_t **mailbox_list, int count, int *err_code); +EXPORT_API int em_core_mailbox_get_mail_count(emf_mailbox_t *mailbox, int *total, int *unseen, int *err_code); +EXPORT_API int em_core_mailbox_create(emf_mailbox_t *new_mailbox, int on_server, int *err_code); +EXPORT_API int em_core_mailbox_delete(emf_mailbox_t *mailbox, int on_server, int *err_code); +EXPORT_API int em_core_mailbox_delete_all(emf_mailbox_t *mailbox, int *err_code); +EXPORT_API int em_core_mailbox_update(emf_mailbox_t *old_mailbox, emf_mailbox_t *new_mailbox, int *err_code); +EXPORT_API int em_core_save_local_activity_sync(int account_id, int *err_code); +EXPORT_API void em_core_bind_mailbox_type(emf_mailbox_t *mailbox_list); +EXPORT_API int em_core_send_mail_event(emf_mailbox_t *mailbox, int mail_id , int *err_code); +EXPORT_API int em_core_partial_body_thd_local_activity_sync(int *is_event_inserted, int *err_code); +EXPORT_API int em_core_get_mailbox_by_type(int account_id, emf_mailbox_type_e mailbox_type, emf_mailbox_t *spam_mailbox, int *err_code); + +#ifdef __LOCAL_ACTIVITY__ +EXPORT_API int em_core_local_activity_sync(int account_id, int *err_code); +EXPORT_API int em_core_save_local_activity_sync(int account_id, int *err_code); +#endif + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif |