1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
4
* Ebby Wiselyn <ebbywiselyn@gmail.com>
5
* Jason Willis <zenbrother@gmail.com>
7
* Copyright 2007, Novell, Inc.
9
* This program is free software; you can redistribute it and/or
10
* modify it under the terms of version 2 of the GNU Lesser General Public
11
* License as published by the Free Software Foundation.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU Lesser General Public License for more details.
18
* * You should have received a copy of the GNU Lesser General Public
19
* License along with this library; if not, write to the
20
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
21
* Boston, MA 02110-1301, USA.
26
#include <gdata-service-iface.h>
29
gdata_service_set_credentials (GDataService *self, const char *username, const gchar *password)
31
GDATA_SERVICE_GET_IFACE(self)->set_credentials(self, username, password);
36
gdata_service_get_feed (GDataService *self, const char* feedURL)
38
return GDATA_SERVICE_GET_IFACE(self)->get_feed(self, feedURL);
42
gdata_service_insert_entry (GDataService *self, const gchar *feed_postURL, GDataEntry *entry)
44
return GDATA_SERVICE_GET_IFACE(self)->insert_entry(self, g_strdup(feed_postURL), entry);
48
gdata_service_get_entry (GDataService *self, const gchar *entry_getURL)
50
return GDATA_SERVICE_GET_IFACE(self)->get_entry(self, entry_getURL);
54
gdata_service_update_entry (GDataService *self, GDataEntry *entry)
56
GDATA_SERVICE_GET_IFACE(self)->update_entry(self, entry);
61
gdata_service_update_entry_with_link (GDataService *self, GDataEntry *entry, gchar *link)
63
GDATA_SERVICE_GET_IFACE(self)->update_entry_with_link(self, entry, link);
68
gdata_service_delete_entry (GDataService *self, GDataEntry *entry)
70
GDATA_SERVICE_GET_IFACE(self)->delete_entry (self, entry);
75
gdata_service_base_init (gpointer g_class)
77
static gboolean initialized = FALSE;
80
/* create interface signals here. */
86
gdata_service_get_type (void)
88
static GType type = 0;
90
if (G_UNLIKELY(type == 0))
92
static const GTypeInfo info =
94
sizeof (GDataServiceIface),
95
gdata_service_base_init, /* base_init */
96
NULL, /* base_finalize */
97
NULL, /* class_init */
98
NULL, /* class_finalize */
99
NULL, /* class_data */
102
NULL /* instance_init */
104
type = g_type_register_static (G_TYPE_INTERFACE,
105
"GDataService", &info, 0);
106
g_type_interface_add_prerequisite (type, G_TYPE_OBJECT );