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

« back to all changes in this revision

Viewing changes to private/e-dbus-source.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:
1
1
/*
2
 
 * Generated by gdbus-codegen 2.33.2. DO NOT EDIT.
 
2
 * Generated by gdbus-codegen 2.33.11. DO NOT EDIT.
3
3
 *
4
4
 * The license of this code is the same as for the source it was derived from.
5
5
 */
239
239
GDBusInterfaceInfo *
240
240
e_dbus_source_interface_info (void)
241
241
{
242
 
  return (GDBusInterfaceInfo *) &_e_dbus_source_interface_info;
 
242
  return (GDBusInterfaceInfo *) &_e_dbus_source_interface_info.parent_struct;
243
243
}
244
244
 
245
245
/**
630
630
    g_variant_new ("(ssv)", "org.gnome.evolution.dataserver.Source", info->parent_struct.name, variant),
631
631
    G_DBUS_CALL_FLAGS_NONE,
632
632
    -1,
633
 
    NULL, (GAsyncReadyCallback) e_dbus_source_proxy_set_property_cb, (gpointer) info);
 
633
    NULL, (GAsyncReadyCallback) e_dbus_source_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct);
634
634
  g_variant_unref (variant);
635
635
}
636
636
 
647
647
  guint num_params;
648
648
  guint n;
649
649
  guint signal_id;
650
 
  info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_e_dbus_source_interface_info, signal_name);
 
650
  info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_e_dbus_source_interface_info.parent_struct, signal_name);
651
651
  if (info == NULL)
652
652
    return;
653
653
  num_params = g_variant_n_children (parameters);
689
689
  g_variant_get (changed_properties, "a{sv}", &iter);
690
690
  while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
691
691
    {
692
 
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_interface_info, key);
 
692
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_interface_info.parent_struct, key);
693
693
      g_datalist_remove_data (&proxy->priv->qdata, key);
694
694
      if (info != NULL)
695
695
        g_object_notify (G_OBJECT (proxy), info->hyphen_name);
697
697
  g_variant_iter_free (iter);
698
698
  for (n = 0; invalidated_properties[n] != NULL; n++)
699
699
    {
700
 
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_interface_info, invalidated_properties[n]);
 
700
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_interface_info.parent_struct, invalidated_properties[n]);
701
701
      g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
702
702
      if (info != NULL)
703
703
        g_object_notify (G_OBJECT (proxy), info->hyphen_name);
1053
1053
  _ExtendedGDBusPropertyInfo *info;
1054
1054
  GVariant *ret;
1055
1055
  ret = NULL;
1056
 
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_interface_info, property_name);
 
1056
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_interface_info.parent_struct, property_name);
1057
1057
  g_assert (info != NULL);
1058
1058
  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
1059
1059
  if (pspec == NULL)
1087
1087
  _ExtendedGDBusPropertyInfo *info;
1088
1088
  gboolean ret;
1089
1089
  ret = FALSE;
1090
 
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_interface_info, property_name);
 
1090
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_interface_info.parent_struct, property_name);
1091
1091
  g_assert (info != NULL);
1092
1092
  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
1093
1093
  if (pspec == NULL)
1238
1238
    }
1239
1239
  if (num_changes > 0)
1240
1240
    {
1241
 
      GList *connections, *l;
 
1241
      GList *connections, *ll;
1242
1242
      GVariant *signal_variant;
1243
1243
      signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "org.gnome.evolution.dataserver.Source",
1244
1244
                                           &builder, &invalidated_builder));
1245
1245
      connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
1246
 
      for (l = connections; l != NULL; l = l->next)
 
1246
      for (ll = connections; ll != NULL; ll = ll->next)
1247
1247
        {
1248
 
          GDBusConnection *connection = l->data;
 
1248
          GDBusConnection *connection = ll->data;
1249
1249
 
1250
1250
          g_dbus_connection_emit_signal (connection,
1251
1251
                                         NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)),
1469
1469
GDBusInterfaceInfo *
1470
1470
e_dbus_source_removable_interface_info (void)
1471
1471
{
1472
 
  return (GDBusInterfaceInfo *) &_e_dbus_source_removable_interface_info;
 
1472
  return (GDBusInterfaceInfo *) &_e_dbus_source_removable_interface_info.parent_struct;
1473
1473
}
1474
1474
 
1475
1475
/**
1707
1707
  guint num_params;
1708
1708
  guint n;
1709
1709
  guint signal_id;
1710
 
  info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_e_dbus_source_removable_interface_info, signal_name);
 
1710
  info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_e_dbus_source_removable_interface_info.parent_struct, signal_name);
1711
1711
  if (info == NULL)
1712
1712
    return;
1713
1713
  num_params = g_variant_n_children (parameters);
1749
1749
  g_variant_get (changed_properties, "a{sv}", &iter);
1750
1750
  while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
1751
1751
    {
1752
 
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_removable_interface_info, key);
 
1752
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_removable_interface_info.parent_struct, key);
1753
1753
      g_datalist_remove_data (&proxy->priv->qdata, key);
1754
1754
      if (info != NULL)
1755
1755
        g_object_notify (G_OBJECT (proxy), info->hyphen_name);
1757
1757
  g_variant_iter_free (iter);
1758
1758
  for (n = 0; invalidated_properties[n] != NULL; n++)
1759
1759
    {
1760
 
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_removable_interface_info, invalidated_properties[n]);
 
1760
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_removable_interface_info.parent_struct, invalidated_properties[n]);
1761
1761
      g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
1762
1762
      if (info != NULL)
1763
1763
        g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2079
2079
  _ExtendedGDBusPropertyInfo *info;
2080
2080
  GVariant *ret;
2081
2081
  ret = NULL;
2082
 
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_removable_interface_info, property_name);
 
2082
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_removable_interface_info.parent_struct, property_name);
2083
2083
  g_assert (info != NULL);
2084
2084
  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2085
2085
  if (pspec == NULL)
2113
2113
  _ExtendedGDBusPropertyInfo *info;
2114
2114
  gboolean ret;
2115
2115
  ret = FALSE;
2116
 
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_removable_interface_info, property_name);
 
2116
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_removable_interface_info.parent_struct, property_name);
2117
2117
  g_assert (info != NULL);
2118
2118
  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2119
2119
  if (pspec == NULL)
2321
2321
GDBusInterfaceInfo *
2322
2322
e_dbus_source_writable_interface_info (void)
2323
2323
{
2324
 
  return (GDBusInterfaceInfo *) &_e_dbus_source_writable_interface_info;
 
2324
  return (GDBusInterfaceInfo *) &_e_dbus_source_writable_interface_info.parent_struct;
2325
2325
}
2326
2326
 
2327
2327
/**
2566
2566
  guint num_params;
2567
2567
  guint n;
2568
2568
  guint signal_id;
2569
 
  info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_e_dbus_source_writable_interface_info, signal_name);
 
2569
  info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_e_dbus_source_writable_interface_info.parent_struct, signal_name);
2570
2570
  if (info == NULL)
2571
2571
    return;
2572
2572
  num_params = g_variant_n_children (parameters);
2608
2608
  g_variant_get (changed_properties, "a{sv}", &iter);
2609
2609
  while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
2610
2610
    {
2611
 
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_writable_interface_info, key);
 
2611
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_writable_interface_info.parent_struct, key);
2612
2612
      g_datalist_remove_data (&proxy->priv->qdata, key);
2613
2613
      if (info != NULL)
2614
2614
        g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2616
2616
  g_variant_iter_free (iter);
2617
2617
  for (n = 0; invalidated_properties[n] != NULL; n++)
2618
2618
    {
2619
 
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_writable_interface_info, invalidated_properties[n]);
 
2619
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_writable_interface_info.parent_struct, invalidated_properties[n]);
2620
2620
      g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
2621
2621
      if (info != NULL)
2622
2622
        g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2938
2938
  _ExtendedGDBusPropertyInfo *info;
2939
2939
  GVariant *ret;
2940
2940
  ret = NULL;
2941
 
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_writable_interface_info, property_name);
 
2941
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_writable_interface_info.parent_struct, property_name);
2942
2942
  g_assert (info != NULL);
2943
2943
  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2944
2944
  if (pspec == NULL)
2972
2972
  _ExtendedGDBusPropertyInfo *info;
2973
2973
  gboolean ret;
2974
2974
  ret = FALSE;
2975
 
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_writable_interface_info, property_name);
 
2975
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_writable_interface_info.parent_struct, property_name);
2976
2976
  g_assert (info != NULL);
2977
2977
  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2978
2978
  if (pspec == NULL)
3106
3106
}
3107
3107
 
3108
3108
/* ------------------------------------------------------------------------
 
3109
 * Code for interface org.gnome.evolution.dataserver.Source.RemoteCreatable
 
3110
 * ------------------------------------------------------------------------
 
3111
 */
 
3112
 
 
3113
/**
 
3114
 * SECTION:EDBusSourceRemoteCreatable
 
3115
 * @title: EDBusSourceRemoteCreatable
 
3116
 * @short_description: Generated C code for the org.gnome.evolution.dataserver.Source.RemoteCreatable D-Bus interface
 
3117
 *
 
3118
 * This section contains code for working with the <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteCreatable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteCreatable</link> D-Bus interface in C.
 
3119
 */
 
3120
 
 
3121
/* ---- Introspection data for org.gnome.evolution.dataserver.Source.RemoteCreatable ---- */
 
3122
 
 
3123
static const _ExtendedGDBusArgInfo _e_dbus_source_remote_creatable_method_info_create_IN_ARG_uid =
 
3124
{
 
3125
  {
 
3126
    -1,
 
3127
    (gchar *) "uid",
 
3128
    (gchar *) "s",
 
3129
    NULL
 
3130
  },
 
3131
  FALSE
 
3132
};
 
3133
 
 
3134
static const _ExtendedGDBusArgInfo _e_dbus_source_remote_creatable_method_info_create_IN_ARG_data =
 
3135
{
 
3136
  {
 
3137
    -1,
 
3138
    (gchar *) "data",
 
3139
    (gchar *) "s",
 
3140
    NULL
 
3141
  },
 
3142
  FALSE
 
3143
};
 
3144
 
 
3145
static const _ExtendedGDBusArgInfo * const _e_dbus_source_remote_creatable_method_info_create_IN_ARG_pointers[] =
 
3146
{
 
3147
  &_e_dbus_source_remote_creatable_method_info_create_IN_ARG_uid,
 
3148
  &_e_dbus_source_remote_creatable_method_info_create_IN_ARG_data,
 
3149
  NULL
 
3150
};
 
3151
 
 
3152
static const _ExtendedGDBusMethodInfo _e_dbus_source_remote_creatable_method_info_create =
 
3153
{
 
3154
  {
 
3155
    -1,
 
3156
    (gchar *) "Create",
 
3157
    (GDBusArgInfo **) &_e_dbus_source_remote_creatable_method_info_create_IN_ARG_pointers,
 
3158
    NULL,
 
3159
    NULL
 
3160
  },
 
3161
  "handle-create",
 
3162
  FALSE
 
3163
};
 
3164
 
 
3165
static const _ExtendedGDBusMethodInfo * const _e_dbus_source_remote_creatable_method_info_pointers[] =
 
3166
{
 
3167
  &_e_dbus_source_remote_creatable_method_info_create,
 
3168
  NULL
 
3169
};
 
3170
 
 
3171
static const _ExtendedGDBusInterfaceInfo _e_dbus_source_remote_creatable_interface_info =
 
3172
{
 
3173
  {
 
3174
    -1,
 
3175
    (gchar *) "org.gnome.evolution.dataserver.Source.RemoteCreatable",
 
3176
    (GDBusMethodInfo **) &_e_dbus_source_remote_creatable_method_info_pointers,
 
3177
    NULL,
 
3178
    NULL,
 
3179
    NULL
 
3180
  },
 
3181
  "source-remote-creatable",
 
3182
};
 
3183
 
 
3184
 
 
3185
/**
 
3186
 * e_dbus_source_remote_creatable_interface_info:
 
3187
 *
 
3188
 * Gets a machine-readable description of the <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteCreatable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteCreatable</link> D-Bus interface.
 
3189
 *
 
3190
 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
 
3191
 */
 
3192
GDBusInterfaceInfo *
 
3193
e_dbus_source_remote_creatable_interface_info (void)
 
3194
{
 
3195
  return (GDBusInterfaceInfo *) &_e_dbus_source_remote_creatable_interface_info.parent_struct;
 
3196
}
 
3197
 
 
3198
/**
 
3199
 * e_dbus_source_remote_creatable_override_properties:
 
3200
 * @klass: The class structure for a #GObject<!-- -->-derived class.
 
3201
 * @property_id_begin: The property id to assign to the first overridden property.
 
3202
 *
 
3203
 * Overrides all #GObject properties in the #EDBusSourceRemoteCreatable interface for a concrete class.
 
3204
 * The properties are overridden in the order they are defined.
 
3205
 *
 
3206
 * Returns: The last property id.
 
3207
 */
 
3208
guint
 
