Back to index

lightning-sunbird  0.9+nobinonly
icalrestriction.h
Go to the documentation of this file.
00001 /* -*- Mode: C -*- */
00002 /*======================================================================
00003   FILE: icalrestriction.h
00004   CREATOR: eric 24 April 1999
00005   
00006   $Id: icalrestriction.h,v 1.1.1.1 2001/01/02 07:33:02 ebusboom Exp $
00007 
00008 
00009  (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
00010 
00011  This program is free software; you can redistribute it and/or modify
00012  it under the terms of either: 
00013 
00014     The LGPL as published by the Free Software Foundation, version
00015     2.1, available at: http://www.fsf.org/copyleft/lesser.html
00016 
00017   Or:
00018 
00019     The Mozilla Public License Version 1.0. You may obtain a copy of
00020     the License at http://www.mozilla.org/MPL/
00021 
00022   The original code is icalrestriction.h
00023 
00024   Contributions from:
00025      Graham Davison (g.m.davison@computer.org)
00026 
00027 
00028 ======================================================================*/
00029 
00030 #include "icalproperty.h"
00031 #include "icalcomponent.h"
00032 
00033 #ifndef ICALRESTRICTION_H
00034 #define ICALRESTRICTION_H
00035 
00036 /* These must stay in this order for icalrestriction_compare to work */
00037 typedef enum icalrestriction_kind {
00038     ICAL_RESTRICTION_NONE=0,              /* 0 */
00039     ICAL_RESTRICTION_ZERO,         /* 1 */
00040     ICAL_RESTRICTION_ONE,          /* 2 */
00041     ICAL_RESTRICTION_ZEROPLUS,            /* 3 */
00042     ICAL_RESTRICTION_ONEPLUS,             /* 4 */
00043     ICAL_RESTRICTION_ZEROORONE,           /* 5 */
00044     ICAL_RESTRICTION_ONEEXCLUSIVE, /* 6 */
00045     ICAL_RESTRICTION_ONEMUTUAL,           /* 7 */
00046     ICAL_RESTRICTION_UNKNOWN              /* 8 */
00047 } icalrestriction_kind;
00048 
00049 int 
00050 icalrestriction_compare(icalrestriction_kind restr, int count);
00051 
00052 
00053 int
00054 icalrestriction_is_parameter_allowed(icalproperty_kind property,
00055                                        icalparameter_kind parameter);
00056 
00057 int icalrestriction_check(icalcomponent* comp);
00058 
00059 
00060 #endif /* !ICALRESTRICTION_H */
00061 
00062 
00063