/* Generated file (by generator) */ /* * Copyright (C) 2015 William Yu * * This library is free software: you can redistribute it and/or modify it * under the terms of version 2.1. of the GNU Lesser General Public License * as published by the Free Software Foundation. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License * for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this library. If not, see . */ #if !defined (__LIBICAL_GLIB_H_INSIDE__) && !defined (LIBICAL_GLIB_COMPILATION) #error "Only can be included directly." #endif #ifndef I_CAL_PERIOD_H #define I_CAL_PERIOD_H #include #include G_BEGIN_DECLS #define I_CAL_TYPE_PERIOD \ (i_cal_period_get_type ()) #define I_CAL_PERIOD(obj) \ (G_TYPE_CHECK_INSTANCE_CAST \ ((obj), I_CAL_TYPE_PERIOD, ICalPeriod)) #define I_CAL_PERIOD_CLASS(klass) \ (G_TYPE_CHECK_CLASS_CAST \ ((klass), I_CAL_TYPE_PERIOD, ICalPeriodClass)) #define I_CAL_IS_PERIOD(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE \ ((obj), I_CAL_TYPE_PERIOD)) #define I_CAL_IS_PERIOD_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE \ ((klass), I_CAL_TYPE_PERIOD)) /** * ICalPeriod: * * This is the ICalPeriod instance. */ /** * ICalPeriodClass: * * This is the ICalPeriod class. */ typedef struct _ICalPeriodClass ICalPeriodClass; struct _ICalPeriod { /*< private >*/ ICalObject parent; }; struct _ICalPeriodClass { /*< private >*/ ICalObjectClass parent; }; LIBICAL_ICAL_EXPORT GType i_cal_period_get_type (void); LIBICAL_ICAL_EXPORT ICalTime * i_cal_period_get_start (ICalPeriod *period); LIBICAL_ICAL_EXPORT void i_cal_period_set_start (ICalPeriod *period, ICalTime *start); LIBICAL_ICAL_EXPORT ICalTime * i_cal_period_get_end (ICalPeriod *period); LIBICAL_ICAL_EXPORT void i_cal_period_set_end (ICalPeriod *period, ICalTime *end); LIBICAL_ICAL_EXPORT ICalDuration * i_cal_period_get_duration (ICalPeriod *period); LIBICAL_ICAL_EXPORT void i_cal_period_set_duration (ICalPeriod *period, ICalDuration *duration); LIBICAL_ICAL_EXPORT ICalPeriod * i_cal_period_new_from_string (const gchar *str); LIBICAL_ICAL_EXPORT gchar * i_cal_period_as_ical_string (ICalPeriod *p); LIBICAL_ICAL_EXPORT ICalPeriod * i_cal_period_new_null_period (void); LIBICAL_ICAL_EXPORT gboolean i_cal_period_is_null_period (ICalPeriod *p); LIBICAL_ICAL_EXPORT gboolean i_cal_period_is_valid_period (ICalPeriod *p); G_END_DECLS #endif /* I_CAL_PERIOD_H */