Back to index

lightning-sunbird  0.9+nobinonly
icalperiod.h
Go to the documentation of this file.
00001 /* -*- Mode: C -*- */
00002 /*======================================================================
00003  FILE: icalperiod.h
00004  CREATOR: eric 26 Jan 2001
00005 
00006 
00007  $Id: icalperiod.h,v 1.4 2002/06/28 11:11:24 acampi Exp $
00008  $Locker:  $
00009 
00010  (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
00011 
00012  This program is free software; you can redistribute it and/or modify
00013  it under the terms of either: 
00014 
00015     The LGPL as published by the Free Software Foundation, version
00016     2.1, available at: http://www.fsf.org/copyleft/lesser.html
00017 
00018   Or:
00019 
00020     The Mozilla Public License Version 1.0. You may obtain a copy of
00021     the License at http://www.mozilla.org/MPL/
00022 
00023  The Original Code is eric. The Initial Developer of the Original
00024  Code is Eric Busboom
00025 
00026 
00027 ======================================================================*/
00028 
00029 #ifndef ICALPERIOD_H
00030 #define ICALPERIOD_H
00031 
00032 #include "icaltime.h"
00033 #include "icalduration.h"
00034 
00035 struct icalperiodtype 
00036 {
00037        struct icaltimetype start; 
00038        struct icaltimetype end; 
00039        struct icaldurationtype duration;
00040 };
00041 
00042 struct icalperiodtype icalperiodtype_from_string (const char* str);
00043 
00044 const char* icalperiodtype_as_ical_string(struct icalperiodtype p);
00045 
00046 struct icalperiodtype icalperiodtype_null_period(void);
00047 
00048 int icalperiodtype_is_null_period(struct icalperiodtype p);
00049 
00050 int icalperiodtype_is_valid_period(struct icalperiodtype p);
00051 
00052 #endif /* !ICALTIME_H */
00053 
00054 
00055