i-cal-restriction

i-cal-restriction

Synopsis

#include <i-cal-component>

enum                ICalRestrictionKind;
gint                i_cal_restriction_compare           (ICalRestrictionKind restr,
                                                         gint count);
gint                i_cal_restriction_check             (ICalComponent *comp);

Description

Details

enum ICalRestrictionKind

typedef enum {
	I_CAL_RESTRICTION_NONE = ICAL_RESTRICTION_NONE,
	I_CAL_RESTRICTION_ZERO = ICAL_RESTRICTION_ZERO,
	I_CAL_RESTRICTION_ONE = ICAL_RESTRICTION_ONE,
	I_CAL_RESTRICTION_ZEROPLUS = ICAL_RESTRICTION_ZEROPLUS,
	I_CAL_RESTRICTION_ONEPLUS = ICAL_RESTRICTION_ONEPLUS,
	I_CAL_RESTRICTION_ZEROORONE = ICAL_RESTRICTION_ZEROORONE,
	I_CAL_RESTRICTION_ONEEXCLUSIVE = ICAL_RESTRICTION_ONEEXCLUSIVE,
	I_CAL_RESTRICTION_ONEMUTUAL = ICAL_RESTRICTION_ONEMUTUAL,
	I_CAL_RESTRICTION_UNKNOWN = ICAL_RESTRICTION_UNKNOWN
} ICalRestrictionKind;

I_CAL_RESTRICTION_NONE

I_CAL_RESTRICTION_ZERO

I_CAL_RESTRICTION_ONE

I_CAL_RESTRICTION_ZEROPLUS

I_CAL_RESTRICTION_ONEPLUS

I_CAL_RESTRICTION_ZEROORONE

I_CAL_RESTRICTION_ONEEXCLUSIVE

I_CAL_RESTRICTION_ONEMUTUAL

I_CAL_RESTRICTION_UNKNOWN


i_cal_restriction_compare ()

gint                i_cal_restriction_compare           (ICalRestrictionKind restr,
                                                         gint count);

Compare the kind of restriction and the count to determine whether it is valid.

restr :

The restriction kind

count :

The number of restrictions

Returns :

Whether it is valid or not. -1 indicates invalid or more analysis. 1 indicates pass and 0 or 2+ indicates fail.

Since 1.0


i_cal_restriction_check ()

gint                i_cal_restriction_check             (ICalComponent *comp);

Check whether the ICalComponent is valid.

comp :

The component to be checked.

Returns :

Whether the comp is valid.

Since 1.0