Files
evolution/calendar/gui/itip-utils.h
JP Rosevear 2fe0e9f18f bail out if we couldn't send the cancel
2002-09-04  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/event-editor.c (event_editor_send_comp): bail out if
	we couldn't send the cancel

	* gui/dialogs/task-editor.c (task_editor_send_comp): ditto

	* gui/dialogs/comp-editor.c (save_comp_with_send): indicate send
	status
	(real_send_comp): return success/fail, only resave the component a
	if we successfully sent
	(comp_editor_send_comp): return success/fail

	* gui/itip-utils.h: update proto

	* gui/itip-utils.c (itip_send_comp): return true if we sent the
	message

svn path=/trunk/; revision=17966
2002-09-04 18:12:28 +00:00

45 lines
1.0 KiB
C

#ifndef ITIP_UTILS_HEADER
#define ITIP_UTILS_HEADER
#include <ical.h>
#include <string.h>
#include <glib.h>
#include <cal-client/cal-client.h>
#include <cal-util/cal-component.h>
typedef enum {
CAL_COMPONENT_METHOD_PUBLISH,
CAL_COMPONENT_METHOD_REQUEST,
CAL_COMPONENT_METHOD_REPLY,
CAL_COMPONENT_METHOD_ADD,
CAL_COMPONENT_METHOD_CANCEL,
CAL_COMPONENT_METHOD_REFRESH,
CAL_COMPONENT_METHOD_COUNTER,
CAL_COMPONENT_METHOD_DECLINECOUNTER
} CalComponentItipMethod;
typedef struct {
gchar *name;
gchar *address;
gchar *full;
gboolean default_address;
} ItipAddress;
GList *itip_addresses_get (void);
ItipAddress *itip_addresses_get_default (void);
void itip_address_free (ItipAddress *address);
void itip_addresses_free (GList *addresses);
gboolean itip_organizer_is_user (CalComponent *comp);
gboolean itip_sentby_is_user (CalComponent *comp);
const gchar *itip_strip_mailto (const gchar *address);
gboolean itip_send_comp (CalComponentItipMethod method, CalComponent *comp,
CalClient *client, icalcomponent *zones);
#endif