Blame gdata/services/calendar/gdata-calendar-query.h

Packit 4b6dd7
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
Packit 4b6dd7
/*
Packit 4b6dd7
 * GData Client
Packit 4b6dd7
 * Copyright (C) Philip Withnall 2009 <philip@tecnocode.co.uk>
Packit 4b6dd7
 *
Packit 4b6dd7
 * GData Client is free software; you can redistribute it and/or
Packit 4b6dd7
 * modify it under the terms of the GNU Lesser General Public
Packit 4b6dd7
 * License as published by the Free Software Foundation; either
Packit 4b6dd7
 * version 2.1 of the License, or (at your option) any later version.
Packit 4b6dd7
 *
Packit 4b6dd7
 * GData Client is distributed in the hope that it will be useful,
Packit 4b6dd7
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 4b6dd7
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 4b6dd7
 * Lesser General Public License for more details.
Packit 4b6dd7
 *
Packit 4b6dd7
 * You should have received a copy of the GNU Lesser General Public
Packit 4b6dd7
 * License along with GData Client.  If not, see <http://www.gnu.org/licenses/>.
Packit 4b6dd7
 */
Packit 4b6dd7
Packit 4b6dd7
#ifndef GDATA_CALENDAR_QUERY_H
Packit 4b6dd7
#define GDATA_CALENDAR_QUERY_H
Packit 4b6dd7
Packit 4b6dd7
#include <glib.h>
Packit 4b6dd7
#include <glib-object.h>
Packit 4b6dd7
Packit 4b6dd7
#include <gdata/gdata-query.h>
Packit 4b6dd7
#include <gdata/gdata-types.h>
Packit 4b6dd7
Packit 4b6dd7
G_BEGIN_DECLS
Packit 4b6dd7
Packit 4b6dd7
#define GDATA_TYPE_CALENDAR_QUERY		(gdata_calendar_query_get_type ())
Packit 4b6dd7
#define GDATA_CALENDAR_QUERY(o)			(G_TYPE_CHECK_INSTANCE_CAST ((o), GDATA_TYPE_CALENDAR_QUERY, GDataCalendarQuery))
Packit 4b6dd7
#define GDATA_CALENDAR_QUERY_CLASS(k)		(G_TYPE_CHECK_CLASS_CAST((k), GDATA_TYPE_CALENDAR_QUERY, GDataCalendarQueryClass))
Packit 4b6dd7
#define GDATA_IS_CALENDAR_QUERY(o)		(G_TYPE_CHECK_INSTANCE_TYPE ((o), GDATA_TYPE_CALENDAR_QUERY))
Packit 4b6dd7
#define GDATA_IS_CALENDAR_QUERY_CLASS(k)	(G_TYPE_CHECK_CLASS_TYPE ((k), GDATA_TYPE_CALENDAR_QUERY))
Packit 4b6dd7
#define GDATA_CALENDAR_QUERY_GET_CLASS(o)	(G_TYPE_INSTANCE_GET_CLASS ((o), GDATA_TYPE_CALENDAR_QUERY, GDataCalendarQueryClass))
Packit 4b6dd7
Packit 4b6dd7
typedef struct _GDataCalendarQueryPrivate	GDataCalendarQueryPrivate;
Packit 4b6dd7
Packit 4b6dd7
/**
Packit 4b6dd7
 * GDataCalendarQuery:
Packit 4b6dd7
 *
Packit 4b6dd7
 * All the fields in the #GDataCalendarQuery structure are private and should never be accessed directly.
Packit 4b6dd7
 */
Packit 4b6dd7
typedef struct {
Packit 4b6dd7
	GDataQuery parent;
Packit 4b6dd7
	GDataCalendarQueryPrivate *priv;
Packit 4b6dd7
} GDataCalendarQuery;
Packit 4b6dd7
Packit 4b6dd7
/**
Packit 4b6dd7
 * GDataCalendarQueryClass:
Packit 4b6dd7
 *
Packit 4b6dd7
 * All the fields in the #GDataCalendarQueryClass structure are private and should never be accessed directly.
Packit 4b6dd7
 */
