blob: f7a06ac9b098d451dce62e3de0814b444d4fc9c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#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
|