![]() |
![]() |
![]() |
libical-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#define I_CAL_DURATION_TYPE_TYPE ICalDurationType; struct ICalDurationTypeClass; ICalDurationType * i_cal_duration_type_new_full (struct icaldurationtype native
); gint i_cal_duration_type_is_neg (ICalDurationType *duration_type
); void i_cal_duration_type_set_is_neg (ICalDurationType *duration_type
,gint is_neg
); guint i_cal_duration_type_get_days (ICalDurationType *duration_type
); void i_cal_duration_type_set_days (ICalDurationType *duration_type
,guint days
); guint i_cal_duration_type_get_weeks (ICalDurationType *duration_type
); void i_cal_duration_type_set_weeks (ICalDurationType *duration_type
,guint weeks
); guint i_cal_duration_type_get_hours (ICalDurationType *duration_type
); void i_cal_duration_type_set_hours (ICalDurationType *duration_type
,guint hours
); guint i_cal_duration_type_get_minutes (ICalDurationType *duration_type
); void i_cal_duration_type_set_minutes (ICalDurationType *duration_type
,guint minutes
); guint i_cal_duration_type_get_seconds (ICalDurationType *duration_type
); void i_cal_duration_type_set_seconds (ICalDurationType *duration_type
,guint seconds
); ICalDurationType * i_cal_duration_type_from_int (gint t
); ICalDurationType * i_cal_duration_type_from_string (const gchar *str
); gint i_cal_duration_type_as_int (ICalDurationType *duration
); gchar * i_cal_duration_type_as_ical_string_r (ICalDurationType *duration
); ICalDurationType * i_cal_duration_type_null_duration (void
); ICalDurationType * i_cal_duration_type_bad_duration (void
); gint i_cal_duration_type_is_null_duration (ICalDurationType *duration
); gint i_cal_duration_type_is_bad_duration (ICalDurationType *duration
);
typedef struct _ICalDurationType ICalDurationType;
This is the ICalDurationType instance.
ICalDurationType * i_cal_duration_type_new_full (struct icaldurationtype native
);
Create a new libical-glib object from the native libical object and the owner.
|
The native libical object. |
Returns : |
The newly create libical-glib object. [transfer full] |
Since 1.0
gint i_cal_duration_type_is_neg (ICalDurationType *duration_type
);
Get the is_neg of ICalDurationType.
|
The ICalDurationType to be queried. |
Returns : |
The is_neg. |
Since 1.0
void i_cal_duration_type_set_is_neg (ICalDurationType *duration_type
,gint is_neg
);
Set the is_neg of ICalDurationType.
|
The ICalDurationType to be set. |
|
The is_neg. |
Since 1.0
guint i_cal_duration_type_get_days (ICalDurationType *duration_type
);
Get the days of ICalDurationType.
|
The ICalDurationType to be queried. |
Returns : |
The days. |
Since 1.0
void i_cal_duration_type_set_days (ICalDurationType *duration_type
,guint days
);
Set the days of ICalDurationType.
|
The ICalDurationType to be set. |
|
The days. |
Since 1.0
guint i_cal_duration_type_get_weeks (ICalDurationType *duration_type
);
Get the weeks of ICalDurationType.
|
The ICalDurationType to be queried. |
Returns : |
The weeks. |
Since 1.0
void i_cal_duration_type_set_weeks (ICalDurationType *duration_type
,guint weeks
);
Set the weeks of ICalDurationType.
|
The ICalDurationType to be set. |
|
The weeks. |
Since 1.0
guint i_cal_duration_type_get_hours (ICalDurationType *duration_type
);
Get the hours of ICalDurationType.
|
The ICalDurationType to be queried. |
Returns : |
The hours. |
Since 1.0
void i_cal_duration_type_set_hours (ICalDurationType *duration_type
,guint hours
);
Set the hours of ICalDurationType.
|
The ICalDurationType to be set. |
|
The hours. |
Since 1.0
guint i_cal_duration_type_get_minutes (ICalDurationType *duration_type
);
Get the minutes of ICalDurationType.
|
The ICalDurationType to be queried. |
Returns : |
The minutes. |
Since 1.0
void i_cal_duration_type_set_minutes (ICalDurationType *duration_type
,guint minutes
);
Set the minutes of ICalDurationType.
|
The ICalDurationType to be set. |
|
The minutes. |
Since 1.0
guint i_cal_duration_type_get_seconds (ICalDurationType *duration_type
);
Get the seconds of ICalDurationType.
|
The ICalDurationType to be queried. |
Returns : |
The seconds. |
Since 1.0
void i_cal_duration_type_set_seconds (ICalDurationType *duration_type
,guint seconds
);
Set the seconds of ICalDurationType.
|
The ICalDurationType to be set. |
|
The seconds. |
Since 1.0
ICalDurationType * i_cal_duration_type_from_int (gint t
);
Create a ICalDurationType from the duration in second
|
the duration in second |
Returns : |
The newly created ICalDurationType. [transfer full] |
Since 1.0
ICalDurationType * i_cal_duration_type_from_string (const gchar *str
);
Create a ICalDurationType from the duration in string
|
The string representation of the duration |
Returns : |
The newly created ICalDurationType. [transfer full] |
Since 1.0
gint i_cal_duration_type_as_int (ICalDurationType *duration
);
Convert the ICalDurationType to the representation in second
|
The ICalDurationType to be converted |
Returns : |
The duration in second |
Since 1.0
gchar * i_cal_duration_type_as_ical_string_r
(ICalDurationType *duration
);
Convert the ICalDurationType to the representation in string
|
The ICalDurationType to be converted |
Returns : |
The duration in string. [transfer full] |
Since 1.0
ICalDurationType * i_cal_duration_type_null_duration (void
);
Create a ICalDurationType with all the fields to be zero
Returns : |
The newly created ICalDurationType. [transfer full] |
Since 1.0
ICalDurationType * i_cal_duration_type_bad_duration (void
);
Create a bad ICalDurationType
Returns : |
The newly created ICalDurationType. [transfer full] |
Since 1.0
gint i_cal_duration_type_is_null_duration
(ICalDurationType *duration
);
Check whether the ICalDurationType is the null_duration
|
The ICalDurationType to be checked |
Returns : |
1 if duration is the null_duration, 0 if not. |
Since 1.0
gint i_cal_duration_type_is_bad_duration (ICalDurationType *duration
);
Check whether the ICalDurationType is the bad_duration
|
The ICalDurationType to be checked |
Returns : |
1 if duration is the bad_duration, 0 if not. |
Since 1.0