Back to index

lightning-sunbird  0.9+nobinonly
icalcluster.h
Go to the documentation of this file.
00001 /* -*- Mode: C -*- */
00002 /*======================================================================
00003  FILE: icalcluster.h
00004  CREATOR: eric 23 December 1999
00005 
00006 
00007  $Id: icalcluster.h,v 1.2 2002/06/27 02:30:58 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 ICALCLUSTER_H
00030 #define ICALCLUSTER_H
00031 
00032 #include "ical.h"
00033 #include "icalset.h"
00034 
00035 typedef struct icalcluster_impl icalcluster;
00036 
00037 icalcluster* icalcluster_new(const char *key, icalcomponent *data);
00038 icalcluster* icalcluster_new_clone(const icalcluster *cluster);
00039 
00040 void icalcluster_free(icalcluster *cluster);
00041 
00042 const char* icalcluster_key(icalcluster *cluster);
00043 int icalcluster_is_changed(icalcluster *cluster);
00044 void icalcluster_mark(icalcluster *cluster);
00045 void icalcluster_commit(icalcluster *cluster);
00046 
00047 icalcomponent* icalcluster_get_component(icalcluster* cluster);
00048 int icalcluster_count_components(icalcluster *cluster, icalcomponent_kind kind);
00049 icalerrorenum icalcluster_add_component(icalcluster* cluster,
00050                                    icalcomponent* child);
00051 icalerrorenum icalcluster_remove_component(icalcluster* cluster,
00052                                       icalcomponent* child);
00053 
00054 icalcomponent* icalcluster_get_current_component(icalcluster* cluster);
00055 icalcomponent* icalcluster_get_first_component(icalcluster* cluster);
00056 icalcomponent* icalcluster_get_next_component(icalcluster* cluster);
00057 
00058 #endif /* !ICALCLUSTER_H */
00059 
00060 
00061