/* * Contacts Service * * Copyright (c) 2010 - 2012 Samsung Electronics Co., Ltd. All rights reserved. * * Contact: Youngjae Shin * * 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. * */ #ifndef __CTS_UTILS_H__ #define __CTS_UTILS_H__ #include #define CTS_IMG_PATH_SIZE_MAX 1024 #define CTS_IMAGE_LOCATION "/opt/data/contacts-svc/img" #define CTS_VCARD_IMAGE_LOCATION "/opt/data/contacts-svc/img/vcard" #define CTS_NOTI_CONTACT_CHANGED_DEF "/opt/data/contacts-svc/.CONTACTS_SVC_DB_CHANGED" #define CTS_VCONF_DISPLAY_ORDER_DEF "db/service/contacts/name_display_order" void cts_deregister_noti(void); void cts_register_noti(void); int cts_get_default_language(void); void cts_set_contact_noti(void); void cts_set_plog_noti(void); void cts_set_missed_call_noti(void); void cts_set_favor_noti(void); void cts_set_speed_noti(void); void cts_set_addrbook_noti(void); void cts_set_group_noti(void); void cts_set_group_rel_noti(void); int cts_exist_file(char *path); int cts_convert_nicknames2textlist(GSList *src, char *dest, int dest_size); GSList* cts_convert_textlist2nicknames(char *text_list); int cts_increase_outgoing_count(int contact_id); int cts_get_next_ver(void); int cts_update_contact_changed_time(int contact_id); int cts_delete_image_file(int img_type, int index); int cts_add_image_file(int img_type, int index, char *src_img, char *dest_name, int dest_size); int cts_update_image_file(int img_type, int index, char *src_img, char *dest_name, int dest_size); #ifndef __CONTACTS_SVC_H__ // #endif //#ifndef __CONTACTS_SVC_H__ #endif //__CTS_UTILS_H__