1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
4
* Ebby Wiselyn <ebbywiselyn@gmail.com>
6
* Copyright 2007, Novell, Inc.
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of version 2 of the GNU Lesser General Public
10
* License as published by the Free Software Foundation.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU Lesser General Public License for more details.
17
* * You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the
19
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
* Boston, MA 02110-1301, USA.
24
#ifndef E_CAL_BACKEND_GOOGLE_H
25
#define E_CAL_BACKEND_GOOGLE_H
27
#include <libedata-cal/e-cal-backend-sync.h>
28
#include <libedata-cal/e-cal-backend-cache.h>
30
#include <servers/google/libgdata/gdata-entry.h>
31
#include <servers/google/libgdata/gdata-feed.h>
32
#include <servers/google/libgdata-google/gdata-google-service.h>
33
#include <servers/google/libgdata/gdata-service-iface.h>
37
#define E_TYPE_CAL_BACKEND_GOOGLE (e_cal_backend_google_get_type ())
38
#define E_CAL_BACKEND_GOOGLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_CAL_BACKEND_GOOGLE, ECalBackendGoogle))
39
#define E_CAL_BACKEND_GOOGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_CAL_BACKEND_GOOGLE, ECalBackendGoogleClass))
40
#define E_IS_CAL_BACKEND_GOOGLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_CAL_BACKEND_GOOGLE))
41
#define E_IS_CAL_BACKEND_GOOGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), E_TYPE_CAL_BACKEND_GOOGLE))
43
typedef struct _ECalBackendGoogle ECalBackendGoogle;
44
typedef struct _ECalBackendGoogleClass ECalBackendGoogleClass;
46
typedef struct _ECalBackendGooglePrivate ECalBackendGooglePrivate;
48
struct _ECalBackendGoogle {
49
ECalBackendSync Backend;
52
ECalBackendGooglePrivate *priv;
55
struct _ECalBackendGoogleClass {
56
ECalBackendSyncClass parent_class;
63
typedef struct _EGoItem EGoItem;
65
GType e_cal_backend_google_get_type (void);
66
EGoItem * e_cal_backend_google_get_item (ECalBackendGoogle *cbgo);
67
GDataEntry * e_cal_backend_google_get_entry (ECalBackendGoogle *cbgo);
68
ECalBackendCache * e_cal_backend_google_get_cache (ECalBackendGoogle *cbgo);
69
GDataGoogleService * e_cal_backend_google_get_service (ECalBackendGoogle *cbgo);
70
gchar * e_cal_backend_google_get_uri (ECalBackendGoogle *cbgo);
71
icaltimezone * e_cal_backend_google_get_default_zone (ECalBackendGoogle *cbgo);
72
gboolean e_cal_backend_google_get_mode_changed (ECalBackendGoogle *cbgo);
73
gchar * e_cal_backend_google_get_username (ECalBackendGoogle *cbgo);
74
gchar * e_cal_backend_google_get_password (ECalBackendGoogle *cbgo);
75
gint e_cal_backend_google_get_timeout_id (ECalBackendGoogle *cbgo);
77
void e_cal_backend_google_set_entry (ECalBackendGoogle *cbgo, GDataEntry *entry);
78
void e_cal_backend_google_set_cache (ECalBackendGoogle *cbgo, ECalBackendCache *cache);
79
void e_cal_backend_google_set_item (ECalBackendGoogle *cbgo, EGoItem *item);
80
void e_cal_backend_google_set_service (ECalBackendGoogle *cbgo, GDataGoogleService *service);
81
void e_cal_backend_google_set_uri (ECalBackendGoogle *cbgo, gchar *uri);
82
void e_cal_backend_google_set_item (ECalBackendGoogle *cbgo, EGoItem *item);
83
void e_cal_backend_google_set_mode_changed (ECalBackendGoogle *cbgo, gboolean mode_changed);
84
void e_cal_backend_google_set_username (ECalBackendGoogle *cbgo, gchar *username);
85
void e_cal_backend_google_set_password (ECalBackendGoogle *cbgo, gchar *password);
86
void e_cal_backend_google_set_timeout_id (ECalBackendGoogle *cbgo,gint timeout_id);