2001-10-09 JP Rosevear <jpr@ximian.com> * gui/itip-utils.c (get_address): util function to get address (itip_addresses_get_default): get only the default address (itip_address_free): free single address (itip_addresses_free): use above (comp_limit_attendees): limit the number of attendees to one, the user (comp_sentby): set the sentby parameter if the user is not the organizer (comp_minimal): remove extraneous info for send (for refresh and declinecounter) (comp_compliant): remove all alarms, do various things to make the components comply with itip spec based on method (itip_send_comp): use comp_compliant method * gui/itip-utils.h: new protos * gui/e-itip-control.c: rescan the component when necessary (get_next): don't get stuck in infinite loop if there are no viewable components (e_itip_control_set_data): if there are no viewable components, spit an error message * gui/dialogs/meeting-page.h: tidy * gui/dialogs/meeting-page.c (meeting_page_fill_widgets): use organizer's cn if possible (other_clicked_cb): no longer doing the sent by stuff directly, hide more widgets * pcs/query.c: use bonobo exception stuff * cal-util/cal-component.c (cal_component_rescan): have the comp rescan its libical component (for when you change things directly) (free_icalcomponent): take a param on whether to free the component or just clean up the mappings (cal_component_has_attendees): util function * cal-util/cal-component.h: new protos svn path=/trunk/; revision=13525
40 lines
855 B
C
40 lines
855 B
C
|
|
#ifndef ITIP_UTILS_HEADER
|
|
#define ITIP_UTILS_HEADER
|
|
|
|
#include <ical.h>
|
|
#include <string.h>
|
|
#include <glib.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);
|
|
|
|
const gchar *itip_strip_mailto (const gchar *address);
|
|
|
|
void itip_send_comp (CalComponentItipMethod method, CalComponent *comp);
|
|
|
|
|
|
#endif
|