3209
e_dbus_source_remote_creatable_override_properties (GObjectClass *klass, guint property_id_begin)
 
3210
{
 
3211
  return property_id_begin - 1;
 
3212
}
 
3213
 
 
3214
 
 
3215
 
 
3216
/**
 
3217
 * EDBusSourceRemoteCreatable:
 
3218
 *
 
3219
 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteCreatable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteCreatable</link>.
 
3220
 */
 
3221
 
 
3222
/**
 
3223
 * EDBusSourceRemoteCreatableIface:
 
3224
 * @parent_iface: The parent interface.
 
3225
 * @handle_create: Handler for the #EDBusSourceRemoteCreatable::handle-create signal.
 
3226
 *
 
3227
 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteCreatable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteCreatable</link>.
 
3228
 */
 
3229
 
 
3230
static void
 
3231
e_dbus_source_remote_creatable_default_init (EDBusSourceRemoteCreatableIface *iface)
 
3232
{
 
3233
  /* GObject signals for incoming D-Bus method calls: */
 
3234
  /**
 
3235
   * EDBusSourceRemoteCreatable::handle-create:
 
3236
   * @object: A #EDBusSourceRemoteCreatable.
 
3237
   * @invocation: A #GDBusMethodInvocation.
 
3238
   * @arg_uid: Argument passed by remote caller.
 
3239
   * @arg_data: Argument passed by remote caller.
 
3240
   *
 
3241
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-evolution-dataserver-Source-RemoteCreatable.Create">Create()</link> D-Bus method.
 
3242
   *
 
3243
   * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call e_dbus_source_remote_creatable_complete_create() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
 
3244
   *
 
3245
   * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
 
3246
   */
 
3247
  g_signal_new ("handle-create",
 
3248
    G_TYPE_FROM_INTERFACE (iface),
 
3249
    G_SIGNAL_RUN_LAST,
 
3250
    G_STRUCT_OFFSET (EDBusSourceRemoteCreatableIface, handle_create),
 
3251
    g_signal_accumulator_true_handled,
 
3252
    NULL,
 
3253
    g_cclosure_marshal_generic,
 
3254
    G_TYPE_BOOLEAN,
 
3255
    3,
 
3256
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);
 
3257
 
 
3258
}
 
3259
 
 
3260
typedef EDBusSourceRemoteCreatableIface EDBusSourceRemoteCreatableInterface;
 
3261
G_DEFINE_INTERFACE (EDBusSourceRemoteCreatable, e_dbus_source_remote_creatable, G_TYPE_OBJECT);
 
3262
 
 
3263
/**
 
3264
 * e_dbus_source_remote_creatable_call_create:
 
3265
 * @proxy: A #EDBusSourceRemoteCreatableProxy.
 
3266
 * @arg_uid: Argument to pass with the method invocation.
 
3267
 * @arg_data: Argument to pass with the method invocation.
 
3268
 * @cancellable: (allow-none): A #GCancellable or %NULL.
 
3269
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
 
3270
 * @user_data: User data to pass to @callback.
 
3271
 *
 
3272
 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-evolution-dataserver-Source-RemoteCreatable.Create">Create()</link> D-Bus method on @proxy.
 
3273
 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
 
3274
 * You can then call e_dbus_source_remote_creatable_call_create_finish() to get the result of the operation.
 
3275
 *
 
3276
 * See e_dbus_source_remote_creatable_call_create_sync() for the synchronous, blocking version of this method.
 
3277
 */
 
3278
void
 
3279
e_dbus_source_remote_creatable_call_create (
 
3280
    EDBusSourceRemoteCreatable *proxy,
 
3281
    const gchar *arg_uid,
 
3282
    const gchar *arg_data,
 
3283
    GCancellable *cancellable,
 
3284
    GAsyncReadyCallback callback,
 
3285
    gpointer user_data)
 
3286
{
 
3287
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
 
3288
    "Create",
 
3289
    g_variant_new ("(ss)",
 
3290
                   arg_uid,
 
3291
                   arg_data),
 
3292
    G_DBUS_CALL_FLAGS_NONE,
 
3293
    -1,
 
3294
    cancellable,
 
3295
    callback,
 
3296
    user_data);
 
3297
}
 
3298
 
 
3299
/**
 
3300
 * e_dbus_source_remote_creatable_call_create_finish:
 
3301
 * @proxy: A #EDBusSourceRemoteCreatableProxy.
 
3302
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to e_dbus_source_remote_creatable_call_create().
 
3303
 * @error: Return location for error or %NULL.
 
3304
 *
 
3305
 * Finishes an operation started with e_dbus_source_remote_creatable_call_create().
 
3306
 *
 
3307
 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
 
3308
 */
 
3309
gboolean
 
3310
e_dbus_source_remote_creatable_call_create_finish (
 
3311
    EDBusSourceRemoteCreatable *proxy,
 
3312
    GAsyncResult *res,
 
3313
    GError **error)
 
3314
{
 
3315
  GVariant *_ret;
 
3316
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
 
3317
  if (_ret == NULL)
 
3318
    goto _out;
 
3319
  g_variant_get (_ret,
 
3320
                 "()");
 
3321
  g_variant_unref (_ret);
 
3322
_out:
 
3323
  return _ret != NULL;
 
3324
}
 
3325
 
 
3326
/**
 
3327
 * e_dbus_source_remote_creatable_call_create_sync:
 
3328
 * @proxy: A #EDBusSourceRemoteCreatableProxy.
 
3329
 * @arg_uid: Argument to pass with the method invocation.
 
3330
 * @arg_data: Argument to pass with the method invocation.
 
3331
 * @cancellable: (allow-none): A #GCancellable or %NULL.
 
3332
 * @error: Return location for error or %NULL.
 
3333
 *
 
3334
 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-evolution-dataserver-Source-RemoteCreatable.Create">Create()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 
3335
 *
 
3336
 * See e_dbus_source_remote_creatable_call_create() for the asynchronous version of this method.
 
3337
 *
 
3338
 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
 
3339
 */
 
3340
gboolean
 
3341
e_dbus_source_remote_creatable_call_create_sync (
 
3342
    EDBusSourceRemoteCreatable *proxy,
 
3343
    const gchar *arg_uid,
 
3344
    const gchar *arg_data,
 
3345
    GCancellable *cancellable,
 
3346
    GError **error)
 
3347
{
 
3348
  GVariant *_ret;
 
3349
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
 
3350
    "Create",
 
3351
    g_variant_new ("(ss)",
 
3352
                   arg_uid,
 
3353
                   arg_data),
 
3354
    G_DBUS_CALL_FLAGS_NONE,
 
3355
    -1,
 
3356
    cancellable,
 
3357
    error);
 
3358
  if (_ret == NULL)
 
3359
    goto _out;
 
3360
  g_variant_get (_ret,
 
3361
                 "()");
 
3362
  g_variant_unref (_ret);
 
3363
_out:
 
3364
  return _ret != NULL;
 
3365
}
 
3366
 
 
3367
/**
 
3368
 * e_dbus_source_remote_creatable_complete_create:
 
3369
 * @object: A #EDBusSourceRemoteCreatable.
 
3370
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 
3371
 *
 
3372
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-evolution-dataserver-Source-RemoteCreatable.Create">Create()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
 
3373
 *
 
3374
 * This method will free @invocation, you cannot use it afterwards.
 
3375
 */
 
3376
void
 
3377
e_dbus_source_remote_creatable_complete_create (
 
3378
    EDBusSourceRemoteCreatable *object,
 
3379
    GDBusMethodInvocation *invocation)
 
3380
{
 
3381
  g_dbus_method_invocation_return_value (invocation,
 
3382
    g_variant_new ("()"));
 
3383
}
 
3384
 
 
3385
/* ------------------------------------------------------------------------ */
 
3386
 
 
3387
/**
 
3388
 * EDBusSourceRemoteCreatableProxy:
 
3389
 *
 
3390
 * The #EDBusSourceRemoteCreatableProxy structure contains only private data and should only be accessed using the provided API.
 
3391
 */
 
3392
 
 
3393
/**
 
3394
 * EDBusSourceRemoteCreatableProxyClass:
 
3395
 * @parent_class: The parent class.
 
3396
 *
 
3397
 * Class structure for #EDBusSourceRemoteCreatableProxy.
 
3398
 */
 
3399
 
 
3400
struct _EDBusSourceRemoteCreatableProxyPrivate
 
3401
{
 
3402
  GData *qdata;
 
3403
};
 
3404
 
 
3405
static void e_dbus_source_remote_creatable_proxy_iface_init (EDBusSourceRemoteCreatableIface *iface);
 
3406
 
 
3407
G_DEFINE_TYPE_WITH_CODE (EDBusSourceRemoteCreatableProxy, e_dbus_source_remote_creatable_proxy, G_TYPE_DBUS_PROXY,
 
3408
                         G_IMPLEMENT_INTERFACE (E_DBUS_TYPE_SOURCE_REMOTE_CREATABLE, e_dbus_source_remote_creatable_proxy_iface_init));
 
3409
 
 
3410
static void
 
3411
e_dbus_source_remote_creatable_proxy_finalize (GObject *object)
 
3412
{
 
3413
  EDBusSourceRemoteCreatableProxy *proxy = E_DBUS_SOURCE_REMOTE_CREATABLE_PROXY (object);
 
3414
  g_datalist_clear (&proxy->priv->qdata);
 
3415
  G_OBJECT_CLASS (e_dbus_source_remote_creatable_proxy_parent_class)->finalize (object);
 
3416
}
 
3417
 
 
3418
static void
 
3419
e_dbus_source_remote_creatable_proxy_get_property (GObject      *object,
 
3420
  guint         prop_id,
 
3421
  GValue       *value,
 
3422
  GParamSpec   *pspec)
 
3423
{
 
3424
}
 
3425
 
 
3426
static void
 
3427
e_dbus_source_remote_creatable_proxy_set_property (GObject      *object,
 
3428
  guint         prop_id,
 
3429
  const GValue *value,
 
3430
  GParamSpec   *pspec)
 
3431
{
 
3432
}
 
3433
 
 
3434
static void
 
3435
e_dbus_source_remote_creatable_proxy_g_signal (GDBusProxy *proxy,
 
3436
  const gchar *sender_name,
 
3437
  const gchar *signal_name,
 
3438
  GVariant *parameters)
 
3439
{
 
3440
  _ExtendedGDBusSignalInfo *info;
 
3441
  GVariantIter iter;
 
3442
  GVariant *child;
 
3443
  GValue *paramv;
 
3444
  guint num_params;
 
3445
  guint n;
 
3446
  guint signal_id;
 
3447
  info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_e_dbus_source_remote_creatable_interface_info.parent_struct, signal_name);
 
3448
  if (info == NULL)
 
3449
    return;
 
3450
  num_params = g_variant_n_children (parameters);
 
3451
  paramv = g_new0 (GValue, num_params + 1);
 
3452
  g_value_init (&paramv[0], E_DBUS_TYPE_SOURCE_REMOTE_CREATABLE);
 
3453
  g_value_set_object (&paramv[0], proxy);
 
3454
  g_variant_iter_init (&iter, parameters);
 
3455
  n = 1;
 
3456
  while ((child = g_variant_iter_next_value (&iter)) != NULL)
 
3457
    {
 
3458
      _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
 
3459
      if (arg_info->use_gvariant)
 
3460
        {
 
3461
          g_value_init (&paramv[n], G_TYPE_VARIANT);
 
3462
          g_value_set_variant (&paramv[n], child);
 
3463
          n++;
 
3464
        }
 
3465
      else
 
3466
        g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
 
3467
      g_variant_unref (child);
 
3468
    }
 
3469
  signal_id = g_signal_lookup (info->signal_name, E_DBUS_TYPE_SOURCE_REMOTE_CREATABLE);
 
3470
  g_signal_emitv (paramv, signal_id, 0, NULL);
 
3471
  for (n = 0; n < num_params + 1; n++)
 
3472
    g_value_unset (&paramv[n]);
 
3473
  g_free (paramv);
 
3474
}
 
3475
 
 
3476
static void
 
3477
e_dbus_source_remote_creatable_proxy_g_properties_changed (GDBusProxy *_proxy,
 
3478
  GVariant *changed_properties,
 
3479
  const gchar *const *invalidated_properties)
 
3480
{
 
3481
  EDBusSourceRemoteCreatableProxy *proxy = E_DBUS_SOURCE_REMOTE_CREATABLE_PROXY (_proxy);
 
3482
  guint n;
 
3483
  const gchar *key;
 
3484
  GVariantIter *iter;
 
3485
  _ExtendedGDBusPropertyInfo *info;
 
3486
  g_variant_get (changed_properties, "a{sv}", &iter);
 
3487
  while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
 
3488
    {
 
3489
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_remote_creatable_interface_info.parent_struct, key);
 
3490
      g_datalist_remove_data (&proxy->priv->qdata, key);
 
3491
      if (info != NULL)
 
3492
        g_object_notify (G_OBJECT (proxy), info->hyphen_name);
 
3493
    }
 