Packit 4b6dd7
typedef struct {
Packit 4b6dd7
	/*< private >*/
Packit 4b6dd7
	GDataQueryClass parent;
Packit 4b6dd7
Packit 4b6dd7
	/*< private >*/
Packit 4b6dd7
	/* Padding for future expansion */
Packit 4b6dd7
	void (*_g_reserved0) (void);
Packit 4b6dd7
	void (*_g_reserved1) (void);
Packit 4b6dd7
} GDataCalendarQueryClass;
Packit 4b6dd7
Packit 4b6dd7
GType gdata_calendar_query_get_type (void) G_GNUC_CONST;
Packit 4b6dd7
Packit 4b6dd7
GDataCalendarQuery *gdata_calendar_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
Packit 4b6dd7
GDataCalendarQuery *gdata_calendar_query_new_with_limits (const gchar *q, gint64 start_min, gint64 start_max) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
Packit 4b6dd7
Packit 4b6dd7
gboolean gdata_calendar_query_get_future_events (GDataCalendarQuery *self) G_GNUC_PURE;
Packit 4b6dd7
void gdata_calendar_query_set_future_events (GDataCalendarQuery *self, gboolean future_events);
Packit 4b6dd7
const gchar *gdata_calendar_query_get_order_by (GDataCalendarQuery *self) G_GNUC_PURE;
Packit 4b6dd7
void gdata_calendar_query_set_order_by (GDataCalendarQuery *self, const gchar *order_by);
Packit 4b6dd7
gboolean gdata_calendar_query_get_single_events (GDataCalendarQuery *self) G_GNUC_PURE;
Packit 4b6dd7
void gdata_calendar_query_set_single_events (GDataCalendarQuery *self, gboolean single_events);
Packit 4b6dd7
gint64 gdata_calendar_query_get_start_min (GDataCalendarQuery *self);
Packit 4b6dd7
void gdata_calendar_query_set_start_min (GDataCalendarQuery *self, gint64 start_min);
Packit 4b6dd7
gint64 gdata_calendar_query_get_start_max (GDataCalendarQuery *self);
Packit 4b6dd7
void gdata_calendar_query_set_start_max (GDataCalendarQuery *self, gint64 start_max);
Packit 4b6dd7
const gchar *gdata_calendar_query_get_timezone (GDataCalendarQuery *self) G_GNUC_PURE;
Packit 4b6dd7
void gdata_calendar_query_set_timezone (GDataCalendarQuery *self, const gchar *_timezone);
Packit 4b6dd7
guint gdata_calendar_query_get_max_attendees (GDataCalendarQuery *self) G_GNUC_PURE;
Packit 4b6dd7
void gdata_calendar_query_set_max_attendees (GDataCalendarQuery *self, guint max_attendees);
Packit 4b6dd7
gboolean gdata_calendar_query_show_deleted (GDataCalendarQuery *self) G_GNUC_PURE;
Packit 4b6dd7
void gdata_calendar_query_set_show_deleted (GDataCalendarQuery *self, gboolean show_deleted);
Packit 4b6dd7
Packit 4b6dd7
#ifndef LIBGDATA_DISABLE_DEPRECATED
Packit 4b6dd7
gint64 gdata_calendar_query_get_recurrence_expansion_start (GDataCalendarQuery *self) G_GNUC_DEPRECATED_FOR (gdata_calendar_query_get_single_events);
Packit 4b6dd7
void gdata_calendar_query_set_recurrence_expansion_start (GDataCalendarQuery *self, gint64 start) G_GNUC_DEPRECATED_FOR (gdata_calendar_query_set_single_events);
Packit 4b6dd7
gint64 gdata_calendar_query_get_recurrence_expansion_end (GDataCalendarQuery *self) G_GNUC_DEPRECATED_FOR (gdata_calendar_query_get_single_events);
Packit 4b6dd7
void gdata_calendar_query_set_recurrence_expansion_end (GDataCalendarQuery *self, gint64 end) G_GNUC_DEPRECATED_FOR (gdata_calendar_query_set_single_events);
Packit 4b6dd7
Packit 4b6dd7
const gchar *gdata_calendar_query_get_sort_order (GDataCalendarQuery *self) G_GNUC_PURE G_GNUC_DEPRECATED;
Packit 4b6dd7
void gdata_calendar_query_set_sort_order (GDataCalendarQuery *self, const gchar *sort_order) G_GNUC_DEPRECATED_FOR (g_list_sort);
Packit 4b6dd7
#endif /* !LIBGDATA_DISABLE_DEPRECATED */
Packit 4b6dd7
Packit 4b6dd7
G_END_DECLS
Packit 4b6dd7
Packit 4b6dd7
#endif /* !GDATA_CALENDAR_QUERY_H */