Back to index

lightning-sunbird  0.9+nobinonly
icalparameter.h
Go to the documentation of this file.
00001 /* -*- Mode: C -*- */
00002 /*======================================================================
00003   FILE: icalparam.h
00004   CREATOR: eric 20 March 1999
00005 
00006 
00007   $Id: icalparameter.h,v 1.3 2004/03/17 19:04:54 acampi Exp $
00008   $Locker:  $
00009 
00010   
00011 
00012  (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
00013 
00014  This program is free software; you can redistribute it and/or modify
00015  it under the terms of either: 
00016 
00017     The LGPL as published by the Free Software Foundation, version
00018     2.1, available at: http://www.fsf.org/copyleft/lesser.html
00019 
00020   Or:
00021 
00022     The Mozilla Public License Version 1.0. You may obtain a copy of
00023     the License at http://www.mozilla.org/MPL/
00024 
00025   The original code is icalparam.h
00026 
00027   ======================================================================*/
00028 
00029 #ifndef ICALPARAM_H
00030 #define ICALPARAM_H
00031 
00032 #include "icalderivedparameter.h"
00033 
00034 /* Declared in icalderivedparameter.h */
00035 /*typedef struct icalparameter_impl icalparameter;*/
00036 
00037 icalparameter* icalparameter_new(icalparameter_kind kind);
00038 icalparameter* icalparameter_new_x_name(const char *name, const char *value);
00039 icalparameter* icalparameter_new_clone(icalparameter* p);
00040 
00041 /* Create from string of form "PARAMNAME=VALUE" */
00042 icalparameter* icalparameter_new_from_string(const char* value);
00043 
00044 /* Create from just the value, the part after the "=" */
00045 icalparameter* icalparameter_new_from_value_string(icalparameter_kind kind, const char* value);
00046 
00047 void icalparameter_free(icalparameter* parameter);
00048 
00049 char* icalparameter_as_ical_string(icalparameter* parameter);
00050 
00051 int icalparameter_is_valid(icalparameter* parameter);
00052 
00053 icalparameter_kind icalparameter_isa(icalparameter* parameter);
00054 
00055 int icalparameter_isa_parameter(void* param);
00056 
00057 /* Acess the name of an X parameer */
00058 void icalparameter_set_xname (icalparameter* param, const char* v);
00059 const char* icalparameter_get_xname(icalparameter* param);
00060 void icalparameter_set_xvalue (icalparameter* param, const char* v);
00061 const char* icalparameter_get_xvalue(icalparameter* param);
00062 
00063 /* Convert enumerations */
00064 
00065 const char* icalparameter_kind_to_string(icalparameter_kind kind);
00066 icalparameter_kind icalparameter_string_to_kind(const char* string);
00067 
00068 
00069 
00070 #endif