citadel
About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
  Fossies Dox: citadel.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Loading...
Searching...
No Matches
serv_calendar.c File Reference
#include "../../ctdl_module.h"
#include <libical/ical.h>
#include "../../msgbase.h"
#include "../../internet_addressing.h"
#include "serv_calendar.h"
#include "../../room_ops.h"
#include "../../euidindex.h"
#include "../../default_timezone.h"
#include "../../config.h"
Include dependency graph for serv_calendar.c:

Go to the source code of this file.

Data Structures

struct  ical_respond_data
 
struct  original_event_container
 

Macros

#define PRODID   "-//Citadel//NONSGML Citadel Calendar//EN"
 

Functions

icalcomponent * icalcomponent_new_citadel_vcalendar (void)
 
icalcomponent * ical_encapsulate_subcomponent (icalcomponent *subcomp)
 
void ical_write_to_cal (struct ctdluser *u, icalcomponent *cal)
 
void ical_send_a_reply (icalcomponent *request, char *action)
 
void ical_locate_part (char *name, char *filename, char *partnum, char *disp, void *content, char *cbtype, char *cbcharset, size_t length, char *encoding, char *cbid, void *cbuserdata)
 
void ical_respond (long msgnum, char *partnum, char *action)
 
void ical_learn_uid_of_reply (char *uidbuf, icalcomponent *cal)
 
void ical_hunt_for_event_to_update (long msgnum, void *data)
 
void ical_locate_original_event (char *name, char *filename, char *partnum, char *disp, void *content, char *cbtype, char *cbcharset, size_t length, char *encoding, char *cbid, void *cbuserdata)
 
void ical_merge_attendee_reply (icalcomponent *event, icalcomponent *reply)
 
int ical_update_my_calendar_with_reply (icalcomponent *cal)
 
void ical_handle_rsvp (long msgnum, char *partnum, char *action)
 
icalproperty * ical_ctdl_get_subprop (icalcomponent *cal, icalproperty_kind which_prop)
 
int ical_ctdl_is_overlap (struct icaltimetype t1start, struct icaltimetype t1end, struct icaltimetype t2start, struct icaltimetype t2end)
 
int ical_conflicts_phase6 (struct icaltimetype t1start, struct icaltimetype t1end, struct icaltimetype t2start, struct icaltimetype t2end, long existing_msgnum, char *conflict_event_uid, char *conflict_event_summary, char *compare_uid)
 
void ical_conflicts_phase5 (struct icaltimetype t1start, struct icaltimetype t1end, icalcomponent *existing_event, long existing_msgnum, char *compare_uid)
 
void ical_conflicts_phase4 (icalcomponent *proposed_event, icalcomponent *existing_event, long existing_msgnum)
 
void ical_hunt_for_conflicts_backend (long msgnum, void *data)
 
void ical_hunt_for_conflicts (icalcomponent *cal)
 
void ical_conflicts (long msgnum, char *partnum)
 
void ical_add_to_freebusy (icalcomponent *fb, icalcomponent *top_level_cal)
 
void ical_freebusy_backend (long msgnum, void *data)
 
void ical_freebusy (char *who)
 
void ical_getics_backend (long msgnum, void *data)
 
void ical_getics (void)
 
void ical_putics_grabtzids (icalparameter *param, void *data)
 
void ical_putics (void)
 
void cmd_ical (char *argbuf)
 
void ical_CtdlCreateRoom (void)
 
void ical_send_out_invitations (icalcomponent *top_level_cal, icalcomponent *cal)
 
void ical_saving_vevent (icalcomponent *top_level_cal, icalcomponent *cal)
 
void ical_obj_beforesave_backend (char *name, char *filename, char *partnum, char *disp, void *content, char *cbtype, char *cbcharset, size_t length, char *encoding, char *cbid, void *cbuserdata)
 
int ical_obj_beforesave (struct CtdlMessage *msg, struct recptypes *recp)
 