3494
  g_variant_iter_free (iter);
 
3495
  for (n = 0; invalidated_properties[n] != NULL; n++)
 
3496
    {
 
3497
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_remote_creatable_interface_info.parent_struct, invalidated_properties[n]);
 
3498
      g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
 
3499
      if (info != NULL)
 
3500
        g_object_notify (G_OBJECT (proxy), info->hyphen_name);
 
3501
    }
 
3502
}
 
3503
 
 
3504
static void
 
3505
e_dbus_source_remote_creatable_proxy_init (EDBusSourceRemoteCreatableProxy *proxy)
 
3506
{
 
3507
  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, E_DBUS_TYPE_SOURCE_REMOTE_CREATABLE_PROXY, EDBusSourceRemoteCreatableProxyPrivate);
 
3508
  g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), e_dbus_source_remote_creatable_interface_info ());
 
3509
}
 
3510
 
 
3511
static void
 
3512
e_dbus_source_remote_creatable_proxy_class_init (EDBusSourceRemoteCreatableProxyClass *klass)
 
3513
{
 
3514
  GObjectClass *gobject_class;
 
3515
  GDBusProxyClass *proxy_class;
 
3516
 
 
3517
  g_type_class_add_private (klass, sizeof (EDBusSourceRemoteCreatableProxyPrivate));
 
3518
 
 
3519
  gobject_class = G_OBJECT_CLASS (klass);
 
3520
  gobject_class->finalize     = e_dbus_source_remote_creatable_proxy_finalize;
 
3521
  gobject_class->get_property = e_dbus_source_remote_creatable_proxy_get_property;
 
3522
  gobject_class->set_property = e_dbus_source_remote_creatable_proxy_set_property;
 
3523
 
 
3524
  proxy_class = G_DBUS_PROXY_CLASS (klass);
 
3525
  proxy_class->g_signal = e_dbus_source_remote_creatable_proxy_g_signal;
 
3526
  proxy_class->g_properties_changed = e_dbus_source_remote_creatable_proxy_g_properties_changed;
 
3527
 
 
3528
}
 
3529
 
 
3530
static void
 
3531
e_dbus_source_remote_creatable_proxy_iface_init (EDBusSourceRemoteCreatableIface *iface)
 
3532
{
 
3533
}
 
3534
 
 
3535
/**
 
3536
 * e_dbus_source_remote_creatable_proxy_new:
 
3537
 * @connection: A #GDBusConnection.
 
3538
 * @flags: Flags from the #GDBusProxyFlags enumeration.
 
3539
 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
 
3540
 * @object_path: An object path.
 
3541
 * @cancellable: (allow-none): A #GCancellable or %NULL.
 
3542
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
 
3543
 * @user_data: User data to pass to @callback.
 
3544
 *
 
3545
 * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteCreatable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteCreatable</link>. See g_dbus_proxy_new() for more details.
 
3546
 *
 
3547
 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
 
3548
 * You can then call e_dbus_source_remote_creatable_proxy_new_finish() to get the result of the operation.
 
3549
 *
 
3550
 * See e_dbus_source_remote_creatable_proxy_new_sync() for the synchronous, blocking version of this constructor.
 
3551
 */
 
3552
void
 
3553
e_dbus_source_remote_creatable_proxy_new (
 
3554
    GDBusConnection     *connection,
 
3555
    GDBusProxyFlags      flags,
 
3556
    const gchar         *name,
 
3557
    const gchar         *object_path,
 
3558
    GCancellable        *cancellable,
 
3559
    GAsyncReadyCallback  callback,
 
3560
    gpointer             user_data)
 
3561
{
 
3562
  g_async_initable_new_async (E_DBUS_TYPE_SOURCE_REMOTE_CREATABLE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.gnome.evolution.dataserver.Source.RemoteCreatable", NULL);
 
3563
}
 
3564
 
 
3565
/**
 
3566
 * e_dbus_source_remote_creatable_proxy_new_finish:
 
3567
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to e_dbus_source_remote_creatable_proxy_new().
 
3568
 * @error: Return location for error or %NULL
 
3569
 *
 
3570
 * Finishes an operation started with e_dbus_source_remote_creatable_proxy_new().
 
3571
 *
 
3572
 * Returns: (transfer full) (type EDBusSourceRemoteCreatableProxy): The constructed proxy object or %NULL if @error is set.
 
3573
 */
 
3574
EDBusSourceRemoteCreatable *
 
3575
e_dbus_source_remote_creatable_proxy_new_finish (
 
3576
    GAsyncResult        *res,
 
3577
    GError             **error)
 
3578
{
 
3579
  GObject *ret;
 
3580
  GObject *source_object;
 
3581
  source_object = g_async_result_get_source_object (res);
 
3582
  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
 
3583
  g_object_unref (source_object);
 
3584
  if (ret != NULL)
 
3585
    return E_DBUS_SOURCE_REMOTE_CREATABLE (ret);
 
3586
  else
 
3587
    return NULL;
 
3588
}
 
3589
 
 
3590
/**
 
3591
 * e_dbus_source_remote_creatable_proxy_new_sync:
 
3592
 * @connection: A #GDBusConnection.
 
3593
 * @flags: Flags from the #GDBusProxyFlags enumeration.
 
3594
 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
 
3595
 * @object_path: An object path.
 
3596
 * @cancellable: (allow-none): A #GCancellable or %NULL.
 
3597
 * @error: Return location for error or %NULL
 
3598
 *
 
3599
 * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteCreatable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteCreatable</link>. See g_dbus_proxy_new_sync() for more details.
 
3600
 *
 
3601
 * The calling thread is blocked until a reply is received.
 
3602
 *
 
3603
 * See e_dbus_source_remote_creatable_proxy_new() for the asynchronous version of this constructor.
 
3604
 *
 
3605
 * Returns: (transfer full) (type EDBusSourceRemoteCreatableProxy): The constructed proxy object or %NULL if @error is set.
 
3606
 */
 
3607
EDBusSourceRemoteCreatable *
 
3608
e_dbus_source_remote_creatable_proxy_new_sync (
 
3609
    GDBusConnection     *connection,
 
3610
    GDBusProxyFlags      flags,
 
3611
    const gchar         *name,
 
3612
    const gchar         *object_path,
 
3613
    GCancellable        *cancellable,
 
3614
    GError             **error)
 
3615
{
 
3616
  GInitable *ret;
 
3617
  ret = g_initable_new (E_DBUS_TYPE_SOURCE_REMOTE_CREATABLE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.gnome.evolution.dataserver.Source.RemoteCreatable", NULL);
 
3618
  if (ret != NULL)
 
3619
    return E_DBUS_SOURCE_REMOTE_CREATABLE (ret);
 
3620
  else
 
3621
    return NULL;
 
3622
}
 
3623
 
 
3624
 
 
3625
/**
 
3626
 * e_dbus_source_remote_creatable_proxy_new_for_bus:
 
3627
 * @bus_type: A #GBusType.
 
3628
 * @flags: Flags from the #GDBusProxyFlags enumeration.
 
3629
 * @name: A bus name (well-known or unique).
 
3630
 * @object_path: An object path.
 
3631
 * @cancellable: (allow-none): A #GCancellable or %NULL.
 
3632
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
 
3633
 * @user_data: User data to pass to @callback.
 
3634
 *
 
3635
 * Like e_dbus_source_remote_creatable_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
 
3636
 *
 
3637
 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
 
3638
 * You can then call e_dbus_source_remote_creatable_proxy_new_for_bus_finish() to get the result of the operation.
 
3639
 *
 
3640
 * See e_dbus_source_remote_creatable_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
 
3641
 */
 
3642
void
 
3643
e_dbus_source_remote_creatable_proxy_new_for_bus (
 
3644
    GBusType             bus_type,
 
3645
    GDBusProxyFlags      flags,
 
3646
    const gchar         *name,
 
3647
    const gchar         *object_path,
 
3648
    GCancellable        *cancellable,
 
3649
    GAsyncReadyCallback  callback,
 
3650
    gpointer             user_data)
 
3651
{
 
3652
  g_async_initable_new_async (E_DBUS_TYPE_SOURCE_REMOTE_CREATABLE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.gnome.evolution.dataserver.Source.RemoteCreatable", NULL);
 
3653
}
 
3654
 
 
3655
/**
 
3656
 * e_dbus_source_remote_creatable_proxy_new_for_bus_finish:
 
3657
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to e_dbus_source_remote_creatable_proxy_new_for_bus().
 
3658
 * @error: Return location for error or %NULL
 
3659
 *
 
3660
 * Finishes an operation started with e_dbus_source_remote_creatable_proxy_new_for_bus().
 
3661
 *
 
3662
 * Returns: (transfer full) (type EDBusSourceRemoteCreatableProxy): The constructed proxy object or %NULL if @error is set.
 
3663
 */
 
3664
EDBusSourceRemoteCreatable *
 
3665
e_dbus_source_remote_creatable_proxy_new_for_bus_finish (
 
3666
    GAsyncResult        *res,
 
3667
    GError             **error)
 
3668
{
 
3669
  GObject *ret;
 
3670
  GObject *source_object;
 
3671
  source_object = g_async_result_get_source_object (res);
 
3672
  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
 
3673
  g_object_unref (source_object);
 
3674
  if (ret != NULL)
 
3675
    return E_DBUS_SOURCE_REMOTE_CREATABLE (ret);
 
3676
  else
 
3677
    return NULL;
 
3678
}
 
3679
 
 
3680
/**
 
3681
 * e_dbus_source_remote_creatable_proxy_new_for_bus_sync:
 
3682
 * @bus_type: A #GBusType.
 
3683
 * @flags: Flags from the #GDBusProxyFlags enumeration.
 
3684
 * @name: A bus name (well-known or unique).
 
3685
 * @object_path: An object path.
 
3686
 * @cancellable: (allow-none): A #GCancellable or %NULL.
 
3687
 * @error: Return location for error or %NULL
 
3688
 *
 
3689
 * Like e_dbus_source_remote_creatable_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
 
3690
 *
 
3691
 * The calling thread is blocked until a reply is received.
 
3692
 *
 
3693
 * See e_dbus_source_remote_creatable_proxy_new_for_bus() for the asynchronous version of this constructor.
 
3694
 *
 
3695
 * Returns: (transfer full) (type EDBusSourceRemoteCreatableProxy): The constructed proxy object or %NULL if @error is set.
 
3696
 */
 
3697
EDBusSourceRemoteCreatable *
 
3698
e_dbus_source_remote_creatable_proxy_new_for_bus_sync (
 
3699
    GBusType             bus_type,
 
3700
    GDBusProxyFlags      flags,
 
3701
    const gchar         *name,
 
3702
    const gchar         *object_path,
 
3703
    GCancellable        *cancellable,
 
3704
    GError             **error)
 
3705
{
 
3706
  GInitable *ret;
 
3707
  ret = g_initable_new (E_DBUS_TYPE_SOURCE_REMOTE_CREATABLE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.gnome.evolution.dataserver.Source.RemoteCreatable", NULL);
 
3708
  if (ret != NULL)
 
3709
    return E_DBUS_SOURCE_REMOTE_CREATABLE (ret);
 
3710
  else
 
3711
    return NULL;
 
3712
}
 
3713
 
 
3714
 
 
3715
/* ------------------------------------------------------------------------ */
 
3716
 
 
3717
/**
 
3718
 * EDBusSourceRemoteCreatableSkeleton:
 
3719
 *
 
3720
 * The #EDBusSourceRemoteCreatableSkeleton structure contains only private data and should only be accessed using the provided API.
 
3721
 */
 
3722
 
 
3723
/**
 
3724
 * EDBusSourceRemoteCreatableSkeletonClass:
 
3725
 * @parent_class: The parent class.
 
3726
 *
 
3727
 * Class structure for #EDBusSourceRemoteCreatableSkeleton.
 
3728
 */
 
3729
 
 
3730
struct _EDBusSourceRemoteCreatableSkeletonPrivate
 
3731
{
 
3732
  GValue *properties;
 
3733
  GList *changed_properties;
 
3734
  GSource *changed_properties_idle_source;
 
3735
  GMainContext *context;
 
3736
  GMutex lock;
 
3737
};
 
3738
 
 
3739
static void
 
3740
_e_dbus_source_remote_creatable_skeleton_handle_method_call (
 
3741
  GDBusConnection *connection,
 
3742
  const gchar *sender,
 
3743
  const gchar *object_path,
 
3744
  const gchar *interface_name,
 
3745
  const gchar *method_name,
 
3746
  GVariant *parameters,
 
3747
  GDBusMethodInvocation *invocation,
 
3748
  gpointer user_data)
 
3749
{
 
3750
  EDBusSourceRemoteCreatableSkeleton *skeleton = E_DBUS_SOURCE_REMOTE_CREATABLE_SKELETON (user_data);
 
3751
  _ExtendedGDBusMethodInfo *info;
 
3752
  GVariantIter iter;
 
3753
  GVariant *child;
 
3754
  GValue *paramv;
 
3755
  guint num_params;
 
3756
  guint num_extra;
 
3757
  guint n;
 
3758
  guint signal_id;
 
3759
  GValue return_value = G_VALUE_INIT;
 
3760
  info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
 
3761
  g_assert (info != NULL);
 
3762
  num_params = g_variant_n_children (parameters);
 
3763
  num_extra = info->pass_fdlist ? 3 : 2;  paramv = g_new0 (GValue, num_params + num_extra);
 
3764
  n = 0;
 
3765
  g_value_init (&paramv[n], E_DBUS_TYPE_SOURCE_REMOTE_CREATABLE);
 
3766
  g_value_set_object (&paramv[n++], skeleton);
 
3767
  g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
 
3768
  g_value_set_object (&paramv[n++], invocation);
 
3769
  if (info->pass_fdlist)
 
3770
    {
 
3771
#ifdef G_OS_UNIX
 
3772
      g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
 
3773
      g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
 
3774
#else
 
3775
      g_assert_not_reached ();
 
3776
#endif
 
3777
    }
 
3778
  g_variant_iter_init (&iter, parameters);
 
3779
  while ((child = g_variant_iter_next_value (&iter)) != NULL)
 
3780
    {
 
3781
      _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
 
3782
      if (arg_info->use_gvariant)
 
3783
        {
 
3784
          g_value_init (&paramv[n], G_TYPE_VARIANT);
 
3785
          g_value_set_variant (&paramv[n], child);
 
3786
          n++;
 
3787
        }
 
3788
      else
 
3789
        g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
 
3790
      g_variant_unref (child);
 
3791
    }
 
3792
  signal_id = g_signal_lookup (info->signal_name, E_DBUS_TYPE_SOURCE_REMOTE_CREATABLE);
 
3793
  g_value_init (&return_value, G_TYPE_BOOLEAN);
 
3794
  g_signal_emitv (paramv, signal_id, 0, &return_value);
 
3795
  if (!g_value_get_boolean (&return_value))
 
3796
    g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name);
 
3797
  g_value_unset (&return_value);
 
3798
  for (n = 0; n < num_params + num_extra; n++)
 
3799
    g_value_unset (&paramv[n]);
 
3800
  g_free (paramv);
 
3801
}
 
3802
 
 
3803
static GVariant *
 
3804
_e_dbus_source_remote_creatable_skeleton_handle_get_property (
 
3805
  GDBusConnection *connection,
 
3806
  const gchar *sender,
 
3807
  const gchar *object_path,
 
3808
  const gchar *interface_name,
 
3809
  const gchar *property_name,
 
3810
  GError **error,
 
3811
  gpointer user_data)
 
3812
{
 
3813
  EDBusSourceRemoteCreatableSkeleton *skeleton = E_DBUS_SOURCE_REMOTE_CREATABLE_SKELETON (user_data);
 
3814
  GValue value = G_VALUE_INIT;
 
3815
  GParamSpec *pspec;
 
3816
  _ExtendedGDBusPropertyInfo *info;
 
3817
  GVariant *ret;
 
3818
  ret = NULL;
 
3819
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_remote_creatable_interface_info.parent_struct, property_name);
 
3820
  g_assert (info != NULL);
 
3821
  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
 
3822
  if (pspec == NULL)
 
3823
    {
 
3824
      g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
 
3825
    }
 
3826
  else
 
3827
    {
 
3828
      g_value_init (&value, pspec->value_type);
 
3829
      g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
 
3830
      ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
 
3831
      g_value_unset (&value);
 
3832
    }
 
3833
  return ret;
 
3834
}
 
3835
 
 
3836
static gboolean
 
3837
_e_dbus_source_remote_creatable_skeleton_handle_set_property (
 
3838
  GDBusConnection *connection,
 
3839
  const gchar *sender,
 
3840
  const gchar *object_path,
 
3841
  const gchar *interface_name,
 
3842
  const gchar *property_name,
 
3843
  GVariant *variant,
 
3844
  GError **error,
 
3845
  gpointer user_data)
 
3846
{
 
3847
  EDBusSourceRemoteCreatableSkeleton *skeleton = E_DBUS_SOURCE_REMOTE_CREATABLE_SKELETON (user_data);
 
3848
  GValue value = G_VALUE_INIT;
 
3849
  GParamSpec *pspec;
 
3850
  _ExtendedGDBusPropertyInfo *info;
 
3851
  gboolean ret;
 
3852
  ret = FALSE;
 
3853
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_remote_creatable_interface_info.parent_struct, property_name);
 
3854
  g_assert (info != NULL);
 
3855
  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
 
3856
  if (pspec == NULL)
 
3857
    {
 
3858
      g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
 
3859
    }
 
3860
  else
 
3861
    {
 
3862
      if (info->use_gvariant)
 
3863
        g_value_set_variant (&value, variant);
 
3864
      else
 
3865
        g_dbus_gvariant_to_gvalue (variant, &value);
 
3866
      g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
 
3867
      g_value_unset (&value);
 
3868
      ret = TRUE;
 
3869
    }
 
3870
  return ret;
 
3871
}
 
3872
 
 
3873
static const GDBusInterfaceVTable _e_dbus_source_remote_creatable_skeleton_vtable =
 
3874
{
 
3875
  _e_dbus_source_remote_creatable_skeleton_handle_method_call,
 
3876
  _e_dbus_source_remote_creatable_skeleton_handle_get_property,
 
3877
  _e_dbus_source_remote_creatable_skeleton_handle_set_property
 
3878
};
 
3879
 
 
3880
static GDBusInterfaceInfo *
 
3881
e_dbus_source_remote_creatable_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton)
 
