~ubuntu-branches/ubuntu/saucy/evolution-data-server/saucy

« back to all changes in this revision

Viewing changes to calendar/libedata-cal/e-cal-backend.c

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-10-08 12:58:16 UTC
  • mfrom: (181.1.7 quantal)
  • Revision ID: package-import@ubuntu.com-20121008125816-i3n76e8c0m64e7xp
Tags: 3.6.0-0ubuntu2
* Fix LP: #1038047 part 1 - Don't abort in e_source_registry_new* when a
  problem occurs connecting to the Dbus service
  - add debian/patches/dont-abort-in-e_source_registry_new.patch
  - update debian/patches/series
* Fix LP: #1038047 part 2 - libedataserver depends on
  evolution-data-server-common to ensure that the GSettings schemas are
  present
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
        G_OBJECT_CLASS (e_cal_backend_parent_class)->constructed (object);
274
274
}
275
275
 
 
276
static gboolean
 
277
cal_backend_authenticate_sync (EBackend *backend,
 
278
                               ESourceAuthenticator *auth,
 
279
                               GCancellable *cancellable,
 
280
                               GError **error)
 
281
{
 
282
        ECalBackend *cal_backend;
 
283
        ESourceRegistry *registry;
 
284
        ESource *source;
 
285
 
 
286
        cal_backend = E_CAL_BACKEND (backend);
 
287
        registry = e_cal_backend_get_registry (cal_backend);
 
288
        source = e_backend_get_source (backend);
 
289
 
 
290
        return e_source_registry_authenticate_sync (
 
291
                registry, source, auth, cancellable, error);
 
292
}
 
293
 
276
294
static void
277
295
e_cal_backend_class_init (ECalBackendClass *class)
278
296
{
279
297
        GObjectClass *object_class;
 
298
        EBackendClass *backend_class;
280
299
 
281
300
        g_type_class_add_private (class, sizeof (ECalBackendPrivate));
282
301
 
287
306
        object_class->finalize = cal_backend_finalize;
288
307
        object_class->constructed = cal_backend_constructed;
289
308
 
 
309
        backend_class = E_BACKEND_CLASS (class);
 
310
        backend_class->authenticate_sync = cal_backend_authenticate_sync;
 
311
 
290
312
        class->get_backend_property = cal_backend_get_backend_property;
291
313
        class->set_backend_property = cal_backend_set_backend_property;
292
314
 
1055
1077
 *
1056
1078
 * Calls the create_object method on the given backend.
1057
1079
 * This might be finished with e_data_cal_respond_create_objects().
 
1080
 *
 
1081
 * Since: 3.6
1058
1082
 **/
1059
1083
void
1060
1084
e_cal_backend_create_objects (ECalBackend *backend,
1088
1112
 *
1089
1113
 * Calls the modify_objects method on the given backend.
1090
1114
 * This might be finished with e_data_cal_respond_modify_objects().
 
1115
 *
 
1116
 * Since: 3.6
1091
1117
 **/
1092
1118
void
1093
1119
e_cal_backend_modify_objects (ECalBackend *backend,
1123
1149
 * Removes objects in a calendar backend.  The backend will notify all of its
1124
1150
 * clients about the change.
1125
1151
 * This might be finished with e_data_cal_respond_remove_objects().
 
1152
 *
 
1153
 * Since: 3.6
1126
1154
 **/
1127
1155
void
1128
1156
e_cal_backend_remove_objects (ECalBackend *backend,
2056
2084
 
2057
2085
                e_cal_backend_cache_remove_component (cache, id->uid, id->rid);
2058
2086
 
2059
 
                e_cal_backend_notify_component_removed  (backend, id, comp, NULL);
 
2087
                e_cal_backend_notify_component_removed (backend, id, comp, NULL);
2060
2088
 
2061
2089
                e_cal_component_free_id (id);
2062
2090
                g_object_unref (comp);