void ical_obj_aftersave_backend (char *name, char *filename, char *partnum, char *disp, void *content, char *cbtype, char *cbcharset, size_t length, char *encoding, char *cbid, void *cbuserdata)
 
int ical_obj_aftersave (struct CtdlMessage *msg, struct recptypes *recp)
 
void ical_session_startup (void)
 
void ical_session_shutdown (void)
 
void ical_fixed_output_backend (icalcomponent *cal, int recursion_level)
 
void ical_fixed_output (char *ptr, int len)
 
char * ctdl_module_init_calendar (void)
 

Macro Definition Documentation

◆ PRODID

#define PRODID   "-//Citadel//NONSGML Citadel Calendar//EN"

Definition at line 17 of file serv_calendar.c.

Function Documentation

◆ cmd_ical()

◆ ctdl_module_init_calendar()

◆ ical_add_to_freebusy()

void ical_add_to_freebusy ( icalcomponent *  fb,
icalcomponent *  top_level_cal 
)

◆ ical_conflicts()

void ical_conflicts ( long  msgnum,
char *  partnum 
)

◆ ical_conflicts_phase4()

void ical_conflicts_phase4 ( icalcomponent *  proposed_event,
icalcomponent *  existing_event,
long  existing_msgnum 
)

◆ ical_conflicts_phase5()

void ical_conflicts_phase5 ( struct icaltimetype  t1start,
struct icaltimetype  t1end,
icalcomponent *  existing_event,
long  existing_msgnum,
char *  compare_uid 
)

◆ ical_conflicts_phase6()

int ical_conflicts_phase6 ( struct icaltimetype  t1start,
struct icaltimetype  t1end,
struct icaltimetype  t2start,
struct icaltimetype  t2end,
long  existing_msgnum,
char *  conflict_event_uid,
char *  conflict_event_summary,
char *  compare_uid 
)

Definition at line 868 of file serv_calendar.c.

References cprintf(), and ical_ctdl_is_overlap().

Referenced by ical_conflicts_phase5().

◆ ical_ctdl_get_subprop()

icalproperty * ical_ctdl_get_subprop ( icalcomponent *  cal,
icalproperty_kind  which_prop 
)

◆ ical_ctdl_is_overlap()

int ical_ctdl_is_overlap ( struct icaltimetype  t1start,
struct icaltimetype  t1end,
struct icaltimetype  t2start,
struct icaltimetype  t2end 
)

Definition at line 794 of file serv_calendar.c.

Referenced by ical_conflicts_phase6().

◆ ical_CtdlCreateRoom()

◆ ical_encapsulate_subcomponent()

icalcomponent * ical_encapsulate_subcomponent ( icalcomponent *  subcomp)

Definition at line 61 of file serv_calendar.c.

References icalcomponent_new_citadel_vcalendar().

Referenced by ical_freebusy(), and ical_write_to_cal().

◆ ical_fixed_output()

void ical_fixed_output ( char *  ptr,
int  len 
)

Definition at line 2514 of file serv_calendar.c.

References free(), ical_fixed_output_backend(), and malloc().

Referenced by ctdl_module_init_calendar().

◆ ical_fixed_output_backend()

void ical_fixed_output_backend ( icalcomponent *  cal,
int  recursion_level 
)

Definition at line 2464 of file serv_calendar.c.

References cprintf(), and ical_fixed_output_backend().

Referenced by ical_fixed_output(), and ical_fixed_output_backend().

◆ ical_freebusy()

◆ ical_freebusy_backend()

void ical_freebusy_backend ( long  msgnum,
void *  data 
)

◆ ical_getics()

void ical_getics ( void  )

◆ ical_getics_backend()

void ical_getics_backend ( long  msgnum,
void *  data 
)

◆ ical_handle_rsvp()

◆ ical_hunt_for_conflicts()

