diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-04-26 23:05:33 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:57 +0800 |
commit | 4d02935fbb960375d57912bdd6ca20d2ba73b233 (patch) | |
tree | c85f7a1964ddb9e8963b2223e2859c630604dd17 /calendar/gui/itip-utils.h | |
parent | 5294ca6fc8ae393c88678b8a61cb71a22ee067af (diff) | |
download | gsoc2013-evolution-4d02935fbb960375d57912bdd6ca20d2ba73b233.tar.gz gsoc2013-evolution-4d02935fbb960375d57912bdd6ca20d2ba73b233.tar.zst gsoc2013-evolution-4d02935fbb960375d57912bdd6ca20d2ba73b233.zip |
itip-utils cleanups.
Diffstat (limited to 'calendar/gui/itip-utils.h')
-rw-r--r-- | calendar/gui/itip-utils.h | 64 |
1 files changed, 40 insertions, 24 deletions
diff --git a/calendar/gui/itip-utils.h b/calendar/gui/itip-utils.h index 5f320f871e..0362cb0314 100644 --- a/calendar/gui/itip-utils.h +++ b/calendar/gui/itip-utils.h @@ -17,8 +17,8 @@ * */ -#ifndef ITIP_UTILS_HEADER -#define ITIP_UTILS_HEADER +#ifndef ITIP_UTILS_H +#define ITIP_UTILS_H #include <libical/ical.h> #include <string.h> @@ -27,6 +27,8 @@ #include <libecal/e-cal-component.h> #include <libedataserver/e-account-list.h> +G_BEGIN_DECLS + typedef enum { E_CAL_COMPONENT_METHOD_PUBLISH, E_CAL_COMPONENT_METHOD_REQUEST, @@ -48,27 +50,41 @@ struct CalMimeAttach { guint length; }; -gboolean itip_organizer_is_user (ECalComponent *comp, ECal *client); -gboolean itip_organizer_is_user_ex (ECalComponent *comp, ECal *client, gboolean skip_cap_test); -gboolean itip_sentby_is_user (ECalComponent *comp, ECal *client); - -const gchar *itip_strip_mailto (const gchar *address); - -gchar *itip_get_comp_attendee (ECalComponent *comp, ECal *client); - -gboolean itip_send_comp (ECalComponentItipMethod method, ECalComponent *comp, - ECal *client, icalcomponent *zones, GSList *attachments_list, GList *users, - gboolean strip_alarms, gboolean only_new_attendees); - -gboolean itip_publish_comp (ECal *client, gchar * uri, gchar * username, - gchar * password, ECalComponent **pub_comp); - -gboolean itip_publish_begin (ECalComponent *pub_comp, ECal *client, - gboolean cloned, ECalComponent **clone); - -gboolean reply_to_calendar_comp (ECalComponentItipMethod method, ECalComponent *send_comp, - ECal *client, gboolean reply_all, icalcomponent *zones, GSList *attachments_list); +gboolean itip_organizer_is_user (ECalComponent *comp, + ECal *client); +gboolean itip_organizer_is_user_ex (ECalComponent *comp, + ECal *client, + gboolean skip_cap_test); +gboolean itip_sentby_is_user (ECalComponent *comp, + ECal *client); +const gchar * itip_strip_mailto (const gchar *address); +gchar * itip_get_comp_attendee (ECalComponent *comp, + ECal *client); +gboolean itip_send_comp (ECalComponentItipMethod method, + ECalComponent *comp, + ECal *client, + icalcomponent *zones, + GSList *attachments_list, + GList *users, + gboolean strip_alarms, + gboolean only_new_attendees); +gboolean itip_publish_comp (ECal *client, + gchar *uri, + gchar *username, + gchar *password, + ECalComponent **pub_comp); +gboolean itip_publish_begin (ECalComponent *pub_comp, + ECal *client, + gboolean cloned, + ECalComponent **clone); +gboolean reply_to_calendar_comp (ECalComponentItipMethod method, + ECalComponent *send_comp, + ECal *client, + gboolean reply_all, + icalcomponent *zones, + GSList *attachments_list); +gboolean is_icalcomp_valid (icalcomponent *icalcomp); -gboolean is_icalcomp_valid (icalcomponent *icalcomp); +G_END_DECLS -#endif +#endif /* ITIP_UTILS_H */ |