libkcal

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 
00008  (C) COPYRIGHT 2000, Eric Busboom <eric@softwarestudio.org>
00009      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 eric. The Initial Developer of the Original
00023  Code is Eric Busboom
00024 
00025 
00026 ======================================================================*/
00027 
00028 #ifndef ICALPERIOD_H
00029 #define ICALPERIOD_H
00030 
00031 #include "icaltime.h"
00032 #include "icalduration.h"
00033 
00034 struct icalperiodtype 
00035 {
00036     struct icaltimetype start; 
00037     struct icaltimetype end; 
00038     struct icaldurationtype duration;
00039 };
00040 
00041 struct icalperiodtype icalperiodtype_from_string (const char* str);
00042 
00043 const char* icalperiodtype_as_ical_string(struct icalperiodtype p);
00044 
00045 struct icalperiodtype icalperiodtype_null_period(void);
00046 
00047 int icalperiodtype_is_null_period(struct icalperiodtype p);
00048 
00049 int icalperiodtype_is_valid_period(struct icalperiodtype p);
00050 
00051 #endif /* !ICALTIME_H */
00052 
00053 
00054