![]() |
![]() |
![]() |
GData Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
#include <gdata/services/calendar/gdata-calendar-calendar.h> GDataCalendarCalendar; GDataCalendarCalendarClass; GDataCalendarCalendar * gdata_calendar_calendar_new (const gchar *id
); void gdata_calendar_calendar_get_color (GDataCalendarCalendar *self
,GDataColor *color
); void gdata_calendar_calendar_set_color (GDataCalendarCalendar *self
,GDataColor *color
); gboolean gdata_calendar_calendar_is_hidden (GDataCalendarCalendar *self
); void gdata_calendar_calendar_set_is_hidden (GDataCalendarCalendar *self
,gboolean is_hidden
); gboolean gdata_calendar_calendar_is_selected (GDataCalendarCalendar *self
); void gdata_calendar_calendar_set_is_selected (GDataCalendarCalendar *self
,gboolean is_selected
); const gchar * gdata_calendar_calendar_get_timezone (GDataCalendarCalendar *self
); void gdata_calendar_calendar_set_timezone (GDataCalendarCalendar *self
,const gchar *_timezone
); void gdata_calendar_calendar_get_edited (GDataCalendarCalendar *self
,GTimeVal *edited
); guint gdata_calendar_calendar_get_times_cleaned (GDataCalendarCalendar *self
); const gchar * gdata_calendar_calendar_get_access_level (GDataCalendarCalendar *self
);
"access-level" gchar* : Read "color" GDataColor* : Read / Write "edited" GTimeVal* : Read "is-hidden" gboolean : Read / Write "is-selected" gboolean : Read / Write "times-cleaned" guint : Read "timezone" gchar* : Read / Write
GDataCalendarCalendar is a subclass of GDataEntry to represent a calendar from Google Calendar.
For more details of Google Calendar's GData API, see the online documentation.
typedef struct _GDataCalendarCalendar GDataCalendarCalendar;
All the fields in the GDataCalendarCalendar structure are private and should never be accessed directly.
typedef struct { } GDataCalendarCalendarClass;
All the fields in the GDataCalendarCalendarClass structure are private and should never be accessed directly.
GDataCalendarCalendar * gdata_calendar_calendar_new (const gchar *id
);
Creates a new GDataCalendarCalendar with the given ID and default properties.
|
the calendar's ID, or NULL
|
Returns : |
a new GDataCalendarCalendar; unref with g_object_unref()
|
void gdata_calendar_calendar_get_color (GDataCalendarCalendar *self
,GDataColor *color
);
Gets the "color" property and puts it in color
.
|
a GDataCalendarCalendar |
|
a GDataColor |
void gdata_calendar_calendar_set_color (GDataCalendarCalendar *self
,GDataColor *color
);
Sets the "color" property to color
.
|
a GDataCalendarCalendar |
|
a new GDataColor |
gboolean gdata_calendar_calendar_is_hidden (GDataCalendarCalendar *self
);
Gets the "is-hidden" property.
|
a GDataCalendarCalendar |
Returns : |
TRUE if the calendar is hidden, FALSE otherwise
|
Since 0.2.0
void gdata_calendar_calendar_set_is_hidden (GDataCalendarCalendar *self
,gboolean is_hidden
);
Sets the "is-hidden" property to is_hidden
.
|
a GDataCalendarCalendar |
|
TRUE to hide the calendar, FALSE otherwise
|
Since 0.2.0
gboolean gdata_calendar_calendar_is_selected (GDataCalendarCalendar *self
);
Gets the "is-selected" property.
|
a GDataCalendarCalendar |
Returns : |
TRUE if the calendar is selected, FALSE otherwise
|
Since 0.2.0
void gdata_calendar_calendar_set_is_selected (GDataCalendarCalendar *self
,gboolean is_selected
);
Sets the "is-selected" property to is_selected
.
|
a GDataCalendarCalendar |
|
TRUE to select the calendar, FALSE otherwise
|
Since 0.2.0
const gchar * gdata_calendar_calendar_get_timezone
(GDataCalendarCalendar *self
);
Gets the "timezone" property.
|
a GDataCalendarCalendar |
Returns : |
the calendar's timezone, or NULL
|
void gdata_calendar_calendar_set_timezone (GDataCalendarCalendar *self
,const gchar *_timezone
);
Sets the "timezone" property to the new timezone, _timezone
.
Set _timezone
to NULL
to unset the property in the calendar.
|
a GDataCalendarCalendar |
|
a new timezone, or NULL
|
void gdata_calendar_calendar_get_edited (GDataCalendarCalendar *self
,GTimeVal *edited
);
Gets the "edited" property and puts it in edited
. If the property is unset,
both fields in the GTimeVal will be set to 0
.
|
a GDataCalendarCalendar |
|
a GTimeVal |
guint gdata_calendar_calendar_get_times_cleaned
(GDataCalendarCalendar *self
);
Gets the "times-cleaned" property.
|
a GDataCalendarCalendar |
Returns : |
the number of times the calendar has been totally emptied |
const gchar * gdata_calendar_calendar_get_access_level
(GDataCalendarCalendar *self
);
Gets the "access-level" property.
|
a GDataCalendarCalendar |
Returns : |
the authenticated user's access level to the calendar, or NULL
|
"access-level"
property"access-level" gchar* : Read
Indicates what level of access the authenticated user has to the calendar.
Default value: NULL
"color"
property"color" GDataColor* : Read / Write
The color used to highlight the calendar in the user's browser.
"edited"
property"edited" GTimeVal* : Read
The last time the calendar was edited. If the calendar has not been edited yet, the content indicates the time it was created.
For more information, see the Atom Publishing Protocol specification.
"is-hidden"
property"is-hidden" gboolean : Read / Write
Indicates whether the calendar is visible.
Default value: FALSE
Since 0.2.0
"is-selected"
property"is-selected" gboolean : Read / Write
Indicates whether the calendar is selected.
Default value: FALSE
Since 0.2.0
"times-cleaned"
property"times-cleaned" guint : Read
The number of times the calendar has been completely cleared of events.
Default value: 0
"timezone"
property"timezone" gchar* : Read / Write
The timezone in which the calendar's times are given.
Default value: NULL