3882
{
 
3883
  return e_dbus_source_remote_creatable_interface_info ();
 
3884
}
 
3885
 
 
3886
static GDBusInterfaceVTable *
 
3887
e_dbus_source_remote_creatable_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton)
 
3888
{
 
3889
  return (GDBusInterfaceVTable *) &_e_dbus_source_remote_creatable_skeleton_vtable;
 
3890
}
 
3891
 
 
3892
static GVariant *
 
3893
e_dbus_source_remote_creatable_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
 
3894
{
 
3895
  EDBusSourceRemoteCreatableSkeleton *skeleton = E_DBUS_SOURCE_REMOTE_CREATABLE_SKELETON (_skeleton);
 
3896
 
 
3897
  GVariantBuilder builder;
 
3898
  guint n;
 
3899
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
 
3900
  if (_e_dbus_source_remote_creatable_interface_info.parent_struct.properties == NULL)
 
3901
    goto out;
 
3902
  for (n = 0; _e_dbus_source_remote_creatable_interface_info.parent_struct.properties[n] != NULL; n++)
 
3903
    {
 
3904
      GDBusPropertyInfo *info = _e_dbus_source_remote_creatable_interface_info.parent_struct.properties[n];
 
3905
      if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
 
3906
        {
 
3907
          GVariant *value;
 
3908
          value = _e_dbus_source_remote_creatable_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.gnome.evolution.dataserver.Source.RemoteCreatable", info->name, NULL, skeleton);
 
3909
          if (value != NULL)
 
3910
            {
 
3911
              g_variant_take_ref (value);
 
3912
              g_variant_builder_add (&builder, "{sv}", info->name, value);
 
3913
              g_variant_unref (value);
 
3914
            }
 
3915
        }
 
3916
    }
 
3917
out:
 
3918
  return g_variant_builder_end (&builder);
 
3919
}
 
3920
 
 
3921
static void
 
3922
e_dbus_source_remote_creatable_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
 
3923
{
 
3924
}
 
3925
 
 
3926
static void e_dbus_source_remote_creatable_skeleton_iface_init (EDBusSourceRemoteCreatableIface *iface);
 
3927
G_DEFINE_TYPE_WITH_CODE (EDBusSourceRemoteCreatableSkeleton, e_dbus_source_remote_creatable_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
 
3928
                         G_IMPLEMENT_INTERFACE (E_DBUS_TYPE_SOURCE_REMOTE_CREATABLE, e_dbus_source_remote_creatable_skeleton_iface_init));
 
3929
 
 
3930
static void
 
3931
e_dbus_source_remote_creatable_skeleton_finalize (GObject *object)
 
3932
{
 
3933
  EDBusSourceRemoteCreatableSkeleton *skeleton = E_DBUS_SOURCE_REMOTE_CREATABLE_SKELETON (object);
 
3934
  g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
 
3935
  if (skeleton->priv->changed_properties_idle_source != NULL)
 
3936
    g_source_destroy (skeleton->priv->changed_properties_idle_source);
 
3937
  g_main_context_unref (skeleton->priv->context);
 
3938
  g_mutex_clear (&skeleton->priv->lock);
 
3939
  G_OBJECT_CLASS (e_dbus_source_remote_creatable_skeleton_parent_class)->finalize (object);
 
3940
}
 
3941
 
 
3942
static void
 
3943
e_dbus_source_remote_creatable_skeleton_init (EDBusSourceRemoteCreatableSkeleton *skeleton)
 
3944
{
 
3945
  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, E_DBUS_TYPE_SOURCE_REMOTE_CREATABLE_SKELETON, EDBusSourceRemoteCreatableSkeletonPrivate);
 
3946
  g_mutex_init (&skeleton->priv->lock);
 
3947
  skeleton->priv->context = g_main_context_ref_thread_default ();
 
3948
}
 
3949
 
 
3950
static void
 
3951
e_dbus_source_remote_creatable_skeleton_class_init (EDBusSourceRemoteCreatableSkeletonClass *klass)
 
3952
{
 
3953
  GObjectClass *gobject_class;
 
3954
  GDBusInterfaceSkeletonClass *skeleton_class;
 
3955
 
 
3956
  g_type_class_add_private (klass, sizeof (EDBusSourceRemoteCreatableSkeletonPrivate));
 
3957
 
 
3958
  gobject_class = G_OBJECT_CLASS (klass);
 
3959
  gobject_class->finalize = e_dbus_source_remote_creatable_skeleton_finalize;
 
3960
 
 
3961
  skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
 
3962
  skeleton_class->get_info = e_dbus_source_remote_creatable_skeleton_dbus_interface_get_info;
 
3963
  skeleton_class->get_properties = e_dbus_source_remote_creatable_skeleton_dbus_interface_get_properties;
 
3964
  skeleton_class->flush = e_dbus_source_remote_creatable_skeleton_dbus_interface_flush;
 
3965
  skeleton_class->get_vtable = e_dbus_source_remote_creatable_skeleton_dbus_interface_get_vtable;
 
3966
}
 
3967
 
 
3968
static void
 
3969
e_dbus_source_remote_creatable_skeleton_iface_init (EDBusSourceRemoteCreatableIface *iface)
 
3970
{
 
3971
}
 
3972
 
 
3973
/**
 
3974
 * e_dbus_source_remote_creatable_skeleton_new:
 
3975
 *
 
3976
 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteCreatable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteCreatable</link>.
 
3977
 *
 
3978
 * Returns: (transfer full) (type EDBusSourceRemoteCreatableSkeleton): The skeleton object.
 
3979
 */
 
3980
EDBusSourceRemoteCreatable *
 
3981
e_dbus_source_remote_creatable_skeleton_new (void)
 
3982
{
 
3983
  return E_DBUS_SOURCE_REMOTE_CREATABLE (g_object_new (E_DBUS_TYPE_SOURCE_REMOTE_CREATABLE_SKELETON, NULL));
 
3984
}
 
3985
 
 
3986
/* ------------------------------------------------------------------------
 
3987
 * Code for interface org.gnome.evolution.dataserver.Source.RemoteDeletable
 
3988
 * ------------------------------------------------------------------------
 
3989
 */
 
3990
 
 
3991
/**
 
3992
 * SECTION:EDBusSourceRemoteDeletable
 
3993
 * @title: EDBusSourceRemoteDeletable
 
3994
 * @short_description: Generated C code for the org.gnome.evolution.dataserver.Source.RemoteDeletable D-Bus interface
 
3995
 *
 
3996
 * This section contains code for working with the <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteDeletable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteDeletable</link> D-Bus interface in C.
 
3997
 */
 
3998
 
 
3999
/* ---- Introspection data for org.gnome.evolution.dataserver.Source.RemoteDeletable ---- */
 
4000
 
 
4001
static const _ExtendedGDBusMethodInfo _e_dbus_source_remote_deletable_method_info_delete =
 
4002
{
 
4003
  {
 
4004
    -1,
 
4005
    (gchar *) "Delete",
 
4006
    NULL,
 
4007
    NULL,
 
4008
    NULL
 
4009
  },
 
4010
  "handle-delete",
 
4011
  FALSE
 
4012
};
 
4013
 
 
4014
static const _ExtendedGDBusMethodInfo * const _e_dbus_source_remote_deletable_method_info_pointers[] =
 
4015
{
 
4016
  &_e_dbus_source_remote_deletable_method_info_delete,
 
4017
  NULL
 
4018
};
 
4019
 
 
4020
static const _ExtendedGDBusInterfaceInfo _e_dbus_source_remote_deletable_interface_info =
 
