~ubuntu-branches/ubuntu/breezy/evolution-data-server/breezy

« back to all changes in this revision

Viewing changes to servers/groupwise/e-gw-item.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-10-10 11:30:56 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051010113056-rb4vj4kbs8yxft85
Tags: 1.4.1-0ubuntu3
* debian/patches/camel-imap-store.c.patch:
  - Ubuntu 17465: apply patch from
  http://bugzilla.gnome.org/attachment.cgi?id=53234&action=view
  (additional NULL pointer check)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * Copyright 2003, Novell, Inc.
8
8
 *
9
9
 * This program is free software; you can redistribute it and/or 
10
 
 * modify it under the terms of version 2 of the GNU General Public 
 
10
 * modify it under the terms of version 2 of the GNU Lesser General Public 
11
11
 * License as published by the Free Software Foundation.
12
12
 *
13
13
 * This program is distributed in the hope that it will be useful,
14
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
 * GNU General Public License for more details.
 
16
 * GNU Lesser General Public License for more details.
17
17
 *
18
 
 * You should have received a copy of the GNU General Public License
 
18
 * You should have received a copy of the GNU Lesser General Public License
19
19
 * along with this program; if not, write to the Free Software
20
20
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21
21
 * USA
26
26
 
27
27
#include <libsoup/soup-soap-message.h>
28
28
#include <libsoup/soup-soap-response.h>
 
29
#include "e-gw-recur-utils.h"
29
30
 
30
31
G_BEGIN_DECLS
31
32
 
49
50
        E_GW_ITEM_TYPE_RESOURCE,
50
51
        E_GW_ITEM_TYPE_CATEGORY,
51
52
        E_GW_ITEM_TYPE_NOTIFICATION, 
 
53
        E_GW_ITEM_TYPE_NOTE,
52
54
        E_GW_ITEM_TYPE_UNKNOWN
53
 
        
 
55
 
54
56
} EGwItemType;
55
57
 
 
58
 
56
59
typedef enum {
57
60
        E_GW_ITEM_CHANGE_TYPE_ADD,
58
61
        E_GW_ITEM_CHANGE_TYPE_UPDATE,
121
124
typedef struct {
122
125
        char *id ;
123
126
        char *name ;
 
127
        char *item_reference;
124
128
        char *contentType ;
125
129
        int size ;
126
130
        char *date ;
139
143
        E_GW_ITEM_ALL
140
144
} EGwItemTrack;
141
145
 
 
146
typedef struct {
 
147
        char *id;
 
148
        char *type;
 
149
        char *thread;
 
150
} EGwItemLinkInfo;
 
151
 
 
152
typedef struct {
 
153
        char *item_id;
 
154
        char *ical_id;
 
155
        char *recur_key;
 
156
} EGwItemCalId;
 
157
 
142
158
GType       e_gw_item_get_type (void);
143
159
EGwItem    *e_gw_item_new_empty (void);
144
160
EGwItem    *e_gw_item_new_from_soap_parameter (const char *email, const char *container, SoupSoapParameter *param);
190
206
const char *e_gw_item_get_msg_content_type (EGwItem *item) ;
191
207
guint32     e_gw_item_get_item_status (EGwItem *item);
192
208
void        e_gw_item_set_content_type (EGwItem *item, const char *content_type) ;
 
209
void        e_gw_item_set_link_info (EGwItem *item, EGwItemLinkInfo *info);
 
210
EGwItemLinkInfo *e_gw_item_get_link_info (EGwItem *item);
193
211
char        *e_gw_item_get_content_type (EGwItem *item) ;
 
212
const char *e_gw_item_get_msg_body_id (EGwItem *item);
 
213
int         e_gw_item_get_mail_size (EGwItem *item);
194
214
void e_gw_item_set_change (EGwItem *item, EGwItemChangeType change_type, char *field_name, gpointer field_value);
195
215
gboolean e_gw_item_append_changes_to_soap_message (EGwItem *item, SoupSoapMessage *msg);
196
216
void e_gw_item_set_category_name (EGwItem *item, char *cateogry_name);
218
238
char *e_gw_item_get_expires (EGwItem *item);
219
239
void e_gw_item_set_delay_until (EGwItem *item, char *delay_until);
220
240
char *e_gw_item_get_delay_until (EGwItem *item);
 
241
void e_gw_item_free_cal_id (EGwItemCalId *calid);
221
242
 
222
243
 
223
244
#define E_GW_ITEM_CLASSIFICATION_PUBLIC       "Public"
240
261
 
241
262
const char *e_gw_item_get_priority (EGwItem *item);
242
263
void        e_gw_item_set_priority (EGwItem *item, const char *new_priority);
 
264
 
243
265
const char *e_gw_item_get_task_priority (EGwItem *item);
244
266
void        e_gw_item_set_task_priority (EGwItem *item, const char *new_priority);
245
267
 
256
278
GSList *e_gw_item_get_recurrence_dates (EGwItem *item);
257
279
void e_gw_item_set_recurrence_dates (EGwItem  *item, GSList *new_recurrence_dates);
258
280
 
 
281
GSList *e_gw_item_get_exdate_list (EGwItem *item);
 
282
void e_gw_item_set_exdate_list (EGwItem  *item, GSList *new_exdate_list);
 
283
 
 
284
void e_gw_item_set_rrule (EGwItem *item, EGwItemRecurrenceRule *rrule);
 
285
EGwItemRecurrenceRule *e_gw_item_get_rrule (EGwItem *item);
 
286
                
 
287
int e_gw_item_get_recurrence_key (EGwItem *item);
 
288
void e_gw_item_set_recurrence_key (EGwItem *item, int recurrence_key);
 
289
 
 
290
GSList * e_gw_item_get_attach_id_list (EGwItem *item) ;
 
291
void e_gw_item_set_attach_id_list (EGwItem *item, GSList *attach_list) ;
 
292
 
259
293
void e_gw_item_set_source (EGwItem *item, char *source) ;
260
294
 
261
295
int e_gw_item_get_trigger (EGwItem *item);
284
318
} EGwItemRecipient;
285
319
 
286
320
gboolean    e_gw_item_append_to_soap_message (EGwItem *item, SoupSoapMessage *msg);
287
 
 
 
321
void e_gw_item_add_distribution_to_soap_message (EGwItem *item, SoupSoapMessage *msg);
288
322
G_END_DECLS
289
323
 
290
324
#endif