~ubuntu-branches/ubuntu/hardy/evolution-data-server/hardy-updates

« back to all changes in this revision

Viewing changes to servers/google/libgdata/gdata-service-iface.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-11-13 10:59:20 UTC
  • mfrom: (1.1.38 upstream)
  • Revision ID: james.westby@ubuntu.com-20071113105920-nb6w14udvgx0ghi3
Tags: 2.21.2-0ubuntu1
* New upstream version:
  Bug Fixes:
  - #318842: Task lists should be sorted (LP: #23912)
  - #345135: Disable SSLv2 compatible HELLO on SSL stream when 
    SSLv2 is disabled
  - #359267: Not all memos are showed in calendar view
  - #430420: Returned size <= 0 is an error
  - #460649: Meeting UI Needs To Show Color Of Selected Calendar Source
  - #487229: Use GKeyFile instead of gnome-config to access stored passwords
  - #488156: Minimize use of the WITH_GNOME_KEYRING macro
  - #492130: ESourceSelector uses pointers to ESource
  - #494304: Fix leak
  Updated Translations
  New in 2.21.1:
  - Support for Google Calendar
  Bug Fixes:
  - #203480: (Novell Bugzilla) Compiler warning fix 
    for usage ofunintialized variable
  - #231178: New symbol 'set-label' defined and added corresponding callback
  - #271777: Keep character's case as user types
  - #417999: Don't use deprecated GTK+ symbols
  - #420167: e-d-s now exits with gnome-session
  - #469657: Better use of GHashTable
  - #474000: Use GLib's Base64 API instead of Camel's
  - #475487: When creating the default contact, print errors to the console
  - #475493: Use G_DEFINE_TYPE
  - #475494: Use G_LOCK instead of a static mutex for clearer code
  - #478404: Reset the id to zero
  - #483301: Remove an unused variable
  - #487270: Fix typo in documentation
  - #488173: Remove __FUNCTION__, which is a gcc-ism
  - #488351: Fix an addressbook error on a fresh install
  Other Contributors:
  - Protect against a NULL subject string. 
* debian/*.preinst:
  - On upgrades from Gutsy, remove the symlinks introduced in Gutsy. They
    break upgrades all over, and current cdbs just symlinks individual files.
* Sync with Debian
* debian/control:
  - evolution-data-server Breaks evolution (<< 2.9), 
    evolution-exchange (<= 2.8.1-0ubuntu1),
    evolution-jescs (<= 2.8.2-0ubuntu3), 
    evolution-scalix (<= 10.0.0.357-0ubuntu6)
  - updated maintainer to desktop team
* debian/rules:
  - don't specify the paths for nspr and nss since the package is built 
    with firefox
  - don't build documentation, it's distributed in the upstream tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
2
/* 
 
3
 * Authors : 
 
4
 *  Ebby Wiselyn <ebbywiselyn@gmail.com>
 
5
 *  Jason Willis <zenbrother@gmail.com>
 
6
 *
 
7
 * Copyright 2007, Novell, Inc.
 
8
 *
 
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.
 
12
 *
 
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.
 
17
 *
 
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.
 
22
 *
 
23
 */
 
24
 
 
25
#include <config.h>
 
26
#include <gdata-service-iface.h>
 
27
 
 
28
void 
 
29
gdata_service_set_credentials (GDataService *self, const char *username, const gchar *password)
 
30
{
 
31
        GDATA_SERVICE_GET_IFACE(self)->set_credentials(self, username, password);
 
32
        return;
 
33
}
 
34
 
 
35
GDataFeed* 
 
36
gdata_service_get_feed (GDataService *self, const char* feedURL)
 
37
{
 
38
        return GDATA_SERVICE_GET_IFACE(self)->get_feed(self, feedURL);
 
39
}
 
40
 
 
41
GDataEntry* 
 
42
gdata_service_insert_entry (GDataService *self, const gchar *feed_postURL, GDataEntry *entry)
 
43
{
 
44
        return GDATA_SERVICE_GET_IFACE(self)->insert_entry(self, g_strdup(feed_postURL), entry);
 
45
}
 
46
 
 
47
GDataEntry* 
 
48
gdata_service_get_entry (GDataService *self, const gchar *entry_getURL)
 
49
{
 
50
        return  GDATA_SERVICE_GET_IFACE(self)->get_entry(self, entry_getURL);
 
51
}
 
52
 
 
53
GDataEntry* 
 
54
gdata_service_update_entry (GDataService *self, GDataEntry *entry)
 
55
{
 
56
        GDATA_SERVICE_GET_IFACE(self)->update_entry(self, entry);
 
57
        return NULL;
 
58
}
 
59
 
 
60
GDataEntry* 
 
61
gdata_service_update_entry_with_link (GDataService *self, GDataEntry *entry, gchar *link)
 
62
{
 
63
        GDATA_SERVICE_GET_IFACE(self)->update_entry_with_link(self, entry, link);
 
64
        return NULL;
 
65
}
 
66
 
 
67
void 
 
68
gdata_service_delete_entry (GDataService *self, GDataEntry *entry)
 
69
{
 
70
        GDATA_SERVICE_GET_IFACE(self)->delete_entry (self, entry);
 
71
        return;
 
72
}
 
73
 
 
74
static void 
 
75
gdata_service_base_init (gpointer g_class)
 
76
{
 
77
        static gboolean initialized = FALSE;
 
78
 
 
79
        if (!initialized) {
 
80
                /* create interface signals here. */
 
81
                initialized = TRUE;
 
82
        }
 
83
}
 
84
 
 
85
GType 
 
86
gdata_service_get_type (void)
 
87
{
 
88
        static GType type = 0;
 
89
 
 
90
        if (G_UNLIKELY(type == 0)) 
 
91
        {
 
92
                static const GTypeInfo info = 
 
93
                {
 
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 */
 
100
                        0,
 
101
                        0,      /* n_preallocs */
 
102
                        NULL    /* instance_init */
 
103
                };
 
104
                type = g_type_register_static (G_TYPE_INTERFACE, 
 
105
                                "GDataService", &info, 0);
 
106
                g_type_interface_add_prerequisite (type, G_TYPE_OBJECT ); 
 
107
        }
 
108
 
 
109
        return type;
 
110