4021
{
 
4022
  {
 
4023
    -1,
 
4024
    (gchar *) "org.gnome.evolution.dataserver.Source.RemoteDeletable",
 
4025
    (GDBusMethodInfo **) &_e_dbus_source_remote_deletable_method_info_pointers,
 
4026
    NULL,
 
4027
    NULL,
 
4028
    NULL
 
4029
  },
 
4030
  "source-remote-deletable",
 
4031
};
 
4032
 
 
4033
 
 
4034
/**
 
4035
 * e_dbus_source_remote_deletable_interface_info:
 
4036
 *
 
4037
 * Gets a machine-readable description of the <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteDeletable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteDeletable</link> D-Bus interface.
 
4038
 *
 
4039
 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
 
4040
 */
 
4041
GDBusInterfaceInfo *
 
4042
e_dbus_source_remote_deletable_interface_info (void)
 
4043
{
 
4044
  return (GDBusInterfaceInfo *) &_e_dbus_source_remote_deletable_interface_info.parent_struct;
 
4045
}
 
4046
 
 
4047
/**
 
4048
 * e_dbus_source_remote_deletable_override_properties:
 
4049
 * @klass: The class structure for a #GObject<!-- -->-derived class.
 
4050
 * @property_id_begin: The property id to assign to the first overridden property.
 
4051
 *
 
4052
 * Overrides all #GObject properties in the #EDBusSourceRemoteDeletable interface for a concrete class.
 
4053
 * The properties are overridden in the order they are defined.
 
4054
 *
 
4055
 * Returns: The last property id.
 
4056
 */
 
4057
guint
 
4058
e_dbus_source_remote_deletable_override_properties (GObjectClass *klass, guint property_id_begin)
 
4059
{
 
4060
  return property_id_begin - 1;
 
4061
}
 
4062
 
 
4063
 
 
4064
 
 
4065
/**
 
4066
 * EDBusSourceRemoteDeletable:
 
4067
 *
 
4068
 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteDeletable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteDeletable</link>.
 
4069
 */
 
4070
 
 
4071
/**
 
4072
 * EDBusSourceRemoteDeletableIface:
 
4073
 * @parent_iface: The parent interface.
 
4074
 * @handle_delete: Handler for the #EDBusSourceRemoteDeletable::handle-delete signal.
 
4075
 *
 
4076
 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteDeletable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteDeletable</link>.
 
4077
 */
 
4078
 
 
4079
static void
 
4080
e_dbus_source_remote_deletable_default_init (EDBusSourceRemoteDeletableIface *iface)
 
4081
{
 
4082
  /* GObject signals for incoming D-Bus method calls: */
 
4083
  /**
 
4084
   * EDBusSourceRemoteDeletable::handle-delete:
 
4085
   * @object: A #EDBusSourceRemoteDeletable.
 
4086
   * @invocation: A #GDBusMethodInvocation.
 
4087
   *
 
4088
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-evolution-dataserver-Source-RemoteDeletable.Delete">Delete()</link> D-Bus method.
 
4089
   *
 
4090
   * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call e_dbus_source_remote_deletable_complete_delete() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
 
4091
   *
 
4092
   * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
 
4093
   */
 
4094
  g_signal_new ("handle-delete",
 
4095
    G_TYPE_FROM_INTERFACE (iface),
 
4096
    G_SIGNAL_RUN_LAST,
 
4097
    G_STRUCT_OFFSET (EDBusSourceRemoteDeletableIface, handle_delete),
 
4098
    g_signal_accumulator_true_handled,
 
4099
    NULL,
 
4100
    g_cclosure_marshal_generic,
 
4101
    G_TYPE_BOOLEAN,
 
4102
    1,
 
4103
    G_TYPE_DBUS_METHOD_INVOCATION);
 
4104
 
 
4105
}
 
4106
 
 
4107
typedef EDBusSourceRemoteDeletableIface EDBusSourceRemoteDeletableInterface;
 
4108
G_DEFINE_INTERFACE (EDBusSourceRemoteDeletable, e_dbus_source_remote_deletable, G_TYPE_OBJECT);
 
4109
 
 
4110
/**
 
4111
 * e_dbus_source_remote_deletable_call_delete:
 
4112
 * @proxy: A #EDBusSourceRemoteDeletableProxy.
 
4113
 * @cancellable: (allow-none): A #GCancellable or %NULL.
 
4114
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
 
4115
 * @user_data: User data to pass to @callback.
 
4116
 *
 
4117
 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-evolution-dataserver-Source-RemoteDeletable.Delete">Delete()</link> D-Bus method on @proxy.
 
4118
 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
 
4119
 * You can then call e_dbus_source_remote_deletable_call_delete_finish() to get the result of the operation.
 
4120
 *
 
4121
 * See e_dbus_source_remote_deletable_call_delete_sync() for the synchronous, blocking version of this method.
 
4122
 */
 
4123
void
 
4124
e_dbus_source_remote_deletable_call_delete (
 
4125
    EDBusSourceRemoteDeletable *proxy,
 
4126
    GCancellable *cancellable,
 
4127
    GAsyncReadyCallback callback,
 
4128
    gpointer user_data)
 
4129
{
 
4130
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
 
4131
    "Delete",
 
4132
    g_variant_new ("()"),
 
4133
    G_DBUS_CALL_FLAGS_NONE,
 
4134
    -1,
 
4135
    cancellable,
 
4136
    callback,
 
4137
    user_data);
 
4138
}
 
4139
 
 
4140
/**
 
4141
 * e_dbus_source_remote_deletable_call_delete_finish:
 
4142
 * @proxy: A #EDBusSourceRemoteDeletableProxy.
 
4143
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to e_dbus_source_remote_deletable_call_delete().
 
4144
 * @error: Return location for error or %NULL.
 
4145
 *
 
4146
 * Finishes an operation started with e_dbus_source_remote_deletable_call_delete().
 
4147
 *
 
4148
 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
 
4149
 */
 
4150
gboolean
 
4151
e_dbus_source_remote_deletable_call_delete_finish (
 
4152
    EDBusSourceRemoteDeletable *proxy,
 
4153
    GAsyncResult *res,
 
4154
    GError **error)
 
4155
{
 
4156
  GVariant *_ret;
 
4157
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
 
4158
  if (_ret == NULL)
 
4159
    goto _out;
 
4160
  g_variant_get (_ret,
 
4161
                 "()");
 
4162
  g_variant_unref (_ret);
 
4163
_out:
 
4164
  return _ret != NULL;
 
4165
}
 
4166
 
 
4167
/**
 
4168
 * e_dbus_source_remote_deletable_call_delete_sync:
 
4169
 * @proxy: A #EDBusSourceRemoteDeletableProxy.
 
4170
 * @cancellable: (allow-none): A #GCancellable or %NULL.
 
4171
 * @error: Return location for error or %NULL.
 
4172
 *
 
4173
 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-evolution-dataserver-Source-RemoteDeletable.Delete">Delete()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 
4174
 *
 
4175
 * See e_dbus_source_remote_deletable_call_delete() for the asynchronous version of this method.
 
4176
 *
 
4177
 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
 
4178
 */
 
4179
gboolean
 
4180
e_dbus_source_remote_deletable_call_delete_sync (
 
4181
    EDBusSourceRemoteDeletable *proxy,
 
4182
    GCancellable *cancellable,
 
4183
    GError **error)
 
4184
{
 
4185
  GVariant *_ret;
 
4186
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
 
4187
    "Delete",
 
4188
    g_variant_new ("()"),
 
4189
    G_DBUS_CALL_FLAGS_NONE,
 
4190
    -1,
 
4191
    cancellable,
 
4192
    error);
 
4193
  if (_ret == NULL)
 
4194
    goto _out;
 
4195
  g_variant_get (_ret,
 
4196
                 "()");
 
4197
  g_variant_unref (_ret);
 
4198
_out:
 
4199
  return _ret != NULL;
 
4200
}
 
4201
 
 
4202
/**
 
4203
 * e_dbus_source_remote_deletable_complete_delete:
 
4204
 * @object: A #EDBusSourceRemoteDeletable.
 
4205
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 
4206
 *
 
4207
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-evolution-dataserver-Source-RemoteDeletable.Delete">Delete()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
 
4208
 *
 
4209
 * This method will free @invocation, you cannot use it afterwards.
 
4210
 */
 
4211
void
 
4212
e_dbus_source_remote_deletable_complete_delete (
 
4213
    EDBusSourceRemoteDeletable *object,
 
4214
    GDBusMethodInvocation *invocation)
 
4215
{
 
4216
  g_dbus_method_invocation_return_value (invocation,
 
4217
    g_variant_new ("()"));
 
4218
}
 
4219
 
 
4220
/* ------------------------------------------------------------------------ */
 
4221
 
 
4222
/**
 
4223
 * EDBusSourceRemoteDeletableProxy:
 
4224
 *
 
4225
 * The #EDBusSourceRemoteDeletableProxy structure contains only private data and should only be accessed using the provided API.
 
4226
 */
 
4227
 
 
4228
/**
 
4229
 * EDBusSourceRemoteDeletableProxyClass:
 
4230
 * @parent_class: The parent class.
 
4231
 *
 
4232
 * Class structure for #EDBusSourceRemoteDeletableProxy.
 
4233
 */
 
4234
 
 
4235
struct _EDBusSourceRemoteDeletableProxyPrivate
 
4236
{
 
4237
  GData *qdata;
 
4238
};
 
4239
 
 
4240
static void e_dbus_source_remote_deletable_proxy_iface_init (EDBusSourceRemoteDeletableIface *iface);
 
4241
 
 
4242
G_DEFINE_TYPE_WITH_CODE (EDBusSourceRemoteDeletableProxy, e_dbus_source_remote_deletable_proxy, G_TYPE_DBUS_PROXY,
 
4243
                         G_IMPLEMENT_INTERFACE (E_DBUS_TYPE_SOURCE_REMOTE_DELETABLE, e_dbus_source_remote_deletable_proxy_iface_init));
 
4244
 
 
4245
static void
 
4246
e_dbus_source_remote_deletable_proxy_finalize (GObject *object)
 
4247
{
 
4248
  EDBusSourceRemoteDeletableProxy *proxy = E_DBUS_SOURCE_REMOTE_DELETABLE_PROXY (object);
 
4249
  g_datalist_clear (&proxy->priv->qdata);
 
4250
  G_OBJECT_CLASS (e_dbus_source_remote_deletable_proxy_parent_class)->finalize (object);
 
4251
}
 
4252
 
 
4253
static void
 
4254
e_dbus_source_remote_deletable_proxy_get_property (GObject      *object,
 
4255
  guint         prop_id,
 
4256
  GValue       *value,
 
4257
  GParamSpec   *pspec)
 
4258
{
 
4259
}
 
4260
 
 
4261
static void
 
4262
e_dbus_source_remote_deletable_proxy_set_property (GObject      *object,
 
4263
  guint         prop_id,
 
4264
  const GValue *value,
 
4265
  GParamSpec   *pspec)
 
4266
{
 
4267
}
 
4268
 
 
4269
static void
 
4270
e_dbus_source_remote_deletable_proxy_g_signal (GDBusProxy *proxy,
 
4271
  const gchar *sender_name,
 
4272
  const gchar *signal_name,
 
4273
  GVariant *parameters)
 
4274
{
 
4275
  _ExtendedGDBusSignalInfo *info;
 
4276
  GVariantIter iter;
 
4277
  GVariant *child;
 
4278
  GValue *paramv;
 
4279
  guint num_params;
 
4280
  guint n;
 
4281
  guint signal_id;
 
4282
  info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_e_dbus_source_remote_deletable_interface_info.parent_struct, signal_name);
 
4283
  if (info == NULL)
 
4284
    return;
 
4285
  num_params = g_variant_n_children (parameters);
 
4286
  paramv = g_new0 (GValue, num_params + 1);
 
4287
  g_value_init (&paramv[0], E_DBUS_TYPE_SOURCE_REMOTE_DELETABLE);
 
4288
  g_value_set_object (&paramv[0], proxy);
 
4289
  g_variant_iter_init (&iter, parameters);
 
4290
  n = 1;
 
4291
  while ((child = g_variant_iter_next_value (&iter)) != NULL)
 
4292
    {
 
4293
      _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
 
4294
      if (arg_info->use_gvariant)
 
4295
        {
 
4296
          g_value_init (&paramv[n], G_TYPE_VARIANT);
 
4297
          g_value_set_variant (&paramv[n], child);
 
4298
          n++;
 
4299
        }
 
4300
      else
 
4301
        g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
 
4302
      g_variant_unref (child);
 
4303
    }
 
4304
  signal_id = g_signal_lookup (info->signal_name, E_DBUS_TYPE_SOURCE_REMOTE_DELETABLE);
 
4305
  g_signal_emitv (paramv, signal_id, 0, NULL);
 
4306
  for (n = 0; n < num_params + 1; n++)
 
4307
    g_value_unset (&paramv[n]);
 
4308
  g_free (paramv);
 
