ICalDuration

ICalDuration

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── ICalObject
        ╰── ICalDuration

Description

Functions

i_cal_duration_is_neg ()

gboolean
i_cal_duration_is_neg (ICalDuration *duration);

Get the is_neg of ICalDuration.

Parameters

duration

The ICalDuration to be queried.

 

Returns

The is_neg.

Since: 1.0


i_cal_duration_set_is_neg ()

void
i_cal_duration_set_is_neg (ICalDuration *duration,
                           gboolean is_neg);

Set the is_neg of ICalDuration.

Parameters

duration

The ICalDuration to be set.

 

is_neg

The is_neg.

 

Since: 1.0


i_cal_duration_get_days ()

guint
i_cal_duration_get_days (ICalDuration *duration);

Get the days of ICalDuration.

Parameters

duration

The ICalDuration to be queried.

 

Returns

The days.

Since: 1.0


i_cal_duration_set_days ()

void
i_cal_duration_set_days (ICalDuration *duration,
                         guint days);

Set the days of ICalDuration.

Parameters

duration

The ICalDuration to be set.

 

days

The days.

 

Since: 1.0


i_cal_duration_get_weeks ()

guint
i_cal_duration_get_weeks (ICalDuration *duration);

Get the weeks of ICalDuration.

Parameters

duration

The ICalDuration to be queried.

 

Returns

The weeks.

Since: 1.0


i_cal_duration_set_weeks ()

void
i_cal_duration_set_weeks (ICalDuration *duration,
                          guint weeks);

Set the weeks of ICalDuration.

Parameters

duration

The ICalDuration to be set.

 

weeks

The weeks.

 

Since: 1.0


i_cal_duration_get_hours ()

guint
i_cal_duration_get_hours (ICalDuration *duration);

Get the hours of ICalDuration.

Parameters

duration

The ICalDuration to be queried.

 

Returns

The hours.

Since: 1.0


i_cal_duration_set_hours ()

void
i_cal_duration_set_hours (ICalDuration *duration,
                          guint hours);

Set the hours of ICalDuration.

Parameters

duration

The ICalDuration to be set.

 

hours

The hours.

 

Since: 1.0


i_cal_duration_get_minutes ()

guint
i_cal_duration_get_minutes (ICalDuration *duration);

Get the minutes of ICalDuration.

Parameters

duration

The ICalDuration to be queried.

 

Returns

The minutes.

Since: 1.0


i_cal_duration_set_minutes ()

void
i_cal_duration_set_minutes (ICalDuration *duration,
                            guint minutes);

Set the minutes of ICalDuration.

Parameters

duration

The ICalDuration to be set.

 

minutes

The minutes.

 

Since: 1.0


i_cal_duration_get_seconds ()

guint
i_cal_duration_get_seconds (ICalDuration *duration);

Get the seconds of ICalDuration.

Parameters

duration

The ICalDuration to be queried.

 

Returns

The seconds.

Since: 1.0


i_cal_duration_set_seconds ()

void
i_cal_duration_set_seconds (ICalDuration *duration,
                            guint seconds);

Set the seconds of ICalDuration.

Parameters

duration

The ICalDuration to be set.

 

seconds

The seconds.

 

Since: 1.0


i_cal_duration_new_from_int ()

ICalDuration *
i_cal_duration_new_from_int (gint t);

Create a ICalDuration from the duration in second

Parameters

t

the duration in second

 

Returns

The newly created ICalDuration.

[transfer full]

Since: 1.0


i_cal_duration_new_from_string ()

ICalDuration *
i_cal_duration_new_from_string (const gchar *str);

Create a ICalDuration from the duration in string

Parameters

str

The string representation of the duration

 

Returns

The newly created ICalDuration.

[transfer full]

Since: 1.0


i_cal_duration_as_int ()

gint
i_cal_duration_as_int (ICalDuration *duration);

Convert the ICalDuration to the representation in second

Parameters

duration

The ICalDuration to be converted

 

Returns

The duration in second

Since: 1.0


i_cal_duration_as_ical_string ()

gchar *
i_cal_duration_as_ical_string (ICalDuration *duration);

Convert the ICalDuration to the representation in string

Parameters

duration

The ICalDuration to be converted

 

Returns

The duration in string.

[transfer full]

Since: 1.0


i_cal_duration_new_null_duration ()

ICalDuration *
i_cal_duration_new_null_duration (void);

Create a ICalDuration with all the fields to be zero

Returns

The newly created ICalDuration.

[transfer full]

Since: 1.0


i_cal_duration_new_bad_duration ()

ICalDuration *
i_cal_duration_new_bad_duration (void);

Create a bad ICalDuration

Returns

The newly created ICalDuration.

[transfer full]

Since: 1.0


i_cal_duration_is_null_duration ()

gboolean
i_cal_duration_is_null_duration (ICalDuration *duration);

Check whether the ICalDuration is the null_duration

Parameters

duration

The ICalDuration to be checked

 

Returns

1 if duration is the null_duration, 0 if not.

Since: 1.0


i_cal_duration_is_bad_duration ()

gboolean
i_cal_duration_is_bad_duration (ICalDuration *duration);

Check whether the ICalDuration is the bad_duration

Parameters

duration

The ICalDuration to be checked

 

Returns

1 if duration is the bad_duration, 0 if not.

Since: 1.0

Types and Values

ICalDuration

typedef struct _ICalDuration ICalDuration;

This is the ICalDuration instance.


struct ICalDurationClass

struct ICalDurationClass {
};

This is the ICalDuration class.