~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.h

  • 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
#ifndef _GDATA_SERVICE_H_
 
26
#define _GDATA_SERVICE_H_
 
27
 
 
28
#include <glib.h>
 
29
#include <glib-object.h>
 
30
 
 
31
#include "gdata-feed.h"
 
32
#include "gdata-entry.h"
 
33
 
 
34
G_BEGIN_DECLS
 
35
 
 
36
#define GDATA_TYPE_SERVICE           (gdata_service_get_type())
 
37
#define GDATA_SERVICE(obj)           (G_TYPE_CHECK_INSTANCE_CAST((obj), GDATA_TYPE_SERVICE, GDataService))
 
38
#define GDATA_SERVICE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), GDATA_TYPE_SERVICE, GDataServiceClass))
 
39
#define GDATA_IS_SERVICE(obj)        (G_TYPE_CHECK_INSTANCE_TYPE((obj), GDATA_TYPE_SERVICE))
 
40
#define GDATA_IS_SERVICE_CLASS(klass)(G_TYPE_CHECK_CLASS_TYPE((klass), GDATA_TYPE_SERVICE))
 
41
#define GDATA_SERVICE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), GDATA_TYPE_SERVICE, GDataServiceIface))
 
42
 
 
43
typedef struct _GDataService GDataService;
 
44
typedef struct _GDataServiceIface GDataServiceIface;
 
45
 
 
46
struct _GDataServiceIface {
 
47
 
 
48
  GTypeInterface parent;
 
49
 
 
50
  /* Public Methods */
 
51
  void         (*set_credentials)(GDataService *self, const gchar *username, const gchar *password);
 
52
  GDataFeed *  (*get_feed)    (GDataService *self, const gchar *feed_getURL);
 
53
  GDataEntry*  (*insert_entry)(GDataService *self, const gchar *feed_postURL, GDataEntry *entry);
 
54
  GDataEntry*  (*get_entry)   (GDataService *self, const gchar *entry_getURL);
 
55
  GDataEntry*  (*update_entry)(GDataService *self, GDataEntry *entry);
 
56
  GDataEntry*  (*update_entry_with_link)(GDataService *self, GDataEntry *entry, gchar *link);
 
57
  void         (*delete_entry)(GDataService *self, GDataEntry *entry);
 
58
};
 
59
 
 
60
GType gdata_service_get_type(void);
 
61
 
 
62
/* Function Prototypes */
 
63
void        gdata_service_set_credentials(GDataService *self, const gchar *username, const gchar *password);
 
64
 
 
65
GDataFeed*  gdata_service_get_feed(GDataService *self, const gchar *feed_getURL);
 
66
 
 
67
GDataEntry* gdata_service_insert_entry(GDataService *self, const gchar *feed_postURL, GDataEntry *entry);
 
68
 
 
69
GDataEntry* gdata_service_get_entry(GDataService *self, const gchar *entry_getURL);
 
70
 
 
71
GDataEntry* gdata_service_update_entry(GDataService *self, GDataEntry *entry);
 
72
 
 
73
GDataEntry* gdata_service_update_entry_with_link(GDataService *self, GDataEntry *entry, gchar *link);
 
74
 
 
75
void        gdata_service_delete_entry(GDataService *self, GDataEntry *entry);
 
76
 
 
77
G_END_DECLS
 
78
 
 
79
#endif