4309
}
 
4310
 
 
4311
static void
 
4312
e_dbus_source_remote_deletable_proxy_g_properties_changed (GDBusProxy *_proxy,
 
4313
  GVariant *changed_properties,
 
4314
  const gchar *const *invalidated_properties)
 
4315
{
 
4316
  EDBusSourceRemoteDeletableProxy *proxy = E_DBUS_SOURCE_REMOTE_DELETABLE_PROXY (_proxy);
 
4317
  guint n;
 
4318
  const gchar *key;
 
4319
  GVariantIter *iter;
 
4320
  _ExtendedGDBusPropertyInfo *info;
 
4321
  g_variant_get (changed_properties, "a{sv}", &iter);
 
4322
  while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
 
4323
    {
 
4324
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_remote_deletable_interface_info.parent_struct, key);
 
4325
      g_datalist_remove_data (&proxy->priv->qdata, key);
 
4326
      if (info != NULL)
 
4327
        g_object_notify (G_OBJECT (proxy), info->hyphen_name);
 
4328
    }
 
4329
  g_variant_iter_free (iter);
 
4330
  for (n = 0; invalidated_properties[n] != NULL; n++)
 
4331
    {
 
4332
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_remote_deletable_interface_info.parent_struct, invalidated_properties[n]);
 
4333
      g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
 
4334
      if (info != NULL)
 
4335
        g_object_notify (G_OBJECT (proxy), info->hyphen_name);
 
4336
    }
 
4337
}
 
4338
 
 
4339
static void
 
4340
e_dbus_source_remote_deletable_proxy_init (EDBusSourceRemoteDeletableProxy *proxy)
 
4341
{
 
4342
  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, E_DBUS_TYPE_SOURCE_REMOTE_DELETABLE_PROXY, EDBusSourceRemoteDeletableProxyPrivate);
 
4343
  g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), e_dbus_source_remote_deletable_interface_info ());
 
4344
}
 
4345
 
 
4346
static void
 
4347
e_dbus_source_remote_deletable_proxy_class_init (EDBusSourceRemoteDeletableProxyClass *klass)
 
4348
{
 
4349
  GObjectClass *gobject_class;
 
4350
  GDBusProxyClass *proxy_class;
 
4351
 
 
4352
  g_type_class_add_private (klass, sizeof (EDBusSourceRemoteDeletableProxyPrivate));
 
4353
 
 
4354
  gobject_class = G_OBJECT_CLASS (klass);
 
4355
  gobject_class->finalize     = e_dbus_source_remote_deletable_proxy_finalize;
 
4356
  gobject_class->get_property = e_dbus_source_remote_deletable_proxy_get_property;
 
4357
  gobject_class->set_property = e_dbus_source_remote_deletable_proxy_set_property;
 
4358
 
 
4359
  proxy_class = G_DBUS_PROXY_CLASS (klass);
 
4360
  proxy_class->g_signal = e_dbus_source_remote_deletable_proxy_g_signal;
 
4361
  proxy_class->g_properties_changed = e_dbus_source_remote_deletable_proxy_g_properties_changed;
 
4362
 
 
4363
}
 
4364
 
 
4365
static void
 
4366
e_dbus_source_remote_deletable_proxy_iface_init (EDBusSourceRemoteDeletableIface *iface)
 
4367
{
 
4368
}
 
4369
 
 
4370
/**
 
4371
 * e_dbus_source_remote_deletable_proxy_new:
 
4372
 * @connection: A #GDBusConnection.
 
4373
 * @flags: Flags from the #GDBusProxyFlags enumeration.
 
4374
 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
 
4375
 * @object_path: An object path.
 
4376
 * @cancellable: (allow-none): A #GCancellable or %NULL.
 
4377
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
 
4378
 * @user_data: User data to pass to @callback.
 
4379
 *
 
4380
 * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteDeletable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteDeletable</link>. See g_dbus_proxy_new() for more details.
 
4381
 *
 
4382
 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
 
4383
 * You can then call e_dbus_source_remote_deletable_proxy_new_finish() to get the result of the operation.
 
4384
 *
 
4385
 * See e_dbus_source_remote_deletable_proxy_new_sync() for the synchronous, blocking version of this constructor.
 
4386
 */
 
4387
void
 
4388
e_dbus_source_remote_deletable_proxy_new (
 
4389
    GDBusConnection     *connection,
 
4390
    GDBusProxyFlags      flags,
 
4391
    const gchar         *name,
 
4392
    const gchar         *object_path,
 
4393
    GCancellable        *cancellable,
 
4394
    GAsyncReadyCallback  callback,
 
4395
    gpointer             user_data)
 
4396
{
 
4397
  g_async_initable_new_async (E_DBUS_TYPE_SOURCE_REMOTE_DELETABLE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.gnome.evolution.dataserver.Source.RemoteDeletable", NULL);
 
4398
}
 
4399
 
 
4400
/**
 
4401
 * e_dbus_source_remote_deletable_proxy_new_finish:
 
4402
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to e_dbus_source_remote_deletable_proxy_new().
 
4403
 * @error: Return location for error or %NULL
 
4404
 *
 
4405
 * Finishes an operation started with e_dbus_source_remote_deletable_proxy_new().
 
4406
 *
 
4407
 * Returns: (transfer full) (type EDBusSourceRemoteDeletableProxy): The constructed proxy object or %NULL if @error is set.
 
4408
 */
 
4409
EDBusSourceRemoteDeletable *
 
4410
e_dbus_source_remote_deletable_proxy_new_finish (
 
4411
    GAsyncResult        *res,
 
4412
    GError             **error)
 
4413
{
 
4414
  GObject *ret;
 
4415
  GObject *source_object;
 
4416
  source_object = g_async_result_get_source_object (res);
 
4417
  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
 
4418
  g_object_unref (source_object);
 
4419
  if (ret != NULL)
 
4420
    return E_DBUS_SOURCE_REMOTE_DELETABLE (ret);
 
4421
  else
 
4422
    return NULL;
 
4423
}
 
4424
 
 
4425
/**
 
4426
 * e_dbus_source_remote_deletable_proxy_new_sync:
 
4427
 * @connection: A #GDBusConnection.
 
4428
 * @flags: Flags from the #GDBusProxyFlags enumeration.
 
4429
 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
 
4430
 * @object_path: An object path.
 
4431
 * @cancellable: (allow-none): A #GCancellable or %NULL.
 
4432
 * @error: Return location for error or %NULL
 
4433
 *
 
4434
 * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteDeletable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteDeletable</link>. See g_dbus_proxy_new_sync() for more details.
 
4435
 *
 
4436
 * The calling thread is blocked until a reply is received.
 
4437
 *
 
4438
 * See e_dbus_source_remote_deletable_proxy_new() for the asynchronous version of this constructor.
 
4439
 *
 
4440
 * Returns: (transfer full) (type EDBusSourceRemoteDeletableProxy): The constructed proxy object or %NULL if @error is set.
 
4441
 */
 
4442
EDBusSourceRemoteDeletable *
 
4443
e_dbus_source_remote_deletable_proxy_new_sync (
 
4444
    GDBusConnection     *connection,
 
4445
    GDBusProxyFlags      flags,
 
4446
    const gchar         *name,
 
4447
    const gchar         *object_path,
 
4448
    GCancellable        *cancellable,
 
4449
    GError             **error)
 
4450
{
 
4451
  GInitable *ret;
 
4452
  ret = g_initable_new (E_DBUS_TYPE_SOURCE_REMOTE_DELETABLE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.gnome.evolution.dataserver.Source.RemoteDeletable", NULL);
 
4453
  if (ret != NULL)
 
4454
    return E_DBUS_SOURCE_REMOTE_DELETABLE (ret);
 
4455
  else
 
4456
    return NULL;
 
4457
}
 
4458
 
 
4459
 
 
4460
/**
 
4461
 * e_dbus_source_remote_deletable_proxy_new_for_bus:
 
4462
 * @bus_type: A #GBusType.
 
4463
 * @flags: Flags from the #GDBusProxyFlags enumeration.
 
4464
 * @name: A bus name (well-known or unique).
 
4465
 * @object_path: An object path.
 
4466
 * @cancellable: (allow-none): A #GCancellable or %NULL.
 
4467
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
 
4468
 * @user_data: User data to pass to @callback.
 
4469
 *
 
4470
 * Like e_dbus_source_remote_deletable_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
 
4471
 *
 
4472
 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
 
4473
 * You can then call e_dbus_source_remote_deletable_proxy_new_for_bus_finish() to get the result of the operation.
 
4474
 *
 
4475
 * See e_dbus_source_remote_deletable_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
 
4476
 */
 
4477
void
 
4478
e_dbus_source_remote_deletable_proxy_new_for_bus (
 
4479
    GBusType             bus_type,
 
4480
    GDBusProxyFlags      flags,
 
4481
    const gchar         *name,
 
4482
    const gchar         *object_path,
 
4483
    GCancellable        *cancellable,
 
4484
    GAsyncReadyCallback  callback,
 
4485
    gpointer             user_data)
 
4486
{
 
4487
  g_async_initable_new_async (E_DBUS_TYPE_SOURCE_REMOTE_DELETABLE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.gnome.evolution.dataserver.Source.RemoteDeletable", NULL);
 
4488
}
 
4489
 
 
4490
/**
 
4491
 * e_dbus_source_remote_deletable_proxy_new_for_bus_finish:
 
4492
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to e_dbus_source_remote_deletable_proxy_new_for_bus().
 
4493
 * @error: Return location for error or %NULL
 
4494
 *
 
4495
 * Finishes an operation started with e_dbus_source_remote_deletable_proxy_new_for_bus().
 
4496
 *
 
4497
 * Returns: (transfer full) (type EDBusSourceRemoteDeletableProxy): The constructed proxy object or %NULL if @error is set.
 
4498
 */
 
4499
EDBusSourceRemoteDeletable *
 
4500
e_dbus_source_remote_deletable_proxy_new_for_bus_finish (
 
4501
    GAsyncResult        *res,
 
4502
    GError             **error)
 
4503
{
 
4504
  GObject *ret;
 
4505
  GObject *source_object;
 
4506
  source_object = g_async_result_get_source_object (res);
 
4507
  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
 
4508
  g_object_unref (source_object);
 
4509
  if (ret != NULL)
 
4510
    return E_DBUS_SOURCE_REMOTE_DELETABLE (ret);
 
4511
  else
 
4512
    return NULL;
 
4513
}
 
4514
 
 
4515
/**
 
4516
 * e_dbus_source_remote_deletable_proxy_new_for_bus_sync:
 
4517
 * @bus_type: A #GBusType.
 
4518
 * @flags: Flags from the #GDBusProxyFlags enumeration.
 
4519
 * @name: A bus name (well-known or unique).
 
4520
 * @object_path: An object path.
 
4521
 * @cancellable: (allow-none): A #GCancellable or %NULL.
 
4522
 * @error: Return location for error or %NULL
 
4523
 *
 
4524
 * Like e_dbus_source_remote_deletable_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
 
4525
 *
 
4526
 * The calling thread is blocked until a reply is received.
 
4527
 *
 
4528
 * See e_dbus_source_remote_deletable_proxy_new_for_bus() for the asynchronous version of this constructor.
 
4529
 *
 
4530
 * Returns: (transfer full) (type EDBusSourceRemoteDeletableProxy): The constructed proxy object or %NULL if @error is set.
 
4531
 */
 
4532
EDBusSourceRemoteDeletable *
 
4533
e_dbus_source_remote_deletable_proxy_new_for_bus_sync (
 
4534
    GBusType             bus_type,
 
4535
    GDBusProxyFlags      flags,
 
4536
    const gchar         *name,
 
4537
    const gchar         *object_path,
 
4538
    GCancellable        *cancellable,
 
4539
    GError             **error)
 
4540
{
 
4541
  GInitable *ret;
 
4542
  ret = g_initable_new (E_DBUS_TYPE_SOURCE_REMOTE_DELETABLE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.gnome.evolution.dataserver.Source.RemoteDeletable", NULL);
 
4543
  if (ret != NULL)
 
4544
    return E_DBUS_SOURCE_REMOTE_DELETABLE (ret);
 
4545
  else
 
4546
    return NULL;
 
4547
}
 
4548
 
 
4549
 
 
4550
/* ------------------------------------------------------------------------ */
 
4551
 
 
4552
/**
 
4553
 * EDBusSourceRemoteDeletableSkeleton:
 
4554
 *
 
4555
 * The #EDBusSourceRemoteDeletableSkeleton structure contains only private data and should only be accessed using the provided API.
 
4556
 */
 
4557
 
 
4558
/**
 
4559
 * EDBusSourceRemoteDeletableSkeletonClass:
 
4560
 * @parent_class: The parent class.
 
4561
 *
 
4562
 * Class structure for #EDBusSourceRemoteDeletableSkeleton.
 
4563
 */
 
4564
 
 
4565
struct _EDBusSourceRemoteDeletableSkeletonPrivate
 
4566
{
 
4567
  GValue *properties;
 
4568
  GList *changed_properties;
 
4569
  GSource *changed_properties_idle_source;
 
4570
  GMainContext *context;
 
4571
  GMutex lock;
 
4572
};
 
4573
 
 
4574
static void
 
4575
_e_dbus_source_remote_deletable_skeleton_handle_method_call (
 
4576
  GDBusConnection *connection,
 
4577
  const gchar *sender,
 
4578
  const gchar *object_path,
 
4579
  const gchar *interface_name,
 
4580
  const gchar *method_name,
 
4581
  GVariant *parameters,
 
4582
  GDBusMethodInvocation *invocation,
 
4583
  gpointer user_data)
 
4584
{
 
4585
  EDBusSourceRemoteDeletableSkeleton *skeleton = E_DBUS_SOURCE_REMOTE_DELETABLE_SKELETON (user_data);
 
4586
  _ExtendedGDBusMethodInfo *info;
 
4587
  GVariantIter iter;
 
4588
  GVariant *child;
 
4589
  GValue *paramv;
 
4590
  guint num_params;
 
4591
  guint num_extra;
 
4592
  guint n;
 
4593
  guint signal_id;
 
4594
  GValue return_value = G_VALUE_INIT;
 
4595
  info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
 
4596
  g_assert (info != NULL);
 
4597
  num_params = g_variant_n_children (parameters);
 
4598
  num_extra = info->pass_fdlist ? 3 : 2;  paramv = g_new0 (GValue, num_params + num_extra);
 
4599
  n = 0;
 
4600
  g_value_init (&paramv[n], E_DBUS_TYPE_SOURCE_REMOTE_DELETABLE);
 
4601
  g_value_set_object (&paramv[n++], skeleton);
 
4602
  g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
 
4603
  g_value_set_object (&paramv[n++], invocation);
 
4604
  if (info->pass_fdlist)
 
4605
    {
 
4606
#ifdef G_OS_UNIX
 
4607
      g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
 
4608
      g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
 
4609
#else
 
4610
      g_assert_not_reached ();
 
4611
#endif
 
4612
    }
 
4613
  g_variant_iter_init (&iter, parameters);
 
4614
  while ((child = g_variant_iter_next_value (&iter)) != NULL)
 
4615
    {
 
4616
      _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
 
4617
      if (arg_info->use_gvariant)
 
4618
        {
 
4619
          g_value_init (&paramv[n], G_TYPE_VARIANT);
 
4620
          g_value_set_variant (&paramv[n], child);
 
4621
          n++;
 
4622
        }
 
4623
      else
 
4624
        g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
 
4625
      g_variant_unref (child);
 
4626
    }
 
4627
  signal_id = g_signal_lookup (info->signal_name, E_DBUS_TYPE_SOURCE_REMOTE_DELETABLE);
 
4628
  g_value_init (&return_value, G_TYPE_BOOLEAN);
 
4629
  g_signal_emitv (paramv, signal_id, 0, &return_value);
 
4630
  if (!g_value_get_boolean (&return_value))
 
4631
    g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name);
 
4632
  g_value_unset (&return_value);
 
4633
  for (n = 0; n < num_params + num_extra; n++)
 
4634
    g_value_unset (&paramv[n]);
 
4635
  g_free (paramv);
 
4636
}
 
4637
 
 
4638
static GVariant *
 
4639
_e_dbus_source_remote_deletable_skeleton_handle_get_property (
 
4640
  GDBusConnection *connection,
 
4641
  const gchar *sender,
 
4642
  const gchar *object_path,
 
4643
  const gchar *interface_name,
 
4644
  const gchar *property_name,
 
4645
  GError **error,
 
4646
  gpointer user_data)
 
4647
{
 
4648
  EDBusSourceRemoteDeletableSkeleton *skeleton = E_DBUS_SOURCE_REMOTE_DELETABLE_SKELETON (user_data);
 
4649
  GValue value = G_VALUE_INIT;
 
4650
  GParamSpec *pspec;
 
4651
  _ExtendedGDBusPropertyInfo *info;
 
4652
  GVariant *ret;
 
4653
  ret = NULL;
 
4654
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_remote_deletable_interface_info.parent_struct, property_name);
 
4655
  g_assert (info != NULL);
 
4656
  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
 
4657
  if (pspec == NULL)
 
4658
    {
 
4659
      g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
 
4660
    }
 
4661
  else
 
4662
    {
 
4663
      g_value_init (&value, pspec->value_type);
 
4664
      g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
 
4665
      ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
 
4666
      g_value_unset (&value);
 
4667
    }
 
4668
  return ret;
 
4669
}
 
4670
 
 
4671
static gboolean
 
4672
_e_dbus_source_remote_deletable_skeleton_handle_set_property (
 
4673
  GDBusConnection *connection,
 
4674
  const gchar *sender,
 
4675
  const gchar *object_path,
 
4676
  const gchar *interface_name,
 
4677
  const gchar *property_name,
 
4678
  GVariant *variant,
 
4679
  GError **error,
 
4680
  gpointer user_data)
 
4681
{
 
4682
  EDBusSourceRemoteDeletableSkeleton *skeleton = E_DBUS_SOURCE_REMOTE_DELETABLE_SKELETON (user_data);
 
4683
  GValue value = G_VALUE_INIT;
 
4684
  GParamSpec *pspec;
 
4685
  _ExtendedGDBusPropertyInfo *info;
 
4686
  gboolean ret;
 
4687
  ret = FALSE;
 
4688
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_e_dbus_source_remote_deletable_interface_info.parent_struct, property_name);
 
4689
  g_assert (info != NULL);
 
4690
  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
 
4691
  if (pspec == NULL)
 
4692
    {
 
4693
      g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
 
4694
    }
 
4695
  else
 
4696
    {
 
4697
      if (info->use_gvariant)
 
4698
        g_value_set_variant (&value, variant);
 
4699
      else
 
4700
        g_dbus_gvariant_to_gvalue (variant, &value);
 
4701
      g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
 
4702
      g_value_unset (&value);
 
4703
      ret = TRUE;
 
4704
    }
 
4705
  return ret;
 
4706
}
 
4707
 
 
4708
static const GDBusInterfaceVTable _e_dbus_source_remote_deletable_skeleton_vtable =
 
4709
{
 
4710
  _e_dbus_source_remote_deletable_skeleton_handle_method_call,
 
4711
  _e_dbus_source_remote_deletable_skeleton_handle_get_property,
 
4712
  _e_dbus_source_remote_deletable_skeleton_handle_set_property
 
4713
};
 
4714
 
 
4715
static GDBusInterfaceInfo *
 
4716
e_dbus_source_remote_deletable_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton)
 