void ical_hunt_for_conflicts ( icalcomponent *  cal)

◆ ical_hunt_for_conflicts_backend()

void ical_hunt_for_conflicts_backend ( long  msgnum,
void *  data 
)

◆ ical_hunt_for_event_to_update()

void ical_hunt_for_event_to_update ( long  msgnum,
void *  data 
)

Definition at line 451 of file serv_calendar.c.

◆ ical_learn_uid_of_reply()

void ical_learn_uid_of_reply ( char *  uidbuf,
icalcomponent *  cal 
)

◆ ical_locate_original_event()

void ical_locate_original_event ( char *  name,
char *  filename,
char *  partnum,
char *  disp,
void *  content,
char *  cbtype,
char *  cbcharset,
size_t  length,
char *  encoding,
char *  cbid,
void *  cbuserdata 
)

Definition at line 468 of file serv_calendar.c.

References original_event_container::c.

Referenced by ical_update_my_calendar_with_reply().

◆ ical_locate_part()

void ical_locate_part ( char *  name,
char *  filename,
char *  partnum,
char *  disp,
void *  content,
char *  cbtype,
char *  cbcharset,
size_t  length,
char *  encoding,
char *  cbid,
void *  cbuserdata 
)

◆ ical_merge_attendee_reply()

void ical_merge_attendee_reply ( icalcomponent *  event,
icalcomponent *  reply 
)

◆ ical_obj_aftersave()

int ical_obj_aftersave ( struct CtdlMessage msg,
struct recptypes recp 
)

◆ ical_obj_aftersave_backend()

void ical_obj_aftersave_backend ( char *  name,
char *  filename,
char *  partnum,
char *  disp,
void *  content,
char *  cbtype,
char *  cbcharset,
size_t  length,
char *  encoding,
char *  cbid,
void *  cbuserdata 
)

Definition at line 2385 of file serv_calendar.c.

References ical_saving_vevent().

Referenced by ical_obj_aftersave().

◆ ical_obj_beforesave()

int ical_obj_beforesave ( struct CtdlMessage msg,
struct recptypes recp 
)

◆ ical_obj_beforesave_backend()

void ical_obj_beforesave_backend ( char *  name,
char *  filename,
char *  partnum,
char *  disp,
void *  content,
char *  cbtype,
char *  cbcharset,
size_t  length,
char *  encoding,
char *  cbid,
void *  cbuserdata 
)

◆ ical_putics()

◆ ical_putics_grabtzids()

void ical_putics_grabtzids ( icalparameter *  param,
void *  data 
)

Definition at line 1687 of file serv_calendar.c.

Referenced by ical_putics().

◆ ical_respond()

void ical_respond ( long  msgnum,
char *  partnum,
char *  action 
)

◆ ical_saving_vevent()

void ical_saving_vevent ( icalcomponent *  top_level_cal,
icalcomponent *  cal 
)

◆ ical_send_a_reply()

void ical_send_a_reply ( icalcomponent *  request,
char *  action 
)

◆ ical_send_out_invitations()

void ical_send_out_invitations ( icalcomponent *  top_level_cal,
icalcomponent *  cal 
)

◆ ical_session_shutdown()

void ical_session_shutdown ( void  )

Definition at line 2456 of file serv_calendar.c.

References CIT_ICAL, and free().

Referenced by ctdl_module_init_calendar().

◆ ical_session_startup()

void ical_session_startup ( void  )

Definition at line 2450 of file serv_calendar.c.

References CIT_ICAL, and malloc().

Referenced by ctdl_module_init_calendar().

◆ ical_update_my_calendar_with_reply()

◆ ical_write_to_cal()

◆ icalcomponent_new_citadel_vcalendar()

icalcomponent * icalcomponent_new_citadel_vcalendar ( void  )

Definition at line 39 of file serv_calendar.c.

References PRODID.

Referenced by ical_encapsulate_subcomponent().