Back to index

lightning-sunbird  0.9+nobinonly
Defines | Typedefs | Enumerations | Functions
icalenums.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define icalenum_property_kind_to_string(x)   icalproperty_kind_to_string(x)
#define icalenum_string_to_property_kind(x)   icalproperty_string_to_kind(x)
#define icalenum_property_kind_to_value_kind(x)   icalproperty_kind_to_value_kind(x)
#define icalenum_method_to_string(x)   icalproperty_method_to_string(x)
#define icalenum_string_to_method(x)   icalproperty_string_to_method(x)
#define icalenum_status_to_string(x)   icalproperty_status_to_string(x)
#define icalenum_string_to_status(x)   icalproperty_string_to_status(x)
#define icalenum_string_to_value_kind(x)   icalvalue_string_to_kind(x)
#define icalenum_value_kind_to_string(x)   icalvalue_kind_to_string(x)
#define icalenum_component_kind_to_string(x)   icalcomponent_kind_to_string(x)
#define icalenum_string_to_component_kind(x)   icalcomponent_string_to_kind(x)

Typedefs

typedef enum icalcomponent_kind icalcomponent_kind
typedef enum icalrequeststatus icalrequeststatus

Enumerations

enum  icalcomponent_kind {
  ICAL_NO_COMPONENT, ICAL_ANY_COMPONENT, ICAL_XROOT_COMPONENT, ICAL_XATTACH_COMPONENT,
  ICAL_VEVENT_COMPONENT, ICAL_VTODO_COMPONENT, ICAL_VJOURNAL_COMPONENT, ICAL_VCALENDAR_COMPONENT,
  ICAL_VAGENDA_COMPONENT, ICAL_VFREEBUSY_COMPONENT, ICAL_VALARM_COMPONENT, ICAL_XAUDIOALARM_COMPONENT,
  ICAL_XDISPLAYALARM_COMPONENT, ICAL_XEMAILALARM_COMPONENT, ICAL_XPROCEDUREALARM_COMPONENT, ICAL_VTIMEZONE_COMPONENT,
  ICAL_XSTANDARD_COMPONENT, ICAL_XDAYLIGHT_COMPONENT, ICAL_X_COMPONENT, ICAL_VSCHEDULE_COMPONENT,
  ICAL_VQUERY_COMPONENT, ICAL_VCAR_COMPONENT, ICAL_VCOMMAND_COMPONENT, ICAL_XLICINVALID_COMPONENT,
  ICAL_XLICMIMEPART_COMPONENT, ICAL_NO_COMPONENT, ICAL_ANY_COMPONENT, ICAL_XROOT_COMPONENT,
  ICAL_XATTACH_COMPONENT, ICAL_VEVENT_COMPONENT, ICAL_VTODO_COMPONENT, ICAL_VJOURNAL_COMPONENT,
  ICAL_VCALENDAR_COMPONENT, ICAL_VAGENDA_COMPONENT, ICAL_VFREEBUSY_COMPONENT, ICAL_VALARM_COMPONENT,
  ICAL_XAUDIOALARM_COMPONENT, ICAL_XDISPLAYALARM_COMPONENT, ICAL_XEMAILALARM_COMPONENT, ICAL_XPROCEDUREALARM_COMPONENT,
  ICAL_VTIMEZONE_COMPONENT, ICAL_XSTANDARD_COMPONENT, ICAL_XDAYLIGHT_COMPONENT, ICAL_X_COMPONENT,
  ICAL_VSCHEDULE_COMPONENT, ICAL_VQUERY_COMPONENT, ICAL_VREPLY_COMPONENT, ICAL_VCAR_COMPONENT,
  ICAL_VCOMMAND_COMPONENT, ICAL_XLICINVALID_COMPONENT, ICAL_XLICMIMEPART_COMPONENT
}
enum  icalrequeststatus {
  ICAL_UNKNOWN_STATUS, ICAL_2_0_SUCCESS_STATUS, ICAL_2_1_FALLBACK_STATUS, ICAL_2_2_IGPROP_STATUS,
  ICAL_2_3_IGPARAM_STATUS, ICAL_2_4_IGXPROP_STATUS, ICAL_2_5_IGXPARAM_STATUS, ICAL_2_6_IGCOMP_STATUS,
  ICAL_2_7_FORWARD_STATUS, ICAL_2_8_ONEEVENT_STATUS, ICAL_2_9_TRUNC_STATUS, ICAL_2_10_ONETODO_STATUS,
  ICAL_2_11_TRUNCRRULE_STATUS, ICAL_3_0_INVPROPNAME_STATUS, ICAL_3_1_INVPROPVAL_STATUS, ICAL_3_2_INVPARAM_STATUS,
  ICAL_3_3_INVPARAMVAL_STATUS, ICAL_3_4_INVCOMP_STATUS, ICAL_3_5_INVTIME_STATUS, ICAL_3_6_INVRULE_STATUS,
  ICAL_3_7_INVCU_STATUS, ICAL_3_8_NOAUTH_STATUS, ICAL_3_9_BADVERSION_STATUS, ICAL_3_10_TOOBIG_STATUS,
  ICAL_3_11_MISSREQCOMP_STATUS, ICAL_3_12_UNKCOMP_STATUS, ICAL_3_13_BADCOMP_STATUS, ICAL_3_14_NOCAP_STATUS,
  ICAL_3_15_INVCOMMAND, ICAL_4_0_BUSY_STATUS, ICAL_4_1_STORE_ACCESS_DENIED, ICAL_4_2_STORE_FAILED,
  ICAL_4_3_STORE_NOT_FOUND, ICAL_5_0_MAYBE_STATUS, ICAL_5_1_UNAVAIL_STATUS, ICAL_5_2_NOSERVICE_STATUS,
  ICAL_5_3_NOSCHED_STATUS, ICAL_6_1_CONTAINER_NOT_FOUND, ICAL_9_0_UNRECOGNIZED_COMMAND, ICAL_UNKNOWN_STATUS,
  ICAL_2_0_SUCCESS_STATUS, ICAL_2_1_FALLBACK_STATUS, ICAL_2_2_IGPROP_STATUS, ICAL_2_3_IGPARAM_STATUS,
  ICAL_2_4_IGXPROP_STATUS, ICAL_2_5_IGXPARAM_STATUS, ICAL_2_6_IGCOMP_STATUS, ICAL_2_7_FORWARD_STATUS,
  ICAL_2_8_ONEEVENT_STATUS, ICAL_2_9_TRUNC_STATUS, ICAL_2_10_ONETODO_STATUS, ICAL_2_11_TRUNCRRULE_STATUS,
  ICAL_3_0_INVPROPNAME_STATUS, ICAL_3_1_INVPROPVAL_STATUS, ICAL_3_2_INVPARAM_STATUS, ICAL_3_3_INVPARAMVAL_STATUS,
  ICAL_3_4_INVCOMP_STATUS, ICAL_3_5_INVTIME_STATUS, ICAL_3_6_INVRULE_STATUS, ICAL_3_7_INVCU_STATUS,
  ICAL_3_8_NOAUTH_STATUS, ICAL_3_9_BADVERSION_STATUS, ICAL_3_10_TOOBIG_STATUS, ICAL_3_11_MISSREQCOMP_STATUS,
  ICAL_3_12_UNKCOMP_STATUS, ICAL_3_13_BADCOMP_STATUS, ICAL_3_14_NOCAP_STATUS, ICAL_3_15_INVCOMMAND,
  ICAL_4_0_BUSY_STATUS, ICAL_4_1_STORE_ACCESS_DENIED, ICAL_4_2_STORE_FAILED, ICAL_4_3_STORE_NOT_FOUND,
  ICAL_5_0_MAYBE_STATUS, ICAL_5_1_UNAVAIL_STATUS, ICAL_5_2_NOSERVICE_STATUS, ICAL_5_3_NOSCHED_STATUS,
  ICAL_6_1_CONTAINER_NOT_FOUND, ICAL_9_0_UNRECOGNIZED_COMMAND
}