4717
{
 
4718
  return e_dbus_source_remote_deletable_interface_info ();
 
4719
}
 
4720
 
 
4721
static GDBusInterfaceVTable *
 
4722
e_dbus_source_remote_deletable_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton)
 
4723
{
 
4724
  return (GDBusInterfaceVTable *) &_e_dbus_source_remote_deletable_skeleton_vtable;
 
4725
}
 
4726
 
 
4727
static GVariant *
 
4728
e_dbus_source_remote_deletable_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
 
4729
{
 
4730
  EDBusSourceRemoteDeletableSkeleton *skeleton = E_DBUS_SOURCE_REMOTE_DELETABLE_SKELETON (_skeleton);
 
4731
 
 
4732
  GVariantBuilder builder;
 
4733
  guint n;
 
4734
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
 
4735
  if (_e_dbus_source_remote_deletable_interface_info.parent_struct.properties == NULL)
 
4736
    goto out;
 
4737
  for (n = 0; _e_dbus_source_remote_deletable_interface_info.parent_struct.properties[n] != NULL; n++)
 
4738
    {
 
4739
      GDBusPropertyInfo *info = _e_dbus_source_remote_deletable_interface_info.parent_struct.properties[n];
 
4740
      if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
 
4741
        {
 
4742
          GVariant *value;
 
4743
          value = _e_dbus_source_remote_deletable_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.gnome.evolution.dataserver.Source.RemoteDeletable", info->name, NULL, skeleton);
 
4744
          if (value != NULL)
 
4745
            {
 
4746
              g_variant_take_ref (value);
 
4747
              g_variant_builder_add (&builder, "{sv}", info->name, value);
 
4748
              g_variant_unref (value);
 
4749
            }
 
4750
        }
 
4751
    }
 
4752
out:
 
4753
  return g_variant_builder_end (&builder);
 
4754
}
 
4755
 
 
4756
static void
 
4757
e_dbus_source_remote_deletable_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
 
4758
{
 
4759
}
 
4760
 
 
4761
static void e_dbus_source_remote_deletable_skeleton_iface_init (EDBusSourceRemoteDeletableIface *iface);
 
4762
G_DEFINE_TYPE_WITH_CODE (EDBusSourceRemoteDeletableSkeleton, e_dbus_source_remote_deletable_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
 
4763
                         G_IMPLEMENT_INTERFACE (E_DBUS_TYPE_SOURCE_REMOTE_DELETABLE, e_dbus_source_remote_deletable_skeleton_iface_init));
 
4764
 
 
4765
static void
 
4766
e_dbus_source_remote_deletable_skeleton_finalize (GObject *object)
 
4767
{
 
4768
  EDBusSourceRemoteDeletableSkeleton *skeleton = E_DBUS_SOURCE_REMOTE_DELETABLE_SKELETON (object);
 
4769
  g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
 
4770
  if (skeleton->priv->changed_properties_idle_source != NULL)
 
4771
    g_source_destroy (skeleton->priv->changed_properties_idle_source);
 
4772
  g_main_context_unref (skeleton->priv->context);
 
4773
  g_mutex_clear (&skeleton->priv->lock);
 
4774
  G_OBJECT_CLASS (e_dbus_source_remote_deletable_skeleton_parent_class)->finalize (object);
 
4775
}
 
4776
 
 
4777
static void
 
4778
e_dbus_source_remote_deletable_skeleton_init (EDBusSourceRemoteDeletableSkeleton *skeleton)
 
4779
{
 
4780
  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, E_DBUS_TYPE_SOURCE_REMOTE_DELETABLE_SKELETON, EDBusSourceRemoteDeletableSkeletonPrivate);
 
4781
  g_mutex_init (&skeleton->priv->lock);
 
4782
  skeleton->priv->context = g_main_context_ref_thread_default ();
 
4783
}
 
4784
 
 
4785
static void
 
4786
e_dbus_source_remote_deletable_skeleton_class_init (EDBusSourceRemoteDeletableSkeletonClass *klass)
 
4787
{
 
4788
  GObjectClass *gobject_class;
 
4789
  GDBusInterfaceSkeletonClass *skeleton_class;
 
4790
 
 
4791
  g_type_class_add_private (klass, sizeof (EDBusSourceRemoteDeletableSkeletonPrivate));
 
4792
 
 
4793
  gobject_class = G_OBJECT_CLASS (klass);
 
4794
  gobject_class->finalize = e_dbus_source_remote_deletable_skeleton_finalize;
 
4795
 
 
4796
  skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
 
4797
  skeleton_class->get_info = e_dbus_source_remote_deletable_skeleton_dbus_interface_get_info;
 
4798
  skeleton_class->get_properties = e_dbus_source_remote_deletable_skeleton_dbus_interface_get_properties;
 
4799
  skeleton_class->flush = e_dbus_source_remote_deletable_skeleton_dbus_interface_flush;
 
4800
  skeleton_class->get_vtable = e_dbus_source_remote_deletable_skeleton_dbus_interface_get_vtable;
 
4801
}
 
4802
 
 
4803
static void
 
4804
e_dbus_source_remote_deletable_skeleton_iface_init (EDBusSourceRemoteDeletableIface *iface)
 
4805
{
 
4806
}
 
4807
 
 
4808
/**
 
4809
 * e_dbus_source_remote_deletable_skeleton_new:
 
4810
 *
 
4811
 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteDeletable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteDeletable</link>.
 
4812
 *
 
4813
 * Returns: (transfer full) (type EDBusSourceRemoteDeletableSkeleton): The skeleton object.
 
4814
 */
 
4815
EDBusSourceRemoteDeletable *
 
4816
e_dbus_source_remote_deletable_skeleton_new (void)
 
4817
{
 
4818
  return E_DBUS_SOURCE_REMOTE_DELETABLE (g_object_new (E_DBUS_TYPE_SOURCE_REMOTE_DELETABLE_SKELETON, NULL));
 
4819
}
 
4820
 
 
4821
/* ------------------------------------------------------------------------
3109
4822
 * Code for Object, ObjectProxy and ObjectSkeleton
3110
4823
 * ------------------------------------------------------------------------
3111
4824
 */
3161
4874
   */
3162
4875
  g_object_interface_install_property (iface, g_param_spec_object ("source-writable", "source-writable", "source-writable", E_DBUS_TYPE_SOURCE_WRITABLE, G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS));
