1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2009 Intel Corporation
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of version 2 of the GNU Lesser General Public
7 * License as published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
19 * Author: Travis Reitter (travis.reitter@collabora.co.uk)
22 #ifndef _ECAL_TEST_UTILS_H
23 #define _ECAL_TEST_UTILS_H
25 #include <libecal/e-cal.h>
35 test_print (const gchar *format,
39 ecal_test_utils_cal_new_temp (gchar **uri,
43 ecal_test_utils_cal_open (ECal *cal,
44 gboolean only_if_exists);
47 ecal_test_utils_cal_async_open (ECal *cal,
48 gboolean only_if_exists,
53 ecal_test_utils_cal_get_alarm_email_address (ECal *cal);
56 ecal_test_utils_cal_get_cal_address (ECal *cal);
59 ecal_test_utils_cal_get_ldap_attribute (ECal *cal);
62 ecal_test_utils_cal_get_capabilities (ECal *cal);
65 ecal_test_utils_cal_get_free_busy (ECal *cal,
71 ecal_test_utils_cal_assert_objects_equal_shallow (icalcomponent *a,
75 ecal_test_utils_cal_assert_e_cal_components_equal (ECalComponent *a,
79 ecal_test_utils_cal_get_object (ECal *cal,
83 ecal_test_utils_cal_modify_object (ECal *cal,
84 icalcomponent *component,
85 CalObjModType mod_type);
88 ecal_test_utils_cal_remove_object (ECal *cal,
92 ecal_test_utils_cal_get_default_object (ECal *cal);
95 ecal_test_utils_cal_get_object_list (ECal *cal,
99 ecal_test_utils_cal_get_objects_for_uid (ECal *cal,
103 ecal_test_utils_cal_create_object (ECal *cal,
104 icalcomponent *component);
107 ecal_test_utils_cal_set_mode (ECal *cal,
109 GSourceFunc callback,
113 ecal_test_utils_create_component (ECal *cal,
114 const gchar *dtstart,
115 const gchar *dtstart_tzid,
117 const gchar *dtend_tzid,
118 const gchar *summary,
119 ECalComponent **comp_out,
123 ecal_test_utils_cal_component_set_icalcomponent (ECalComponent *e_component,
124 icalcomponent *component);
127 ecal_test_utils_cal_get_timezone (ECal *cal,
131 ecal_test_utils_cal_add_timezone (ECal *cal,
135 ecal_test_utils_cal_set_default_timezone (ECal *cal,
139 ecal_test_utils_cal_send_objects (ECal *cal,
140 icalcomponent *component,
142 icalcomponent **component_final);
145 ecal_test_utils_cal_receive_objects (ECal *cal,
146 icalcomponent *component);
149 ecal_test_utils_get_query (ECal *cal,
152 #endif /* _ECAL_TEST_UTILS_H */