Functions

const char * icalenum_reqstat_desc (icalrequeststatus stat)
short icalenum_reqstat_major (icalrequeststatus stat)
short icalenum_reqstat_minor (icalrequeststatus stat)
icalrequeststatus icalenum_num_to_reqstat (short major, short minor)
char * icalenum_reqstat_code (icalrequeststatus stat)

Define Documentation

Definition at line 159 of file icalenums.h.

Definition at line 141 of file icalenums.h.

Definition at line 132 of file icalenums.h.

Definition at line 138 of file icalenums.h.

Definition at line 147 of file icalenums.h.

Definition at line 162 of file icalenums.h.

Definition at line 144 of file icalenums.h.

Definition at line 135 of file icalenums.h.

Definition at line 150 of file icalenums.h.

Definition at line 153 of file icalenums.h.

Definition at line 156 of file icalenums.h.


Typedef Documentation


Enumeration Type Documentation

Enumerator:
ICAL_NO_COMPONENT 
ICAL_ANY_COMPONENT 
ICAL_XROOT_COMPONENT 
ICAL_XATTACH_COMPONENT 
ICAL_VEVENT_COMPONENT 
ICAL_VTODO_COMPONENT 
ICAL_VJOURNAL_COMPONENT 
ICAL_VCALENDAR_COMPONENT 
ICAL_VAGENDA_COMPONENT 
ICAL_VFREEBUSY_COMPONENT 
ICAL_VALARM_COMPONENT 
ICAL_XAUDIOALARM_COMPONENT 
ICAL_XDISPLAYALARM_COMPONENT 
ICAL_XEMAILALARM_COMPONENT 
ICAL_XPROCEDUREALARM_COMPONENT 
ICAL_VTIMEZONE_COMPONENT 
ICAL_XSTANDARD_COMPONENT 
ICAL_XDAYLIGHT_COMPONENT 
ICAL_X_COMPONENT 
ICAL_VSCHEDULE_COMPONENT 
ICAL_VQUERY_COMPONENT 
ICAL_VCAR_COMPONENT 
ICAL_VCOMMAND_COMPONENT 
ICAL_XLICINVALID_COMPONENT 
ICAL_XLICMIMEPART_COMPONENT 
ICAL_NO_COMPONENT 
ICAL_ANY_COMPONENT 
ICAL_XROOT_COMPONENT 
ICAL_XATTACH_COMPONENT 
ICAL_VEVENT_COMPONENT 
ICAL_VTODO_COMPONENT 
ICAL_VJOURNAL_COMPONENT 
ICAL_VCALENDAR_COMPONENT 
ICAL_VAGENDA_COMPONENT 
ICAL_VFREEBUSY_COMPONENT 
ICAL_VALARM_COMPONENT 
ICAL_XAUDIOALARM_COMPONENT 
ICAL_XDISPLAYALARM_COMPONENT 
ICAL_XEMAILALARM_COMPONENT 
ICAL_XPROCEDUREALARM_COMPONENT 
ICAL_VTIMEZONE_COMPONENT 
ICAL_XSTANDARD_COMPONENT 
ICAL_XDAYLIGHT_COMPONENT 
ICAL_X_COMPONENT 
ICAL_VSCHEDULE_COMPONENT 
ICAL_VQUERY_COMPONENT 
ICAL_VREPLY_COMPONENT 
ICAL_VCAR_COMPONENT 
ICAL_VCOMMAND_COMPONENT 
ICAL_XLICINVALID_COMPONENT 
ICAL_XLICMIMEPART_COMPONENT 

Definition at line 37 of file icalenums.h.

Enumerator:
ICAL_UNKNOWN_STATUS 
ICAL_2_0_SUCCESS_STATUS 
ICAL_2_1_FALLBACK_STATUS 
ICAL_2_2_IGPROP_STATUS 
ICAL_2_3_IGPARAM_STATUS 
ICAL_2_4_IGXPROP_STATUS 
ICAL_2_5_IGXPARAM_STATUS 
ICAL_2_6_IGCOMP_STATUS 
ICAL_2_7_FORWARD_STATUS 
ICAL_2_8_ONEEVENT_STATUS 
ICAL_2_9_TRUNC_STATUS 
ICAL_2_10_ONETODO_STATUS 
ICAL_2_11_TRUNCRRULE_STATUS 
ICAL_3_0_INVPROPNAME_STATUS 
ICAL_3_1_INVPROPVAL_STATUS 
ICAL_3_2_INVPARAM_STATUS 
ICAL_3_3_INVPARAMVAL_STATUS 
ICAL_3_4_INVCOMP_STATUS 
ICAL_3_5_INVTIME_STATUS 
ICAL_3_6_INVRULE_STATUS 
ICAL_3_7_INVCU_STATUS 
ICAL_3_8_NOAUTH_STATUS 
ICAL_3_9_BADVERSION_STATUS 
ICAL_3_10_TOOBIG_STATUS 
ICAL_3_11_MISSREQCOMP_STATUS 
ICAL_3_12_UNKCOMP_STATUS 
ICAL_3_13_BADCOMP_STATUS 
ICAL_3_14_NOCAP_STATUS 
ICAL_3_15_INVCOMMAND 
ICAL_4_0_BUSY_STATUS 
ICAL_4_1_STORE_ACCESS_DENIED 
ICAL_4_2_STORE_FAILED 
ICAL_4_3_STORE_NOT_FOUND 
ICAL_5_0_MAYBE_STATUS 
ICAL_5_1_UNAVAIL_STATUS 
ICAL_5_2_NOSERVICE_STATUS 
ICAL_5_3_NOSCHED_STATUS 
ICAL_6_1_CONTAINER_NOT_FOUND 
ICAL_9_0_UNRECOGNIZED_COMMAND 
ICAL_UNKNOWN_STATUS 
ICAL_2_0_SUCCESS_STATUS 
ICAL_2_1_FALLBACK_STATUS 
ICAL_2_2_IGPROP_STATUS 
ICAL_2_3_IGPARAM_STATUS 
ICAL_2_4_IGXPROP_STATUS 
ICAL_2_5_IGXPARAM_STATUS 
ICAL_2_6_IGCOMP_STATUS 
ICAL_2_7_FORWARD_STATUS 
ICAL_2_8_ONEEVENT_STATUS 
ICAL_2_9_TRUNC_STATUS 
ICAL_2_10_ONETODO_STATUS 
ICAL_2_11_TRUNCRRULE_STATUS 
ICAL_3_0_INVPROPNAME_STATUS 
ICAL_3_1_INVPROPVAL_STATUS 
ICAL_3_2_INVPARAM_STATUS 
ICAL_3_3_INVPARAMVAL_STATUS 
ICAL_3_4_INVCOMP_STATUS 
ICAL_3_5_INVTIME_STATUS 
ICAL_3_6_INVRULE_STATUS 
ICAL_3_7_INVCU_STATUS 
ICAL_3_8_NOAUTH_STATUS 
ICAL_3_9_BADVERSION_STATUS 
ICAL_3_10_TOOBIG_STATUS 
ICAL_3_11_MISSREQCOMP_STATUS 
ICAL_3_12_UNKCOMP_STATUS 
ICAL_3_13_BADCOMP_STATUS 
ICAL_3_14_NOCAP_STATUS 
ICAL_3_15_INVCOMMAND 
ICAL_4_0_BUSY_STATUS 
ICAL_4_1_STORE_ACCESS_DENIED 
ICAL_4_2_STORE_FAILED 
ICAL_4_3_STORE_NOT_FOUND 
ICAL_5_0_MAYBE_STATUS 
ICAL_5_1_UNAVAIL_STATUS 
ICAL_5_2_NOSERVICE_STATUS 
ICAL_5_3_NOSCHED_STATUS 
ICAL_6_1_CONTAINER_NOT_FOUND 
ICAL_9_0_UNRECOGNIZED_COMMAND 

Definition at line 74 of file icalenums.h.


Function Documentation

icalrequeststatus icalenum_num_to_reqstat ( short  major,
short  minor 
)

Definition at line 153 of file icalenums.c.

{
    int i;

    for (i=0; request_status_map[i].kind  != ICAL_UNKNOWN_STATUS; i++) {
       if ( request_status_map[i].major ==  major && request_status_map[i].minor ==  minor) {
           return request_status_map[i].kind;
       }
    }
    return 0;
}

Definition at line 106 of file icalenums.c.

{
    int i, major, minor;
    char tmpbuf[36];

    for (i=0; request_status_map[i].kind  != ICAL_UNKNOWN_STATUS; i++) {
       if ( request_status_map[i].kind ==  stat) {
           major = request_status_map[i].major;
           minor = request_status_map[i].minor;
           sprintf(tmpbuf, "%i.%i", major, minor);
           return icalmemory_tmp_copy(tmpbuf);
       }
    }
    return NULL;
}

Here is the call graph for this function:

Definition at line 91 of file icalenums.c.

{
    int i;

    for (i=0; request_status_map[i].kind  != ICAL_UNKNOWN_STATUS; i++) {
       if ( request_status_map[i].kind ==  stat) {
           return request_status_map[i].str;
       }
    }

    return 0;
}

Definition at line 124 of file icalenums.c.

{
    int i;

    for (i=0; request_status_map[i].kind  != ICAL_UNKNOWN_STATUS; i++) {
       if ( request_status_map[i].kind ==  stat) {
           return request_status_map[i].major;
       }
    }
    return -1;
}

Definition at line 138 of file icalenums.c.

{
    int i;

    for (i=0; request_status_map[i].kind  != ICAL_UNKNOWN_STATUS; i++) {
       if ( request_status_map[i].kind ==  stat) {
           return request_status_map[i].minor;
       }
    }
    return -1;
}