Back to index

lightning-sunbird  0.9+nobinonly
Functions
icalmessage.h File Reference
#include "ical.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

icalcomponent * icalmessage_new_accept_reply (icalcomponent *c, const char *user, const char *msg)
icalcomponent * icalmessage_new_decline_reply (icalcomponent *c, const char *user, const char *msg)
icalcomponent * icalmessage_new_counterpropose_reply (icalcomponent *oldc, icalcomponent *newc, const char *user, const char *msg)
icalcomponent * icalmessage_new_delegate_reply (icalcomponent *c, const char *user, const char *delegatee, const char *msg)
icalcomponent * icalmessage_new_cancel_event (icalcomponent *c, const char *user, const char *msg)
icalcomponent * icalmessage_new_cancel_instance (icalcomponent *c, const char *user, const char *msg)
icalcomponent * icalmessage_new_cancel_all (icalcomponent *c, const char *user, const char *msg)
icalcomponent * icalmessage_new_error_reply (icalcomponent *c, const char *user, const char *msg, const char *debug, icalrequeststatus rs)

Function Documentation

icalcomponent* icalmessage_new_accept_reply ( icalcomponent *  c,
const char *  user,
const char *  msg 
)

Definition at line 174 of file icalmessage.c.

{

    icalcomponent *reply;
    icalproperty *attendee;
    icalcomponent *inner;

    icalerror_check_arg_rz(c,"c");
    
    reply = icalmessage_new_reply_base(c,user,msg);

    if(reply == 0){
       return 0;
    }

    inner  = icalmessage_get_inner(reply);

    attendee = icalcomponent_get_first_property(inner,
                                          ICAL_ATTENDEE_PROPERTY);

    icalproperty_set_parameter(attendee,
              icalparameter_new_partstat(ICAL_PARTSTAT_ACCEPTED));

    return reply;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalcomponent* icalmessage_new_cancel_all ( icalcomponent *  c,
const char *  user,
const char *  msg 
)
icalcomponent* icalmessage_new_cancel_event ( icalcomponent *  c,
const char *  user,
const char *  msg 
)
icalcomponent* icalmessage_new_cancel_instance ( icalcomponent *  c,
const char *  user,
const char *  msg 
)
icalcomponent* icalmessage_new_counterpropose_reply ( icalcomponent *  oldc,
icalcomponent *  newc,
const char *  user,
const char *  msg 
)

Definition at line 228 of file icalmessage.c.

{
    icalcomponent *reply;

    icalerror_check_arg_rz(oldc,"oldc");
    icalerror_check_arg_rz(newc,"newc");
    
    reply = icalmessage_new_reply_base(newc,user,msg);

    icalcomponent_set_method(reply,ICAL_METHOD_COUNTER);

    return reply;

}

Here is the call graph for this function:

Here is the caller graph for this function:

icalcomponent* icalmessage_new_decline_reply ( icalcomponent *  c,
const char *  user,
const char *  msg 
)

Definition at line 202 of file icalmessage.c.

{
    icalcomponent *reply;
    icalproperty *attendee;
    icalcomponent *inner;

    icalerror_check_arg_rz(c,"c");
    
    reply = icalmessage_new_reply_base(c,user,msg);
    inner = icalmessage_get_inner(reply);
    if(reply == 0){
       return 0;
    }

    attendee = icalcomponent_get_first_property(inner,
                                          ICAL_ATTENDEE_PROPERTY);

    icalproperty_set_parameter(attendee,
              icalparameter_new_partstat(ICAL_PARTSTAT_DECLINED));

    return reply;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalcomponent* icalmessage_new_delegate_reply ( icalcomponent *  c,
const char *  user,
const char *  delegatee,
const char *  msg 
)

Definition at line 247 of file icalmessage.c.

{

    icalcomponent *reply;
    icalproperty *attendee;
    icalcomponent *inner;

    icalerror_check_arg_rz(c,"c");

    reply =  icalmessage_new_reply_base(c,user,msg);
    inner = icalmessage_get_inner(reply);
    if(reply == 0){
       return 0;
    }

    attendee = icalcomponent_get_first_property(inner,
                                          ICAL_ATTENDEE_PROPERTY);

    icalproperty_set_parameter(attendee,
              icalparameter_new_partstat(ICAL_PARTSTAT_DELEGATED));

    icalproperty_set_parameter(attendee,
              icalparameter_new_delegatedto(delegatee));

    return reply;

}

Here is the call graph for this function:

Here is the caller graph for this function:

icalcomponent* icalmessage_new_error_reply ( icalcomponent *  c,
const char *  user,
const char *  msg,
const char *  debug,
icalrequeststatus  rs 
)

Definition at line 337 of file icalmessage.c.

{
    icalcomponent *reply;
    icalcomponent *inner, *cinner;
    struct icalreqstattype rs;

    icalerror_check_arg_rz(c,"c");
    
    reply = icalmessage_new_reply_base(c,user,msg);
    inner = icalmessage_get_inner(reply);
    cinner = icalmessage_get_inner(c);
    if(reply == 0){
       return 0;
    }

    if( code != ICAL_UNKNOWN_STATUS){
       rs.code = code;
       rs.debug = debug;
       
       icalcomponent_add_property(inner, 
                               icalproperty_new_requeststatus(rs));
    } else { /*  code == ICAL_UNKNOWN_STATUS */ 

       /* Copy all of the request status properties */
       icalproperty *p;
       for(p = icalcomponent_get_first_property(cinner,
                                           ICAL_REQUESTSTATUS_PROPERTY);
           p != 0;
           p = icalcomponent_get_next_property(cinner,
                                          ICAL_REQUESTSTATUS_PROPERTY)){

           
           icalcomponent_add_property(inner,icalproperty_new_clone(p));
       }
    }

    return reply;
}

Here is the call graph for this function:

Here is the caller graph for this function: