1 /* -*- Mode: C -*- */ 2 /*====================================================================== 3 FILE: icalrestriction.h 4 CREATOR: eric 24 April 1999 5 6 $Id: icalrestriction.h,v 1.3 2008-01-15 23:17:42 dothebart Exp $ 7 8 9 (C) COPYRIGHT 2000, Eric Busboom <eric@softwarestudio.org> 10 http://www.softwarestudio.org 11 12 This program is free software; you can redistribute it and/or modify 13 it under the terms of either: 14 15 The LGPL as published by the Free Software Foundation, version 16 2.1, available at: http://www.fsf.org/copyleft/lesser.html 17 18 Or: 19 20 The Mozilla Public License Version 1.0. You may obtain a copy of 21 the License at http://www.mozilla.org/MPL/ 22 23 The original code is icalrestriction.h 24 25 Contributions from: 26 Graham Davison (g.m.davison@computer.org) 27 28 29 ======================================================================*/ 30 31 #include "icalproperty.h" 32 #include "icalcomponent.h" 33 34 #ifndef ICALRESTRICTION_H 35 #define ICALRESTRICTION_H 36 37 /* These must stay in this order for icalrestriction_compare to work */ 38 typedef enum icalrestriction_kind { 39 ICAL_RESTRICTION_NONE=0, /* 0 */ 40 ICAL_RESTRICTION_ZERO, /* 1 */ 41 ICAL_RESTRICTION_ONE, /* 2 */ 42 ICAL_RESTRICTION_ZEROPLUS, /* 3 */ 43 ICAL_RESTRICTION_ONEPLUS, /* 4 */ 44 ICAL_RESTRICTION_ZEROORONE, /* 5 */ 45 ICAL_RESTRICTION_ONEEXCLUSIVE, /* 6 */ 46 ICAL_RESTRICTION_ONEMUTUAL, /* 7 */ 47 ICAL_RESTRICTION_UNKNOWN /* 8 */ 48 } icalrestriction_kind; 49 50 int 51 icalrestriction_compare(icalrestriction_kind restr, int count); 52 53 54 int 55 icalrestriction_is_parameter_allowed(icalproperty_kind property, 56 icalparameter_kind parameter); 57 58 int icalrestriction_check(icalcomponent* comp); 59 60 61 #endif /* !ICALRESTRICTION_H */ 62 63 64 65