1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ 2 /* 3 * GData Client 4 * Copyright (C) Philip Withnall 2009, 2015 <philip@tecnocode.co.uk> 5 * 6 * GData Client is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * GData Client is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with GData Client. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 #ifndef GDATA_CALENDAR_CALENDAR_H 21 #define GDATA_CALENDAR_CALENDAR_H 22 23 #include <glib.h> 24 #include <glib-object.h> 25 26 #include <gdata/gdata-entry.h> 27 #include <gdata/gdata-types.h> 28 29 G_BEGIN_DECLS 30 31 #define GDATA_TYPE_CALENDAR_CALENDAR (gdata_calendar_calendar_get_type ()) 32 #define GDATA_CALENDAR_CALENDAR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDATA_TYPE_CALENDAR_CALENDAR, GDataCalendarCalendar)) 33 #define GDATA_CALENDAR_CALENDAR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GDATA_TYPE_CALENDAR_CALENDAR, GDataCalendarCalendarClass)) 34 #define GDATA_IS_CALENDAR_CALENDAR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDATA_TYPE_CALENDAR_CALENDAR)) 35 #define GDATA_IS_CALENDAR_CALENDAR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDATA_TYPE_CALENDAR_CALENDAR)) 36 #define GDATA_CALENDAR_CALENDAR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDATA_TYPE_CALENDAR_CALENDAR, GDataCalendarCalendarClass)) 37 38 typedef struct _GDataCalendarCalendarPrivate GDataCalendarCalendarPrivate; 39 40 /** 41 * GDataCalendarCalendar: 42 * 43 * All the fields in the #GDataCalendarCalendar structure are private and should never be accessed directly. 44 */ 45 typedef struct { 46 GDataEntry parent; 47 GDataCalendarCalendarPrivate *priv; 48 } GDataCalendarCalendar; 49 50 /** 51 * GDataCalendarCalendarClass: 52 * 53 * All the fields in the #GDataCalendarCalendarClass structure are private and should never be accessed directly. 54 */ 55 typedef struct { 56 /*< private >*/ 57 GDataEntryClass parent; 58 59 /*< private >*/ 60 /* Padding for future expansion */ 61 void (*_g_reserved0) (void); 62 void (*_g_reserved1) (void); 63 } GDataCalendarCalendarClass; 64 65 GType gdata_calendar_calendar_get_type (void) G_GNUC_CONST; 66 67 GDataCalendarCalendar *gdata_calendar_calendar_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC; 68 69 const gchar *gdata_calendar_calendar_get_timezone (GDataCalendarCalendar *self) G_GNUC_PURE; 70 void gdata_calendar_calendar_set_timezone (GDataCalendarCalendar *self, const gchar *_timezone); 71 gboolean gdata_calendar_calendar_is_hidden (GDataCalendarCalendar *self) G_GNUC_PURE; 72 void gdata_calendar_calendar_set_is_hidden (GDataCalendarCalendar *self, gboolean is_hidden); 73 void gdata_calendar_calendar_get_color (GDataCalendarCalendar *self, GDataColor *color); 74 void gdata_calendar_calendar_set_color (GDataCalendarCalendar *self, const GDataColor *color); 75 gboolean gdata_calendar_calendar_is_selected (GDataCalendarCalendar *self) G_GNUC_PURE; 76 void gdata_calendar_calendar_set_is_selected (GDataCalendarCalendar *self, gboolean is_selected); 77 const gchar *gdata_calendar_calendar_get_access_level (GDataCalendarCalendar *self) G_GNUC_PURE; 78 79 #ifndef LIBGDATA_DISABLE_DEPRECATED 80 guint gdata_calendar_calendar_get_times_cleaned (GDataCalendarCalendar *self) G_GNUC_PURE G_GNUC_DEPRECATED; 81 gint64 gdata_calendar_calendar_get_edited (GDataCalendarCalendar *self) G_GNUC_DEPRECATED; 82 #endif /* !LIBGDATA_DISABLE_DEPRECATED */ 83 84 G_END_DECLS 85 86 #endif /* !GDATA_CALENDAR_CALENDAR_H */ 87