| libical-glib Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#define I_CAL_VALUE_TYPE ICalValue; struct ICalValueClass; ICalValue * i_cal_value_new (ICalValueKind kind); ICalValue * i_cal_value_new_clone (const ICalValue *value); ICalValue * i_cal_value_new_from_string (ICalValueKind kind,const);gchar *strvoid i_cal_value_free (ICalValue *value);gint i_cal_value_is_valid (const ICalValue *value);gchar * i_cal_value_as_ical_string_r (const ICalValue *value); ICalValueKind i_cal_value_isa (const ICalValue *value);gint i_cal_value_isa_value (ICalValue *value); ICalParameterXliccomparetype i_cal_value_compare (const ICalValue *a,const ICalValue *b); ICalValueKind i_cal_value_string_to_kind (const); constgchar *strgchar * i_cal_value_kind_to_string (const ICalValueKind kind);gint i_cal_value_kind_is_valid (const ICalValueKind kind);gchar * i_cal_value_encode_ical_string (const);gchar *szTextgchar * i_cal_value_decode_ical_string (const);gchar *szText
ICalValue * i_cal_value_new (ICalValueKind kind);
Create a new ICalValue with specific kind.
|
A ICalValueKind |
Returns : |
The newly created ICalValue. [transfer full] |
Since 1.0
ICalValue * i_cal_value_new_clone (const ICalValue *value);
Deeply clone a ICalValue.
|
The ICalValue to be cloned. |
Returns : |
The newly created ICalValue with the same property as value. [transfer full]
|
Since 1.0
ICalValue * i_cal_value_new_from_string (ICalValueKind kind,const);gchar *str
Create a new ICalValue based on the ICalValueKind and a string.
|
A ICalValueKind |
|
A string. |
Returns : |
The newly created ICalValue based on the kind and str. [transfer full]
|
Since 1.0
void i_cal_value_free (ICalValue *value);
Free a ICalValue.
|
The ICalValue to be freed. |
Since 1.0
gint i_cal_value_is_valid (const ICalValue *value);
Check if ICalValue is valid.
|
The ICalValue to be checked. |
Returns : |
1 if valid, 0 if not. |
Since 1.0
gchar * i_cal_value_as_ical_string_r (const ICalValue *value);
Convert the ICalValue to a string.
|
A ICalValue. |
Returns : |
The string representation. [transfer full] |
Since 1.0
ICalValueKind i_cal_value_isa (const ICalValue *value);
Get the kind of ICalValue.
|
A ICalValue. |
Returns : |
The kind of value. |
Since 1.0
gint i_cal_value_isa_value (ICalValue *value);
Check whether the native part of ICalValue is an icalvalue
|
A ICalValue |
Returns : |
1 if yes, 0 if not. |
Since 1.0
ICalParameterXliccomparetype i_cal_value_compare (const ICalValue *a,const ICalValue *b);
Compare two ICalValue.
Since 1.0
ICalValueKind i_cal_value_string_to_kind (const gchar *str);
Convert a string to ICalValueKind.
|
A string. |
Returns : |
A ICalValueKind. |
Since 1.0
constgchar * i_cal_value_kind_to_string (const ICalValueKind kind);
Convert the ICalValueKind to a string.
|
A ICalValueKind. |
Returns : |
The string representation of ICalValueKind. |
Since 1.0
gint i_cal_value_kind_is_valid (const ICalValueKind kind);
Check whether the ICalValueKind is valid.
|
The ICalValueKind to be checked. |
Returns : |
1 if yes, 0 if not. |
Since 1.0
gchar * i_cal_value_encode_ical_string (const);gchar *szText
Encode a character string in ical format, escape certain characters, etc.
|
A string. |
Returns : |
The encoded string. NULL if fail. [allow-none][transfer full] |
Since 1.0