diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-08-21 01:25:21 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-08-24 03:21:59 +0800 |
commit | 7c1ec3723ad7367449c93e8559c27158b24a51dd (patch) | |
tree | 643be187abc027398868d87a8befe88db5bc330e /calendar/common/authentication.h | |
parent | bd5e9031b9dc61669723f7ec6e0de3d7138a43d6 (diff) | |
download | gsoc2013-evolution-7c1ec3723ad7367449c93e8559c27158b24a51dd.tar.gz gsoc2013-evolution-7c1ec3723ad7367449c93e8559c27158b24a51dd.tar.zst gsoc2013-evolution-7c1ec3723ad7367449c93e8559c27158b24a51dd.zip |
Add e_load_cal_source_async().
Similar to e_load_book_source_async() in libedataserverui (and may wind
up there eventually). This replaces e_auth_new_cal_from_source().
void e_load_cal_source_async (ESource *source,
ECalSourceType source_type,
icaltimezone *default_zone,
GtkWindow *parent,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
ECal * e_load_cal_source_finish (ESource *source,
GAsyncResult *result,
GError **error);
Diffstat (limited to 'calendar/common/authentication.h')
-rw-r--r-- | calendar/common/authentication.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/calendar/common/authentication.h b/calendar/common/authentication.h index d48ca3edc2..11b2dc1dfc 100644 --- a/calendar/common/authentication.h +++ b/calendar/common/authentication.h @@ -21,9 +21,10 @@ * */ -#ifndef _AUTHENTICATION_H_ -#define _AUTHENTICATION_H_ +#ifndef AUTHENTICATION_H +#define AUTHENTICATION_H +#include <gtk/gtk.h> #include <libedataserver/e-source.h> #include <libecal/e-cal.h> @@ -31,4 +32,15 @@ ECal *e_auth_new_cal_from_default (ECalSourceType type); ECal *e_auth_new_cal_from_source (ESource *source, ECalSourceType type); void e_auth_cal_forget_password (ECal *ecal); -#endif +void e_load_cal_source_async (ESource *source, + ECalSourceType source_type, + icaltimezone *default_zone, + GtkWindow *parent, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +ECal * e_load_cal_source_finish (ESource *source, + GAsyncResult *result, + GError **error); + +#endif /* AUTHENTICATION_H */ |