*
*/
-#include <stdlib.h> //calloc
+#include <stdlib.h> //calloc
#include <pims-ipc.h>
-#include <glib-object.h> //g_type_init
+#include <glib-object.h> //g_type_init
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
-#include "calendar_service.h"
-#include "calendar_db.h"
-#include "calendar_types.h"
+#include "calendar.h"
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_inotify.h"
#include <stdlib.h> //calloc
#include <pims-ipc.h>
-#include "calendar_service.h"
-#include "calendar_db.h"
-#include "calendar_types.h"
-#include "calendar_reminder.h"
-
+#include "calendar.h"
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_inotify.h"
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_view.h"
-
#include "cal_filter.h"
static int _cal_filter_create_attribute(cal_composite_filter_s *com_filter, unsigned int property_id,
#include "cal_typedef.h"
#include "cal_view.h"
#include "cal_filter.h"
-
#include "cal_query.h"
static bool _cal_query_property_check(const cal_property_info_s *properties,
*/
-#include <stdlib.h> //calloc
-#include <stdbool.h> //bool
+#include <stdlib.h> // calloc
+#include <stdbool.h> // bool
#include <string.h>
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_view.h"
-
#include "cal_record.h"
#define __CHECK_READ_ONLY_PROPERTY() \
* limitations under the License.
*
*/
-#include <stdlib.h> //calloc
-#include <stdbool.h> //bool
+
+#include <stdlib.h> // calloc
+#include <stdbool.h> // bool
#include <string.h>
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_view.h"
-
#include "cal_record.h"
static int _cal_record_alarm_create( calendar_record_h* out_record );
* limitations under the License.
*
*/
-#include <stdlib.h> //calloc
-#include <stdbool.h> //bool
+
+#include <stdlib.h> // calloc
+#include <stdbool.h> // bool
#include <string.h>
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_view.h"
-
#include "cal_record.h"
static int _cal_record_attendee_create( calendar_record_h* out_record );
* limitations under the License.
*
*/
-#include <stdlib.h> //calloc
-#include <stdbool.h> //bool
+
+#include <stdlib.h> // calloc
+#include <stdbool.h> // bool
#include <string.h>
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_view.h"
-
#include "cal_record.h"
static int _cal_record_calendar_create( calendar_record_h* out_record );
* limitations under the License.
*
*/
-#include <stdlib.h> //calloc
-#include <stdbool.h> //bool
+
+#include <stdlib.h> // calloc
+#include <stdbool.h> // bool
#include <string.h>
#include "calendar_list.h"
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_view.h"
-
#include "cal_record.h"
static int _cal_record_extended_create( calendar_record_h* out_record );
* limitations under the License.
*
*/
-#include <stdlib.h> //calloc
-#include <stdbool.h> //bool
+
+#include <stdlib.h> // calloc
+#include <stdbool.h> // bool
#include <string.h>
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_view.h"
-
#include "cal_record.h"
static int _cal_record_instance_allday_create( calendar_record_h* out_record );
* limitations under the License.
*
*/
-#include <stdlib.h> //calloc
-#include <stdbool.h> //bool
+
+#include <stdlib.h> // calloc
+#include <stdbool.h> // bool
#include <string.h>
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_view.h"
-
#include "cal_record.h"
static int _cal_record_instance_allday_extended_create( calendar_record_h* out_record );
* limitations under the License.
*
*/
-#include <stdlib.h> //calloc
-#include <stdbool.h> //bool
+
+#include <stdlib.h> // calloc
+#include <stdbool.h> // bool
#include <string.h>
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_view.h"
-
#include "cal_record.h"
static int _cal_record_instance_normal_create( calendar_record_h* out_record );
* limitations under the License.
*
*/
-#include <stdlib.h> //calloc
-#include <stdbool.h> //bool
+
+#include <stdlib.h> // calloc
+#include <stdbool.h> // bool
#include <string.h>
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_view.h"
-
#include "cal_record.h"
static int _cal_record_instance_normal_extended_create( calendar_record_h* out_record );
*
*/
-#include <stdlib.h> //calloc
-#include <stdbool.h> //bool
+#include <stdlib.h> // calloc
+#include <stdbool.h> // bool
#include <string.h>
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_view.h"
-
#include "cal_record.h"
static int _cal_record_search_create( calendar_record_h* out_record );
* limitations under the License.
*
*/
-#include <stdlib.h>
-#include <stdbool.h>
+
+#include <stdlib.h> // calloc
+#include <stdbool.h> // bool
#include <string.h>
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_view.h"
-
#include "cal_record.h"
static int _cal_record_timezone_create( calendar_record_h* out_record );
* limitations under the License.
*
*/
-#include <stdlib.h> //calloc
-#include <stdbool.h> //bool
+
+#include <stdlib.h> // calloc
+#include <stdbool.h> // bool
#include <string.h>
#include "calendar_list.h"
-
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_view.h"
#include "cal_list.h"
-
#include "cal_record.h"
static int _cal_record_todo_create( calendar_record_h* out_record );
*
*/
-#include <stdlib.h> //calloc
-#include <stdbool.h> //bool
+#include <stdlib.h> // calloc
+#include <stdbool.h> // bool
#include <string.h>
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_view.h"
+#include "cal_record.h"
static int _cal_record_updated_info_create( calendar_record_h* out_record );
static int _cal_record_updated_info_destroy( calendar_record_h record, bool delete_child );
#include "calendar.h"
#include "cal_internal.h"
#include "cal_typedef.h"
-
#include "cal_time.h"
#define ULOC_LOCALE_IDENTIFIER_CAPACITY (ULOC_FULLNAME_CAPACITY + 1 + ULOC_KEYWORD_AND_VALUES_CAPACITY)
#include <stdlib.h>
#include "calendar_vcalendar.h"
-
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_record.h"
#include "cal_view.h"
#include "cal_time.h"
#include "cal_list.h"
-
#include "cal_vcalendar.h"
#include "cal_vcalendar_make.h"
#include "cal_vcalendar_parse.h"
*
*/
-
#include <vasum.h>
+
#include "calendar_errors.h"
#include "cal_internal.h"
#include "cal_zone.h"
int cal_is_owner(int calendarbook_id);
#endif // __CALENDAR_SVC_ACCESS_CONTROL_H__
-
*
*/
-#include <unistd.h>
-#include <glib.h>
-#include <glib-object.h>
-#include <db-util.h>
-
-#include "cal_service.h"
#include "cal_internal.h"
#include "cal_typedef.h"
-#include "cal_db.h"
+#include "cal_db_util.h"
#include "cal_view.h"
#include "cal_mutex.h"
--- /dev/null
+/*
+ * Calendar Service
+ *
+ * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * 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 __CALENDAR_SVC_CALENDAR_H__
+#define __CALENDAR_SVC_CALENDAR_H__
+
+void cal_calendar_internal_disconnect(const char *zone_name);
+int cal_connect(const char *zone_name);
+int cal_disconnect(const char *zone_name);
+
+#endif // __CALENDAR_SVC_CALENDAR_H__
*
*/
-#include <unistd.h>
+#include <unistd.h> // sleep
#include <glib.h>
#include <db-util.h>
#include <stdlib.h>
-#include "calendar_db.h" //calendar_db_get_record
-
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_view.h"
#include <stdio.h>
#include <stdlib.h>
-#include "calendar_db.h"
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_view.h"
#include <stdlib.h>
#include "calendar_reminder.h"
-
#include "cal_internal.h"
#include "cal_typedef.h"
#include "cal_view.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <grp.h>
#include <sys/types.h>
#include <unistd.h> //getuid
-#include <pims-ipc.h>
-#include <pims-ipc-svc.h>
#include <glib-object.h>
#include <alarm.h>
#include <contacts.h>
#include "cal_internal.h" // DBG
#include "cal_ipc.h"
#include "cal_server_ipc.h"
-#include "cal_typedef.h"
#include "cal_inotify.h"
-
#include "cal_db.h" // CAL_SECURITY_FILE_GROUP
-
#include "cal_server_contacts.h"
#include "cal_server_alarm.h"
#include "cal_server_calendar_delete.h"
#include <vconf.h>
#include <app.h>
-#include "cal_internal.h"
#include "calendar.h"
-#include "cal_time.h"
#include "cal_typedef.h"
+#include "cal_internal.h"
+#include "cal_time.h"
#include "cal_inotify.h"
#include "cal_db_util.h"
*
*/
-#include <stdlib.h> //calloc
+#include <stdlib.h> //calloc
#include <glib.h>
#include <unistd.h> //sleep
#include <unistd.h> // usleep
#include "calendar.h"
-#include "cal_internal.h" // DBG
#include "cal_typedef.h"
+#include "cal_internal.h" // DBG
#include "cal_db.h"
#include "cal_db_util.h"
#include "cal_time.h"
#include <stdlib.h>
#include <pims-ipc-svc.h>
+#include <pims-ipc-data.h>
#include "calendar.h"
#include "cal_internal.h" // DBG
#include <db-util.h>
#include <stdlib.h>
-#include "cal_internal.h"
#include "cal_typedef.h"
+#include "cal_internal.h"
#include "cal_db.h"
#define __USER_VERSION 105