Adapt libecal to the new ESource API.
[platform/upstream/evolution-data-server.git] / tests / libecal / client / client-test-utils.h
1 #ifndef CLIENT_TEST_UTILS_H
2 #define CLIENT_TEST_UTILS_H
3
4 #include <libecal/e-cal-client.h>
5 #include <libedataserver/e-source-registry.h>
6
7 void print_ecomp (ECalComponent *ecalcomp);
8 void print_icomp (icalcomponent *icalcomp);
9 void report_error (const gchar *operation, GError **error);
10
11 void main_initialize (void);
12 void start_main_loop (GThreadFunc func, gpointer data);
13 void start_in_thread_with_main_loop (GThreadFunc func, gpointer data);
14 void start_in_idle_with_main_loop (GThreadFunc func, gpointer data);
15 void stop_main_loop (gint stop_result);
16 gint get_main_loop_stop_result (void);
17
18 void foreach_configured_source (ESourceRegistry *registry, ECalClientSourceType source_type, void (*func) (ESource *source, ECalClientSourceType source_type));
19 gpointer foreach_configured_source_async_start (ESourceRegistry *registry, ECalClientSourceType source_type, ESource **source);
20 gboolean foreach_configured_source_async_next (gpointer *foreach_async_data, ESource **source);
21 ECalClientSourceType foreach_configured_source_async_get_source_type (gpointer foreach_async_data);
22
23 ECalClient *new_temp_client (ECalClientSourceType source_type, gchar **uri);
24
25 #endif /* CLIENT_TEST_UTILS_H */