aboutsummaryrefslogblamecommitdiffstats
path: root/calendar/gui/itip-utils.h
blob: 9a8fe330b65aa9d7bd94f0ac85306c23fa669a13 (plain) (tree)
1
2
3
4
5
6
7
8
9




                         

                   
                 
                                   
 










                                           










                                            

                                                      

                                                                        
 
      

#ifndef ITIP_UTILS_HEADER
#define ITIP_UTILS_HEADER

#include <config.h>
#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);
void itip_addresses_free (GList *addresses);

const gchar *itip_strip_mailto (const gchar *address);

void itip_send_comp (CalComponentItipMethod method, CalComponent *comp);


#endif