3163
4876
 
 
4877
  /**
 
4878
   * EDBusObject:source-remote-creatable:
 
4879
   *
 
4880
   * The #EDBusSourceRemoteCreatable instance corresponding to the D-Bus interface <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteCreatable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteCreatable</link>, if any.
 
4881
   *
 
4882
   * Connect to the #GObject::notify signal to get informed of property changes.
 
4883
   */
 
4884
  g_object_interface_install_property (iface, g_param_spec_object ("source-remote-creatable", "source-remote-creatable", "source-remote-creatable", E_DBUS_TYPE_SOURCE_REMOTE_CREATABLE, G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS));
 
4885
 
 
4886
  /**
 
4887
   * EDBusObject:source-remote-deletable:
 
4888
   *
 
4889
   * The #EDBusSourceRemoteDeletable instance corresponding to the D-Bus interface <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteDeletable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteDeletable</link>, if any.
 
4890
   *
 
4891
   * Connect to the #GObject::notify signal to get informed of property changes.
 
4892
   */
 
4893
  g_object_interface_install_property (iface, g_param_spec_object ("source-remote-deletable", "source-remote-deletable", "source-remote-deletable", E_DBUS_TYPE_SOURCE_REMOTE_DELETABLE, G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS));
 
4894
 
3164
4895
}
3165
4896
 
3166
4897
typedef EDBusObjectIface EDBusObjectInterface;
3217
4948
  return E_DBUS_SOURCE_WRITABLE (ret);
3218
4949
}
3219
4950
 
 
4951
/**
 
4952
 * e_dbus_object_get_source_remote_creatable:
 
4953
 * @object: A #EDBusObject.
 
4954
 *
 
4955
 * Gets the #EDBusSourceRemoteCreatable instance for the D-Bus interface <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteCreatable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteCreatable</link> on @object, if any.
 
4956
 *
 
4957
 * Returns: (transfer full): A #EDBusSourceRemoteCreatable that must be freed with g_object_unref() or %NULL if @object does not implement the interface.
 
4958
 */
 
4959
EDBusSourceRemoteCreatable *e_dbus_object_get_source_remote_creatable (EDBusObject *object)
 
4960
{
 
4961
  GDBusInterface *ret;
 
4962
  ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.gnome.evolution.dataserver.Source.RemoteCreatable");
 
4963
  if (ret == NULL)
 
4964
    return NULL;
 
4965
  return E_DBUS_SOURCE_REMOTE_CREATABLE (ret);
 
4966
}
 
4967
 
 
4968
/**
 
4969
 * e_dbus_object_get_source_remote_deletable:
 
4970
 * @object: A #EDBusObject.
 
4971
 *
 
4972
 * Gets the #EDBusSourceRemoteDeletable instance for the D-Bus interface <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteDeletable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteDeletable</link> on @object, if any.
 
4973
 *
 
4974
 * Returns: (transfer full): A #EDBusSourceRemoteDeletable that must be freed with g_object_unref() or %NULL if @object does not implement the interface.
 
4975
 */
 
4976
EDBusSourceRemoteDeletable *e_dbus_object_get_source_remote_deletable (EDBusObject *object)
 
4977
{
 
4978
  GDBusInterface *ret;
 
4979
  ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.gnome.evolution.dataserver.Source.RemoteDeletable");
 
4980
  if (ret == NULL)
 
4981
    return NULL;
 
4982
  return E_DBUS_SOURCE_REMOTE_DELETABLE (ret);
 
4983
}
 
4984
 
3220
4985
 
3221
4986
/**
3222
4987
 * e_dbus_object_peek_source: (skip)
3278
5043
  return E_DBUS_SOURCE_WRITABLE (ret);
3279
5044
}
3280
5045
 
 
5046
/**
 
5047
 * e_dbus_object_peek_source_remote_creatable: (skip)
 
5048
 * @object: A #EDBusObject.
 
5049
 *
 
5050
 * Like e_dbus_object_get_source_remote_creatable() but doesn't increase the reference count on the returned object.
 
5051
 *
 
5052
 * <warning>It is not safe to use the returned object if you are on another thread than the one where the #GDBusObjectManagerClient or #GDBusObjectManagerServer for @object is running.</warning>
 
5053
 *
 
5054
 * Returns: (transfer none): A #EDBusSourceRemoteCreatable or %NULL if @object does not implement the interface. Do not free the returned object, it is owned by @object.
 
5055
 */
 
5056
EDBusSourceRemoteCreatable *e_dbus_object_peek_source_remote_creatable (EDBusObject *object)
 
5057
{
 
5058
  GDBusInterface *ret;
 
5059
  ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.gnome.evolution.dataserver.Source.RemoteCreatable");
 
5060
  if (ret == NULL)
 
5061
    return NULL;
 
5062
  g_object_unref (ret);
 
5063
  return E_DBUS_SOURCE_REMOTE_CREATABLE (ret);
 
5064
}
 
5065
 
 
5066
/**
 
5067
 * e_dbus_object_peek_source_remote_deletable: (skip)
 
5068
 * @object: A #EDBusObject.
 
5069
 *
 
5070
 * Like e_dbus_object_get_source_remote_deletable() but doesn't increase the reference count on the returned object.
 
5071
 *
 
5072
 * <warning>It is not safe to use the returned object if you are on another thread than the one where the #GDBusObjectManagerClient or #GDBusObjectManagerServer for @object is running.</warning>
 
5073
 *
 
5074
 * Returns: (transfer none): A #EDBusSourceRemoteDeletable or %NULL if @object does not implement the interface. Do not free the returned object, it is owned by @object.
 
5075
 */
 
5076
EDBusSourceRemoteDeletable *e_dbus_object_peek_source_remote_deletable (EDBusObject *object)
 
5077
{
 
5078
  GDBusInterface *ret;
 
5079
  ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.gnome.evolution.dataserver.Source.RemoteDeletable");
 
5080
  if (ret == NULL)
 
5081
    return NULL;
 
5082
  g_object_unref (ret);
 
5083
  return E_DBUS_SOURCE_REMOTE_DELETABLE (ret);
 
5084
}
 
5085
 
3281
5086
 
3282
5087
static void
3283
5088
e_dbus_object_notify (GDBusObject *object, GDBusInterface *interface)
3355
5160
      g_value_take_object (value, interface);
3356
5161
      break;
3357
5162
 
 
5163
    case 4:
 
5164
      interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.gnome.evolution.dataserver.Source.RemoteCreatable");
 
5165
      g_value_take_object (value, interface);
 
5166
      break;
 
5167
 
 
5168
    case 5:
 
5169
      interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.gnome.evolution.dataserver.Source.RemoteDeletable");
 
5170
      g_value_take_object (value, interface);
 
5171
      break;
 
5172
 
3358
5173
    default:
3359
5174
      G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
3360
5175
      break;
3372
5187
  g_object_class_override_property (gobject_class, 1, "source");
3373
5188
  g_object_class_override_property (gobject_class, 2, "source-removable");
3374
5189
  g_object_class_override_property (gobject_class, 3, "source-writable");
 
5190
  g_object_class_override_property (gobject_class, 4, "source-remote-creatable");
 
5191
  g_object_class_override_property (gobject_class, 5, "source-remote-deletable");
3375
5192
}
3376
5193
 
3377
5194
/**
3477
5294
        }
3478
5295
      break;
3479
5296
 
 
5297
    case 4:
 
5298
      interface = g_value_get_object (value);
 
5299
      if (interface != NULL)
 
5300
        {
 
5301
          g_warn_if_fail (E_DBUS_IS_SOURCE_REMOTE_CREATABLE (interface));
 
5302
          g_dbus_object_skeleton_add_interface (G_DBUS_OBJECT_SKELETON (object), interface);
 
5303
        }
 
5304
      else
 
5305
        {
 
5306
          g_dbus_object_skeleton_remove_interface_by_name (G_DBUS_OBJECT_SKELETON (object), "org.gnome.evolution.dataserver.Source.RemoteCreatable");
 
5307
        }
 
5308
      break;
 
5309
 
 
5310
    case 5:
 
5311
      interface = g_value_get_object (value);
 
5312
      if (interface != NULL)
 
5313
        {
 
5314
          g_warn_if_fail (E_DBUS_IS_SOURCE_REMOTE_DELETABLE (interface));
 
5315
          g_dbus_object_skeleton_add_interface (G_DBUS_OBJECT_SKELETON (object), interface);
 
5316
        }
 
5317
      else
 
5318
        {
 
5319
          g_dbus_object_skeleton_remove_interface_by_name (G_DBUS_OBJECT_SKELETON (object), "org.gnome.evolution.dataserver.Source.RemoteDeletable");
 
5320
        }
 
5321
      break;
 
5322
 
3480
5323
    default:
3481
5324
      G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
3482
5325
      break;
3509
5352
      g_value_take_object (value, interface);
3510
5353
      break;
3511
5354
 
 
5355
    case 4:
 
5356
      interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.gnome.evolution.dataserver.Source.RemoteCreatable");
 
5357
      g_value_take_object (value, interface);
 
5358
      break;
 
5359
 
 
5360
    case 5:
 
5361
      interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.gnome.evolution.dataserver.Source.RemoteDeletable");
 
5362
      g_value_take_object (value, interface);
 
5363
      break;
 
5364
 
3512
5365
    default:
3513
5366
      G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
3514
5367
      break;
3526
5379
  g_object_class_override_property (gobject_class, 1, "source");
3527
5380
  g_object_class_override_property (gobject_class, 2, "source-removable");
3528
5381
  g_object_class_override_property (gobject_class, 3, "source-writable");
 
5382
  g_object_class_override_property (gobject_class, 4, "source-remote-creatable");
 
5383
  g_object_class_override_property (gobject_class, 5, "source-remote-deletable");
3529
5384
}
3530
5385
 
3531
5386
/**
3579
5434
  g_object_set (G_OBJECT (object), "source-writable", interface_, NULL);
3580
5435
}
3581
5436
 
 
5437
/**
 
5438
 * e_dbus_object_skeleton_set_source_remote_creatable:
 
5439
 * @object: A #EDBusObjectSkeleton.
 
5440
 * @interface_: (allow-none): A #EDBusSourceRemoteCreatable or %NULL to clear the interface.
 
5441
 *
 
5442
 * Sets the #EDBusSourceRemoteCreatable instance for the D-Bus interface <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteCreatable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteCreatable</link> on @object.
 
5443
 */
 
5444
void e_dbus_object_skeleton_set_source_remote_creatable (EDBusObjectSkeleton *object, EDBusSourceRemoteCreatable *interface_)
 
5445
{
 
5446
  g_object_set (G_OBJECT (object), "source-remote-creatable", interface_, NULL);
 
5447
}
 
5448
 
 
5449
/**
 
5450
 * e_dbus_object_skeleton_set_source_remote_deletable:
 
5451
 * @object: A #EDBusObjectSkeleton.
 
5452
 * @interface_: (allow-none): A #EDBusSourceRemoteDeletable or %NULL to clear the interface.
 
5453
 *
 
5454
 * Sets the #EDBusSourceRemoteDeletable instance for the D-Bus interface <link linkend="gdbus-interface-org-gnome-evolution-dataserver-Source-RemoteDeletable.top_of_page">org.gnome.evolution.dataserver.Source.RemoteDeletable</link> on @object.
 
5455
 */
 
5456
void e_dbus_object_skeleton_set_source_remote_deletable (EDBusObjectSkeleton *object, EDBusSourceRemoteDeletable *interface_)
 
5457
{
 
5458
  g_object_set (G_OBJECT (object), "source-remote-deletable", interface_, NULL);
 
5459
}
 
5460
 
3582
5461
 
3583
5462
/* ------------------------------------------------------------------------
3584
5463
 * Code for ObjectManager client
3644
5523
      g_hash_table_insert (lookup_hash, (gpointer) "org.gnome.evolution.dataserver.Source", GSIZE_TO_POINTER (E_DBUS_TYPE_SOURCE_PROXY));
3645
5524
      g_hash_table_insert (lookup_hash, (gpointer) "org.gnome.evolution.dataserver.Source.Removable", GSIZE_TO_POINTER (E_DBUS_TYPE_SOURCE_REMOVABLE_PROXY));
3646
5525
      g_hash_table_insert (lookup_hash, (gpointer) "org.gnome.evolution.dataserver.Source.Writable", GSIZE_TO_POINTER (E_DBUS_TYPE_SOURCE_WRITABLE_PROXY));
 
5526
      g_hash_table_insert (lookup_hash, (gpointer) "org.gnome.evolution.dataserver.Source.RemoteCreatable", GSIZE_TO_POINTER (E_DBUS_TYPE_SOURCE_REMOTE_CREATABLE_PROXY));
 
5527
      g_hash_table_insert (lookup_hash, (gpointer) "org.gnome.evolution.dataserver.Source.RemoteDeletable", GSIZE_TO_POINTER (E_DBUS_TYPE_SOURCE_REMOTE_DELETABLE_PROXY));
3647
5528
      g_once_init_leave (&once_init_value, 1);
3648
5529
    }
3649
5530
  ret = (GType) GPOINTER_TO_SIZE (g_hash_table_lookup (lookup_hash, interface_name));