2 * Generated by gdbus-codegen 2.34.1. DO NOT EDIT.
4 * The license of this code is the same as for the source it was derived from.
11 #include "gsignond-dbus-remote-plugin-gen.h"
15 # include <gio/gunixfdlist.h>
20 GDBusArgInfo parent_struct;
21 gboolean use_gvariant;
22 } _ExtendedGDBusArgInfo;
26 GDBusMethodInfo parent_struct;
27 const gchar *signal_name;
29 } _ExtendedGDBusMethodInfo;
33 GDBusSignalInfo parent_struct;
34 const gchar *signal_name;
35 } _ExtendedGDBusSignalInfo;
39 GDBusPropertyInfo parent_struct;
40 const gchar *hyphen_name;
41 gboolean use_gvariant;
42 } _ExtendedGDBusPropertyInfo;
46 GDBusInterfaceInfo parent_struct;
47 const gchar *hyphen_name;
48 } _ExtendedGDBusInterfaceInfo;
52 const _ExtendedGDBusPropertyInfo *info;
54 GValue orig_value; /* the value before the change */
58 _changed_property_free (ChangedProperty *data)
60 g_value_unset (&data->orig_value);
65 _g_strv_equal0 (gchar **a, gchar **b)
69 if (a == NULL && b == NULL)
74 if (a == NULL || b == NULL)
76 if (g_strv_length (a) != g_strv_length (b))
78 for (n = 0; a[n] != NULL; n++)
79 if (g_strcmp0 (a[n], b[n]) != 0)
87 _g_variant_equal0 (GVariant *a, GVariant *b)
90 if (a == NULL && b == NULL)
95 if (a == NULL || b == NULL)
97 ret = g_variant_equal (a, b);
102 G_GNUC_UNUSED static gboolean
103 _g_value_equal (const GValue *a, const GValue *b)
105 gboolean ret = FALSE;
106 g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b));
107 switch (G_VALUE_TYPE (a))
110 ret = (g_value_get_boolean (a) == g_value_get_boolean (b));
113 ret = (g_value_get_uchar (a) == g_value_get_uchar (b));
116 ret = (g_value_get_int (a) == g_value_get_int (b));
119 ret = (g_value_get_uint (a) == g_value_get_uint (b));
122 ret = (g_value_get_int64 (a) == g_value_get_int64 (b));
125 ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b));
129 /* Avoid -Wfloat-equal warnings by doing a direct bit compare */
130 gdouble da = g_value_get_double (a);
131 gdouble db = g_value_get_double (b);
132 ret = memcmp (&da, &db, sizeof (gdouble)) == 0;
136 ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0);
139 ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b));
142 if (G_VALUE_TYPE (a) == G_TYPE_STRV)
143 ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b));
145 g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)));
151 /* ------------------------------------------------------------------------
152 * Code for interface com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin
153 * ------------------------------------------------------------------------
157 * SECTION:GSignondDbusRemotePlugin
158 * @title: GSignondDbusRemotePlugin
159 * @short_description: Generated C code for the com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin D-Bus interface
161 * This section contains code for working with the <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin</link> D-Bus interface in C.
164 /* ---- Introspection data for com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin ---- */
166 static const _ExtendedGDBusMethodInfo _gsignond_dbus_remote_plugin_method_info_cancel =
179 static const _ExtendedGDBusArgInfo _gsignond_dbus_remote_plugin_method_info_request_initial_IN_ARG_sessionData =
183 (gchar *) "sessionData",
190 static const _ExtendedGDBusArgInfo _gsignond_dbus_remote_plugin_method_info_request_initial_IN_ARG_identityMethodCache =
194 (gchar *) "identityMethodCache",
201 static const _ExtendedGDBusArgInfo _gsignond_dbus_remote_plugin_method_info_request_initial_IN_ARG_mechanism =
205 (gchar *) "mechanism",
212 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_remote_plugin_method_info_request_initial_IN_ARG_pointers[] =
214 &_gsignond_dbus_remote_plugin_method_info_request_initial_IN_ARG_sessionData,
215 &_gsignond_dbus_remote_plugin_method_info_request_initial_IN_ARG_identityMethodCache,
216 &_gsignond_dbus_remote_plugin_method_info_request_initial_IN_ARG_mechanism,
220 static const _ExtendedGDBusMethodInfo _gsignond_dbus_remote_plugin_method_info_request_initial =
224 (gchar *) "requestInitial",
225 (GDBusArgInfo **) &_gsignond_dbus_remote_plugin_method_info_request_initial_IN_ARG_pointers,
229 "handle-request-initial",
233 static const _ExtendedGDBusArgInfo _gsignond_dbus_remote_plugin_method_info_request_IN_ARG_sessionData =
237 (gchar *) "sessionData",
244 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_remote_plugin_method_info_request_IN_ARG_pointers[] =
246 &_gsignond_dbus_remote_plugin_method_info_request_IN_ARG_sessionData,
250 static const _ExtendedGDBusMethodInfo _gsignond_dbus_remote_plugin_method_info_request =
255 (GDBusArgInfo **) &_gsignond_dbus_remote_plugin_method_info_request_IN_ARG_pointers,
263 static const _ExtendedGDBusArgInfo _gsignond_dbus_remote_plugin_method_info_user_action_finished_IN_ARG_uiData =
274 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_remote_plugin_method_info_user_action_finished_IN_ARG_pointers[] =
276 &_gsignond_dbus_remote_plugin_method_info_user_action_finished_IN_ARG_uiData,
280 static const _ExtendedGDBusMethodInfo _gsignond_dbus_remote_plugin_method_info_user_action_finished =
284 (gchar *) "userActionFinished",
285 (GDBusArgInfo **) &_gsignond_dbus_remote_plugin_method_info_user_action_finished_IN_ARG_pointers,
289 "handle-user-action-finished",
293 static const _ExtendedGDBusArgInfo _gsignond_dbus_remote_plugin_method_info_refresh_IN_ARG_uiData =
304 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_remote_plugin_method_info_refresh_IN_ARG_pointers[] =
306 &_gsignond_dbus_remote_plugin_method_info_refresh_IN_ARG_uiData,
310 static const _ExtendedGDBusMethodInfo _gsignond_dbus_remote_plugin_method_info_refresh =
315 (GDBusArgInfo **) &_gsignond_dbus_remote_plugin_method_info_refresh_IN_ARG_pointers,
323 static const _ExtendedGDBusArgInfo _gsignond_dbus_remote_plugin_method_info_get_info_OUT_ARG_type =
334 static const _ExtendedGDBusArgInfo _gsignond_dbus_remote_plugin_method_info_get_info_OUT_ARG_mechanisms =
338 (gchar *) "mechanisms",
345 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_remote_plugin_method_info_get_info_OUT_ARG_pointers[] =
347 &_gsignond_dbus_remote_plugin_method_info_get_info_OUT_ARG_type,
348 &_gsignond_dbus_remote_plugin_method_info_get_info_OUT_ARG_mechanisms,
352 static const _ExtendedGDBusMethodInfo _gsignond_dbus_remote_plugin_method_info_get_info =
358 (GDBusArgInfo **) &_gsignond_dbus_remote_plugin_method_info_get_info_OUT_ARG_pointers,
365 static const _ExtendedGDBusMethodInfo * const _gsignond_dbus_remote_plugin_method_info_pointers[] =
367 &_gsignond_dbus_remote_plugin_method_info_cancel,
368 &_gsignond_dbus_remote_plugin_method_info_request_initial,
369 &_gsignond_dbus_remote_plugin_method_info_request,
370 &_gsignond_dbus_remote_plugin_method_info_user_action_finished,
371 &_gsignond_dbus_remote_plugin_method_info_refresh,
372 &_gsignond_dbus_remote_plugin_method_info_get_info,
376 static const _ExtendedGDBusArgInfo _gsignond_dbus_remote_plugin_signal_info_response_ARG_sessionData =
380 (gchar *) "sessionData",
387 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_remote_plugin_signal_info_response_ARG_pointers[] =
389 &_gsignond_dbus_remote_plugin_signal_info_response_ARG_sessionData,
393 static const _ExtendedGDBusSignalInfo _gsignond_dbus_remote_plugin_signal_info_response =
397 (gchar *) "response",
398 (GDBusArgInfo **) &_gsignond_dbus_remote_plugin_signal_info_response_ARG_pointers,
404 static const _ExtendedGDBusArgInfo _gsignond_dbus_remote_plugin_signal_info_response_final_ARG_sessionData =
408 (gchar *) "sessionData",
415 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_remote_plugin_signal_info_response_final_ARG_pointers[] =
417 &_gsignond_dbus_remote_plugin_signal_info_response_final_ARG_sessionData,
421 static const _ExtendedGDBusSignalInfo _gsignond_dbus_remote_plugin_signal_info_response_final =
425 (gchar *) "responseFinal",
426 (GDBusArgInfo **) &_gsignond_dbus_remote_plugin_signal_info_response_final_ARG_pointers,
432 static const _ExtendedGDBusArgInfo _gsignond_dbus_remote_plugin_signal_info_store_ARG_sessionData =
436 (gchar *) "sessionData",
443 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_remote_plugin_signal_info_store_ARG_pointers[] =
445 &_gsignond_dbus_remote_plugin_signal_info_store_ARG_sessionData,
449 static const _ExtendedGDBusSignalInfo _gsignond_dbus_remote_plugin_signal_info_store =
454 (GDBusArgInfo **) &_gsignond_dbus_remote_plugin_signal_info_store_ARG_pointers,
460 static const _ExtendedGDBusArgInfo _gsignond_dbus_remote_plugin_signal_info_error_ARG_error =
471 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_remote_plugin_signal_info_error_ARG_pointers[] =
473 &_gsignond_dbus_remote_plugin_signal_info_error_ARG_error,
477 static const _ExtendedGDBusSignalInfo _gsignond_dbus_remote_plugin_signal_info_error =
482 (GDBusArgInfo **) &_gsignond_dbus_remote_plugin_signal_info_error_ARG_pointers,
488 static const _ExtendedGDBusArgInfo _gsignond_dbus_remote_plugin_signal_info_user_action_required_ARG_uiData =
499 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_remote_plugin_signal_info_user_action_required_ARG_pointers[] =
501 &_gsignond_dbus_remote_plugin_signal_info_user_action_required_ARG_uiData,
505 static const _ExtendedGDBusSignalInfo _gsignond_dbus_remote_plugin_signal_info_user_action_required =
509 (gchar *) "userActionRequired",
510 (GDBusArgInfo **) &_gsignond_dbus_remote_plugin_signal_info_user_action_required_ARG_pointers,
513 "user-action-required"
516 static const _ExtendedGDBusArgInfo _gsignond_dbus_remote_plugin_signal_info_refreshed_ARG_uiData =
527 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_remote_plugin_signal_info_refreshed_ARG_pointers[] =
529 &_gsignond_dbus_remote_plugin_signal_info_refreshed_ARG_uiData,
533 static const _ExtendedGDBusSignalInfo _gsignond_dbus_remote_plugin_signal_info_refreshed =
537 (gchar *) "refreshed",
538 (GDBusArgInfo **) &_gsignond_dbus_remote_plugin_signal_info_refreshed_ARG_pointers,
544 static const _ExtendedGDBusArgInfo _gsignond_dbus_remote_plugin_signal_info_status_changed_ARG_state =
555 static const _ExtendedGDBusArgInfo _gsignond_dbus_remote_plugin_signal_info_status_changed_ARG_message =
566 static const _ExtendedGDBusArgInfo * const _gsignond_dbus_remote_plugin_signal_info_status_changed_ARG_pointers[] =
568 &_gsignond_dbus_remote_plugin_signal_info_status_changed_ARG_state,
569 &_gsignond_dbus_remote_plugin_signal_info_status_changed_ARG_message,
573 static const _ExtendedGDBusSignalInfo _gsignond_dbus_remote_plugin_signal_info_status_changed =
577 (gchar *) "statusChanged",
578 (GDBusArgInfo **) &_gsignond_dbus_remote_plugin_signal_info_status_changed_ARG_pointers,
584 static const _ExtendedGDBusSignalInfo * const _gsignond_dbus_remote_plugin_signal_info_pointers[] =
586 &_gsignond_dbus_remote_plugin_signal_info_response,
587 &_gsignond_dbus_remote_plugin_signal_info_response_final,
588 &_gsignond_dbus_remote_plugin_signal_info_store,
589 &_gsignond_dbus_remote_plugin_signal_info_error,
590 &_gsignond_dbus_remote_plugin_signal_info_user_action_required,
591 &_gsignond_dbus_remote_plugin_signal_info_refreshed,
592 &_gsignond_dbus_remote_plugin_signal_info_status_changed,
596 static const _ExtendedGDBusInterfaceInfo _gsignond_dbus_remote_plugin_interface_info =
600 (gchar *) "com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin",
601 (GDBusMethodInfo **) &_gsignond_dbus_remote_plugin_method_info_pointers,
602 (GDBusSignalInfo **) &_gsignond_dbus_remote_plugin_signal_info_pointers,
611 * gsignond_dbus_remote_plugin_interface_info:
613 * Gets a machine-readable description of the <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin</link> D-Bus interface.
615 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
618 gsignond_dbus_remote_plugin_interface_info (void)
620 return (GDBusInterfaceInfo *) &_gsignond_dbus_remote_plugin_interface_info.parent_struct;
624 * gsignond_dbus_remote_plugin_override_properties:
625 * @klass: The class structure for a #GObject<!-- -->-derived class.
626 * @property_id_begin: The property id to assign to the first overridden property.
628 * Overrides all #GObject properties in the #GSignondDbusRemotePlugin interface for a concrete class.
629 * The properties are overridden in the order they are defined.
631 * Returns: The last property id.
634 gsignond_dbus_remote_plugin_override_properties (GObjectClass *klass, guint property_id_begin)
636 return property_id_begin - 1;
642 * GSignondDbusRemotePlugin:
644 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin</link>.
648 * GSignondDbusRemotePluginIface:
649 * @parent_iface: The parent interface.
650 * @handle_cancel: Handler for the #GSignondDbusRemotePlugin::handle-cancel signal.
651 * @handle_get_info: Handler for the #GSignondDbusRemotePlugin::handle-get-info signal.
652 * @handle_refresh: Handler for the #GSignondDbusRemotePlugin::handle-refresh signal.
653 * @handle_request: Handler for the #GSignondDbusRemotePlugin::handle-request signal.
654 * @handle_request_initial: Handler for the #GSignondDbusRemotePlugin::handle-request-initial signal.
655 * @handle_user_action_finished: Handler for the #GSignondDbusRemotePlugin::handle-user-action-finished signal.
656 * @error: Handler for the #GSignondDbusRemotePlugin::error signal.
657 * @refreshed: Handler for the #GSignondDbusRemotePlugin::refreshed signal.
658 * @response: Handler for the #GSignondDbusRemotePlugin::response signal.
659 * @response_final: Handler for the #GSignondDbusRemotePlugin::response-final signal.
660 * @status_changed: Handler for the #GSignondDbusRemotePlugin::status-changed signal.
661 * @store: Handler for the #GSignondDbusRemotePlugin::store signal.
662 * @user_action_required: Handler for the #GSignondDbusRemotePlugin::user-action-required signal.
664 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin</link>.
668 gsignond_dbus_remote_plugin_default_init (GSignondDbusRemotePluginIface *iface)
670 /* GObject signals for incoming D-Bus method calls: */
672 * GSignondDbusRemotePlugin::handle-cancel:
673 * @object: A #GSignondDbusRemotePlugin.
674 * @invocation: A #GDBusMethodInvocation.
676 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.cancel">cancel()</link> D-Bus method.
678 * 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 gsignond_dbus_remote_plugin_complete_cancel() 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.
680 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
682 g_signal_new ("handle-cancel",
683 G_TYPE_FROM_INTERFACE (iface),
685 G_STRUCT_OFFSET (GSignondDbusRemotePluginIface, handle_cancel),
686 g_signal_accumulator_true_handled,
688 g_cclosure_marshal_generic,
691 G_TYPE_DBUS_METHOD_INVOCATION);
694 * GSignondDbusRemotePlugin::handle-request-initial:
695 * @object: A #GSignondDbusRemotePlugin.
696 * @invocation: A #GDBusMethodInvocation.
697 * @arg_sessionData: Argument passed by remote caller.
698 * @arg_identityMethodCache: Argument passed by remote caller.
699 * @arg_mechanism: Argument passed by remote caller.
701 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.requestInitial">requestInitial()</link> D-Bus method.
703 * 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 gsignond_dbus_remote_plugin_complete_request_initial() 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.
705 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
707 g_signal_new ("handle-request-initial",
708 G_TYPE_FROM_INTERFACE (iface),
710 G_STRUCT_OFFSET (GSignondDbusRemotePluginIface, handle_request_initial),
711 g_signal_accumulator_true_handled,
713 g_cclosure_marshal_generic,
716 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT, G_TYPE_VARIANT, G_TYPE_STRING);
719 * GSignondDbusRemotePlugin::handle-request:
720 * @object: A #GSignondDbusRemotePlugin.
721 * @invocation: A #GDBusMethodInvocation.
722 * @arg_sessionData: Argument passed by remote caller.
724 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.request">request()</link> D-Bus method.
726 * 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 gsignond_dbus_remote_plugin_complete_request() 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.
728 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
730 g_signal_new ("handle-request",
731 G_TYPE_FROM_INTERFACE (iface),
733 G_STRUCT_OFFSET (GSignondDbusRemotePluginIface, handle_request),
734 g_signal_accumulator_true_handled,
736 g_cclosure_marshal_generic,
739 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT);
742 * GSignondDbusRemotePlugin::handle-user-action-finished:
743 * @object: A #GSignondDbusRemotePlugin.
744 * @invocation: A #GDBusMethodInvocation.
745 * @arg_uiData: Argument passed by remote caller.
747 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.userActionFinished">userActionFinished()</link> D-Bus method.
749 * 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 gsignond_dbus_remote_plugin_complete_user_action_finished() 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.
751 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
753 g_signal_new ("handle-user-action-finished",
754 G_TYPE_FROM_INTERFACE (iface),
756 G_STRUCT_OFFSET (GSignondDbusRemotePluginIface, handle_user_action_finished),
757 g_signal_accumulator_true_handled,
759 g_cclosure_marshal_generic,
762 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT);
765 * GSignondDbusRemotePlugin::handle-refresh:
766 * @object: A #GSignondDbusRemotePlugin.
767 * @invocation: A #GDBusMethodInvocation.
768 * @arg_uiData: Argument passed by remote caller.
770 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.refresh">refresh()</link> D-Bus method.
772 * 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 gsignond_dbus_remote_plugin_complete_refresh() 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.
774 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
776 g_signal_new ("handle-refresh",
777 G_TYPE_FROM_INTERFACE (iface),
779 G_STRUCT_OFFSET (GSignondDbusRemotePluginIface, handle_refresh),
780 g_signal_accumulator_true_handled,
782 g_cclosure_marshal_generic,
785 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT);
788 * GSignondDbusRemotePlugin::handle-get-info:
789 * @object: A #GSignondDbusRemotePlugin.
790 * @invocation: A #GDBusMethodInvocation.
792 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.getInfo">getInfo()</link> D-Bus method.
794 * 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 gsignond_dbus_remote_plugin_complete_get_info() 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.
796 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
798 g_signal_new ("handle-get-info",
799 G_TYPE_FROM_INTERFACE (iface),
801 G_STRUCT_OFFSET (GSignondDbusRemotePluginIface, handle_get_info),
802 g_signal_accumulator_true_handled,
804 g_cclosure_marshal_generic,
807 G_TYPE_DBUS_METHOD_INVOCATION);
809 /* GObject signals for received D-Bus signals: */
811 * GSignondDbusRemotePlugin::response:
812 * @object: A #GSignondDbusRemotePlugin.
813 * @arg_sessionData: Argument.
815 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.response">"response"</link> is received.
817 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
819 g_signal_new ("response",
820 G_TYPE_FROM_INTERFACE (iface),
822 G_STRUCT_OFFSET (GSignondDbusRemotePluginIface, response),
825 g_cclosure_marshal_generic,
830 * GSignondDbusRemotePlugin::response-final:
831 * @object: A #GSignondDbusRemotePlugin.
832 * @arg_sessionData: Argument.
834 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.responseFinal">"responseFinal"</link> is received.
836 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
838 g_signal_new ("response-final",
839 G_TYPE_FROM_INTERFACE (iface),
841 G_STRUCT_OFFSET (GSignondDbusRemotePluginIface, response_final),
844 g_cclosure_marshal_generic,
849 * GSignondDbusRemotePlugin::store:
850 * @object: A #GSignondDbusRemotePlugin.
851 * @arg_sessionData: Argument.
853 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.store">"store"</link> is received.
855 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
857 g_signal_new ("store",
858 G_TYPE_FROM_INTERFACE (iface),
860 G_STRUCT_OFFSET (GSignondDbusRemotePluginIface, store),
863 g_cclosure_marshal_generic,
868 * GSignondDbusRemotePlugin::error:
869 * @object: A #GSignondDbusRemotePlugin.
870 * @arg_error: Argument.
872 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.error">"error"</link> is received.
874 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
876 g_signal_new ("error",
877 G_TYPE_FROM_INTERFACE (iface),
879 G_STRUCT_OFFSET (GSignondDbusRemotePluginIface, error),
882 g_cclosure_marshal_generic,
887 * GSignondDbusRemotePlugin::user-action-required:
888 * @object: A #GSignondDbusRemotePlugin.
889 * @arg_uiData: Argument.
891 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.userActionRequired">"userActionRequired"</link> is received.
893 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
895 g_signal_new ("user-action-required",
896 G_TYPE_FROM_INTERFACE (iface),
898 G_STRUCT_OFFSET (GSignondDbusRemotePluginIface, user_action_required),
901 g_cclosure_marshal_generic,
906 * GSignondDbusRemotePlugin::refreshed:
907 * @object: A #GSignondDbusRemotePlugin.
908 * @arg_uiData: Argument.
910 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.refreshed">"refreshed"</link> is received.
912 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
914 g_signal_new ("refreshed",
915 G_TYPE_FROM_INTERFACE (iface),
917 G_STRUCT_OFFSET (GSignondDbusRemotePluginIface, refreshed),
920 g_cclosure_marshal_generic,
925 * GSignondDbusRemotePlugin::status-changed:
926 * @object: A #GSignondDbusRemotePlugin.
927 * @arg_state: Argument.
928 * @arg_message: Argument.
930 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.statusChanged">"statusChanged"</link> is received.
932 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
934 g_signal_new ("status-changed",
935 G_TYPE_FROM_INTERFACE (iface),
937 G_STRUCT_OFFSET (GSignondDbusRemotePluginIface, status_changed),
940 g_cclosure_marshal_generic,
942 2, G_TYPE_INT, G_TYPE_STRING);
946 typedef GSignondDbusRemotePluginIface GSignondDbusRemotePluginInterface;
947 G_DEFINE_INTERFACE (GSignondDbusRemotePlugin, gsignond_dbus_remote_plugin, G_TYPE_OBJECT);
950 * gsignond_dbus_remote_plugin_emit_response:
951 * @object: A #GSignondDbusRemotePlugin.
952 * @arg_sessionData: Argument to pass with the signal.
954 * Emits the <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.response">"response"</link> D-Bus signal.
957 gsignond_dbus_remote_plugin_emit_response (
958 GSignondDbusRemotePlugin *object,
959 GVariant *arg_sessionData)
961 g_signal_emit_by_name (object, "response", arg_sessionData);
965 * gsignond_dbus_remote_plugin_emit_response_final:
966 * @object: A #GSignondDbusRemotePlugin.
967 * @arg_sessionData: Argument to pass with the signal.
969 * Emits the <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.responseFinal">"responseFinal"</link> D-Bus signal.
972 gsignond_dbus_remote_plugin_emit_response_final (
973 GSignondDbusRemotePlugin *object,
974 GVariant *arg_sessionData)
976 g_signal_emit_by_name (object, "response-final", arg_sessionData);
980 * gsignond_dbus_remote_plugin_emit_store:
981 * @object: A #GSignondDbusRemotePlugin.
982 * @arg_sessionData: Argument to pass with the signal.
984 * Emits the <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.store">"store"</link> D-Bus signal.
987 gsignond_dbus_remote_plugin_emit_store (
988 GSignondDbusRemotePlugin *object,
989 GVariant *arg_sessionData)
991 g_signal_emit_by_name (object, "store", arg_sessionData);
995 * gsignond_dbus_remote_plugin_emit_error:
996 * @object: A #GSignondDbusRemotePlugin.
997 * @arg_error: Argument to pass with the signal.
999 * Emits the <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.error">"error"</link> D-Bus signal.
1002 gsignond_dbus_remote_plugin_emit_error (
1003 GSignondDbusRemotePlugin *object,
1004 GVariant *arg_error)
1006 g_signal_emit_by_name (object, "error", arg_error);
1010 * gsignond_dbus_remote_plugin_emit_user_action_required:
1011 * @object: A #GSignondDbusRemotePlugin.
1012 * @arg_uiData: Argument to pass with the signal.
1014 * Emits the <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.userActionRequired">"userActionRequired"</link> D-Bus signal.
1017 gsignond_dbus_remote_plugin_emit_user_action_required (
1018 GSignondDbusRemotePlugin *object,
1019 GVariant *arg_uiData)
1021 g_signal_emit_by_name (object, "user-action-required", arg_uiData);
1025 * gsignond_dbus_remote_plugin_emit_refreshed:
1026 * @object: A #GSignondDbusRemotePlugin.
1027 * @arg_uiData: Argument to pass with the signal.
1029 * Emits the <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.refreshed">"refreshed"</link> D-Bus signal.
1032 gsignond_dbus_remote_plugin_emit_refreshed (
1033 GSignondDbusRemotePlugin *object,
1034 GVariant *arg_uiData)
1036 g_signal_emit_by_name (object, "refreshed", arg_uiData);
1040 * gsignond_dbus_remote_plugin_emit_status_changed:
1041 * @object: A #GSignondDbusRemotePlugin.
1042 * @arg_state: Argument to pass with the signal.
1043 * @arg_message: Argument to pass with the signal.
1045 * Emits the <link linkend="gdbus-signal-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.statusChanged">"statusChanged"</link> D-Bus signal.
1048 gsignond_dbus_remote_plugin_emit_status_changed (
1049 GSignondDbusRemotePlugin *object,
1051 const gchar *arg_message)
1053 g_signal_emit_by_name (object, "status-changed", arg_state, arg_message);
1057 * gsignond_dbus_remote_plugin_call_cancel:
1058 * @proxy: A #GSignondDbusRemotePluginProxy.
1059 * @cancellable: (allow-none): A #GCancellable or %NULL.
1060 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1061 * @user_data: User data to pass to @callback.
1063 * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.cancel">cancel()</link> D-Bus method on @proxy.
1064 * 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.
1065 * You can then call gsignond_dbus_remote_plugin_call_cancel_finish() to get the result of the operation.
1067 * See gsignond_dbus_remote_plugin_call_cancel_sync() for the synchronous, blocking version of this method.
1070 gsignond_dbus_remote_plugin_call_cancel (
1071 GSignondDbusRemotePlugin *proxy,
1072 GCancellable *cancellable,
1073 GAsyncReadyCallback callback,
1076 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1078 g_variant_new ("()"),
1079 G_DBUS_CALL_FLAGS_NONE,
1087 * gsignond_dbus_remote_plugin_call_cancel_finish:
1088 * @proxy: A #GSignondDbusRemotePluginProxy.
1089 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_remote_plugin_call_cancel().
1090 * @error: Return location for error or %NULL.
1092 * Finishes an operation started with gsignond_dbus_remote_plugin_call_cancel().
1094 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1097 gsignond_dbus_remote_plugin_call_cancel_finish (
1098 GSignondDbusRemotePlugin *proxy,
1103 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1106 g_variant_get (_ret,
1108 g_variant_unref (_ret);
1110 return _ret != NULL;
1114 * gsignond_dbus_remote_plugin_call_cancel_sync:
1115 * @proxy: A #GSignondDbusRemotePluginProxy.
1116 * @cancellable: (allow-none): A #GCancellable or %NULL.
1117 * @error: Return location for error or %NULL.
1119 * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.cancel">cancel()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1121 * See gsignond_dbus_remote_plugin_call_cancel() for the asynchronous version of this method.
1123 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1126 gsignond_dbus_remote_plugin_call_cancel_sync (
1127 GSignondDbusRemotePlugin *proxy,
1128 GCancellable *cancellable,
1132 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1134 g_variant_new ("()"),
1135 G_DBUS_CALL_FLAGS_NONE,
1141 g_variant_get (_ret,
1143 g_variant_unref (_ret);
1145 return _ret != NULL;
1149 * gsignond_dbus_remote_plugin_call_request_initial:
1150 * @proxy: A #GSignondDbusRemotePluginProxy.
1151 * @arg_sessionData: Argument to pass with the method invocation.
1152 * @arg_identityMethodCache: Argument to pass with the method invocation.
1153 * @arg_mechanism: Argument to pass with the method invocation.
1154 * @cancellable: (allow-none): A #GCancellable or %NULL.
1155 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1156 * @user_data: User data to pass to @callback.
1158 * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.requestInitial">requestInitial()</link> D-Bus method on @proxy.
1159 * 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.
1160 * You can then call gsignond_dbus_remote_plugin_call_request_initial_finish() to get the result of the operation.
1162 * See gsignond_dbus_remote_plugin_call_request_initial_sync() for the synchronous, blocking version of this method.
1165 gsignond_dbus_remote_plugin_call_request_initial (
1166 GSignondDbusRemotePlugin *proxy,
1167 GVariant *arg_sessionData,
1168 GVariant *arg_identityMethodCache,
1169 const gchar *arg_mechanism,
1170 GCancellable *cancellable,
1171 GAsyncReadyCallback callback,
1174 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1176 g_variant_new ("(@a{sv}@a{sv}s)",
1178 arg_identityMethodCache,
1180 G_DBUS_CALL_FLAGS_NONE,
1188 * gsignond_dbus_remote_plugin_call_request_initial_finish:
1189 * @proxy: A #GSignondDbusRemotePluginProxy.
1190 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_remote_plugin_call_request_initial().
1191 * @error: Return location for error or %NULL.
1193 * Finishes an operation started with gsignond_dbus_remote_plugin_call_request_initial().
1195 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1198 gsignond_dbus_remote_plugin_call_request_initial_finish (
1199 GSignondDbusRemotePlugin *proxy,
1204 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1207 g_variant_get (_ret,
1209 g_variant_unref (_ret);
1211 return _ret != NULL;
1215 * gsignond_dbus_remote_plugin_call_request_initial_sync:
1216 * @proxy: A #GSignondDbusRemotePluginProxy.
1217 * @arg_sessionData: Argument to pass with the method invocation.
1218 * @arg_identityMethodCache: Argument to pass with the method invocation.
1219 * @arg_mechanism: Argument to pass with the method invocation.
1220 * @cancellable: (allow-none): A #GCancellable or %NULL.
1221 * @error: Return location for error or %NULL.
1223 * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.requestInitial">requestInitial()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1225 * See gsignond_dbus_remote_plugin_call_request_initial() for the asynchronous version of this method.
1227 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1230 gsignond_dbus_remote_plugin_call_request_initial_sync (
1231 GSignondDbusRemotePlugin *proxy,
1232 GVariant *arg_sessionData,
1233 GVariant *arg_identityMethodCache,
1234 const gchar *arg_mechanism,
1235 GCancellable *cancellable,
1239 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1241 g_variant_new ("(@a{sv}@a{sv}s)",
1243 arg_identityMethodCache,
1245 G_DBUS_CALL_FLAGS_NONE,
1251 g_variant_get (_ret,
1253 g_variant_unref (_ret);
1255 return _ret != NULL;
1259 * gsignond_dbus_remote_plugin_call_request:
1260 * @proxy: A #GSignondDbusRemotePluginProxy.
1261 * @arg_sessionData: Argument to pass with the method invocation.
1262 * @cancellable: (allow-none): A #GCancellable or %NULL.
1263 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1264 * @user_data: User data to pass to @callback.
1266 * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.request">request()</link> D-Bus method on @proxy.
1267 * 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.
1268 * You can then call gsignond_dbus_remote_plugin_call_request_finish() to get the result of the operation.
1270 * See gsignond_dbus_remote_plugin_call_request_sync() for the synchronous, blocking version of this method.
1273 gsignond_dbus_remote_plugin_call_request (
1274 GSignondDbusRemotePlugin *proxy,
1275 GVariant *arg_sessionData,
1276 GCancellable *cancellable,
1277 GAsyncReadyCallback callback,
1280 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1282 g_variant_new ("(@a{sv})",
1284 G_DBUS_CALL_FLAGS_NONE,
1292 * gsignond_dbus_remote_plugin_call_request_finish:
1293 * @proxy: A #GSignondDbusRemotePluginProxy.
1294 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_remote_plugin_call_request().
1295 * @error: Return location for error or %NULL.
1297 * Finishes an operation started with gsignond_dbus_remote_plugin_call_request().
1299 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1302 gsignond_dbus_remote_plugin_call_request_finish (
1303 GSignondDbusRemotePlugin *proxy,
1308 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1311 g_variant_get (_ret,
1313 g_variant_unref (_ret);
1315 return _ret != NULL;
1319 * gsignond_dbus_remote_plugin_call_request_sync:
1320 * @proxy: A #GSignondDbusRemotePluginProxy.
1321 * @arg_sessionData: Argument to pass with the method invocation.
1322 * @cancellable: (allow-none): A #GCancellable or %NULL.
1323 * @error: Return location for error or %NULL.
1325 * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.request">request()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1327 * See gsignond_dbus_remote_plugin_call_request() for the asynchronous version of this method.
1329 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1332 gsignond_dbus_remote_plugin_call_request_sync (
1333 GSignondDbusRemotePlugin *proxy,
1334 GVariant *arg_sessionData,
1335 GCancellable *cancellable,
1339 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1341 g_variant_new ("(@a{sv})",
1343 G_DBUS_CALL_FLAGS_NONE,
1349 g_variant_get (_ret,
1351 g_variant_unref (_ret);
1353 return _ret != NULL;
1357 * gsignond_dbus_remote_plugin_call_user_action_finished:
1358 * @proxy: A #GSignondDbusRemotePluginProxy.
1359 * @arg_uiData: Argument to pass with the method invocation.
1360 * @cancellable: (allow-none): A #GCancellable or %NULL.
1361 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1362 * @user_data: User data to pass to @callback.
1364 * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.userActionFinished">userActionFinished()</link> D-Bus method on @proxy.
1365 * 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.
1366 * You can then call gsignond_dbus_remote_plugin_call_user_action_finished_finish() to get the result of the operation.
1368 * See gsignond_dbus_remote_plugin_call_user_action_finished_sync() for the synchronous, blocking version of this method.
1371 gsignond_dbus_remote_plugin_call_user_action_finished (
1372 GSignondDbusRemotePlugin *proxy,
1373 GVariant *arg_uiData,
1374 GCancellable *cancellable,
1375 GAsyncReadyCallback callback,
1378 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1379 "userActionFinished",
1380 g_variant_new ("(@a{sv})",
1382 G_DBUS_CALL_FLAGS_NONE,
1390 * gsignond_dbus_remote_plugin_call_user_action_finished_finish:
1391 * @proxy: A #GSignondDbusRemotePluginProxy.
1392 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_remote_plugin_call_user_action_finished().
1393 * @error: Return location for error or %NULL.
1395 * Finishes an operation started with gsignond_dbus_remote_plugin_call_user_action_finished().
1397 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1400 gsignond_dbus_remote_plugin_call_user_action_finished_finish (
1401 GSignondDbusRemotePlugin *proxy,
1406 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1409 g_variant_get (_ret,
1411 g_variant_unref (_ret);
1413 return _ret != NULL;
1417 * gsignond_dbus_remote_plugin_call_user_action_finished_sync:
1418 * @proxy: A #GSignondDbusRemotePluginProxy.
1419 * @arg_uiData: Argument to pass with the method invocation.
1420 * @cancellable: (allow-none): A #GCancellable or %NULL.
1421 * @error: Return location for error or %NULL.
1423 * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.userActionFinished">userActionFinished()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1425 * See gsignond_dbus_remote_plugin_call_user_action_finished() for the asynchronous version of this method.
1427 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1430 gsignond_dbus_remote_plugin_call_user_action_finished_sync (
1431 GSignondDbusRemotePlugin *proxy,
1432 GVariant *arg_uiData,
1433 GCancellable *cancellable,
1437 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1438 "userActionFinished",
1439 g_variant_new ("(@a{sv})",
1441 G_DBUS_CALL_FLAGS_NONE,
1447 g_variant_get (_ret,
1449 g_variant_unref (_ret);
1451 return _ret != NULL;
1455 * gsignond_dbus_remote_plugin_call_refresh:
1456 * @proxy: A #GSignondDbusRemotePluginProxy.
1457 * @arg_uiData: Argument to pass with the method invocation.
1458 * @cancellable: (allow-none): A #GCancellable or %NULL.
1459 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1460 * @user_data: User data to pass to @callback.
1462 * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.refresh">refresh()</link> D-Bus method on @proxy.
1463 * 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.
1464 * You can then call gsignond_dbus_remote_plugin_call_refresh_finish() to get the result of the operation.
1466 * See gsignond_dbus_remote_plugin_call_refresh_sync() for the synchronous, blocking version of this method.
1469 gsignond_dbus_remote_plugin_call_refresh (
1470 GSignondDbusRemotePlugin *proxy,
1471 GVariant *arg_uiData,
1472 GCancellable *cancellable,
1473 GAsyncReadyCallback callback,
1476 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1478 g_variant_new ("(@a{sv})",
1480 G_DBUS_CALL_FLAGS_NONE,
1488 * gsignond_dbus_remote_plugin_call_refresh_finish:
1489 * @proxy: A #GSignondDbusRemotePluginProxy.
1490 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_remote_plugin_call_refresh().
1491 * @error: Return location for error or %NULL.
1493 * Finishes an operation started with gsignond_dbus_remote_plugin_call_refresh().
1495 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1498 gsignond_dbus_remote_plugin_call_refresh_finish (
1499 GSignondDbusRemotePlugin *proxy,
1504 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1507 g_variant_get (_ret,
1509 g_variant_unref (_ret);
1511 return _ret != NULL;
1515 * gsignond_dbus_remote_plugin_call_refresh_sync:
1516 * @proxy: A #GSignondDbusRemotePluginProxy.
1517 * @arg_uiData: Argument to pass with the method invocation.
1518 * @cancellable: (allow-none): A #GCancellable or %NULL.
1519 * @error: Return location for error or %NULL.
1521 * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.refresh">refresh()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1523 * See gsignond_dbus_remote_plugin_call_refresh() for the asynchronous version of this method.
1525 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1528 gsignond_dbus_remote_plugin_call_refresh_sync (
1529 GSignondDbusRemotePlugin *proxy,
1530 GVariant *arg_uiData,
1531 GCancellable *cancellable,
1535 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1537 g_variant_new ("(@a{sv})",
1539 G_DBUS_CALL_FLAGS_NONE,
1545 g_variant_get (_ret,
1547 g_variant_unref (_ret);
1549 return _ret != NULL;
1553 * gsignond_dbus_remote_plugin_call_get_info:
1554 * @proxy: A #GSignondDbusRemotePluginProxy.
1555 * @cancellable: (allow-none): A #GCancellable or %NULL.
1556 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1557 * @user_data: User data to pass to @callback.
1559 * Asynchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.getInfo">getInfo()</link> D-Bus method on @proxy.
1560 * 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.
1561 * You can then call gsignond_dbus_remote_plugin_call_get_info_finish() to get the result of the operation.
1563 * See gsignond_dbus_remote_plugin_call_get_info_sync() for the synchronous, blocking version of this method.
1566 gsignond_dbus_remote_plugin_call_get_info (
1567 GSignondDbusRemotePlugin *proxy,
1568 GCancellable *cancellable,
1569 GAsyncReadyCallback callback,
1572 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1574 g_variant_new ("()"),
1575 G_DBUS_CALL_FLAGS_NONE,
1583 * gsignond_dbus_remote_plugin_call_get_info_finish:
1584 * @proxy: A #GSignondDbusRemotePluginProxy.
1585 * @out_type: (out): Return location for return parameter or %NULL to ignore.
1586 * @out_mechanisms: (out): Return location for return parameter or %NULL to ignore.
1587 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_remote_plugin_call_get_info().
1588 * @error: Return location for error or %NULL.
1590 * Finishes an operation started with gsignond_dbus_remote_plugin_call_get_info().
1592 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1595 gsignond_dbus_remote_plugin_call_get_info_finish (
1596 GSignondDbusRemotePlugin *proxy,
1598 gchar ***out_mechanisms,
1603 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1606 g_variant_get (_ret,
1610 g_variant_unref (_ret);
1612 return _ret != NULL;
1616 * gsignond_dbus_remote_plugin_call_get_info_sync:
1617 * @proxy: A #GSignondDbusRemotePluginProxy.
1618 * @out_type: (out): Return location for return parameter or %NULL to ignore.
1619 * @out_mechanisms: (out): Return location for return parameter or %NULL to ignore.
1620 * @cancellable: (allow-none): A #GCancellable or %NULL.
1621 * @error: Return location for error or %NULL.
1623 * Synchronously invokes the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.getInfo">getInfo()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1625 * See gsignond_dbus_remote_plugin_call_get_info() for the asynchronous version of this method.
1627 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1630 gsignond_dbus_remote_plugin_call_get_info_sync (
1631 GSignondDbusRemotePlugin *proxy,
1633 gchar ***out_mechanisms,
1634 GCancellable *cancellable,
1638 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1640 g_variant_new ("()"),
1641 G_DBUS_CALL_FLAGS_NONE,
1647 g_variant_get (_ret,
1651 g_variant_unref (_ret);
1653 return _ret != NULL;
1657 * gsignond_dbus_remote_plugin_complete_cancel:
1658 * @object: A #GSignondDbusRemotePlugin.
1659 * @invocation: (transfer full): A #GDBusMethodInvocation.
1661 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.cancel">cancel()</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.
1663 * This method will free @invocation, you cannot use it afterwards.
1666 gsignond_dbus_remote_plugin_complete_cancel (
1667 GSignondDbusRemotePlugin *object,
1668 GDBusMethodInvocation *invocation)
1670 g_dbus_method_invocation_return_value (invocation,
1671 g_variant_new ("()"));
1675 * gsignond_dbus_remote_plugin_complete_request_initial:
1676 * @object: A #GSignondDbusRemotePlugin.
1677 * @invocation: (transfer full): A #GDBusMethodInvocation.
1679 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.requestInitial">requestInitial()</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.
1681 * This method will free @invocation, you cannot use it afterwards.
1684 gsignond_dbus_remote_plugin_complete_request_initial (
1685 GSignondDbusRemotePlugin *object,
1686 GDBusMethodInvocation *invocation)
1688 g_dbus_method_invocation_return_value (invocation,
1689 g_variant_new ("()"));
1693 * gsignond_dbus_remote_plugin_complete_request:
1694 * @object: A #GSignondDbusRemotePlugin.
1695 * @invocation: (transfer full): A #GDBusMethodInvocation.
1697 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.request">request()</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.
1699 * This method will free @invocation, you cannot use it afterwards.
1702 gsignond_dbus_remote_plugin_complete_request (
1703 GSignondDbusRemotePlugin *object,
1704 GDBusMethodInvocation *invocation)
1706 g_dbus_method_invocation_return_value (invocation,
1707 g_variant_new ("()"));
1711 * gsignond_dbus_remote_plugin_complete_user_action_finished:
1712 * @object: A #GSignondDbusRemotePlugin.
1713 * @invocation: (transfer full): A #GDBusMethodInvocation.
1715 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.userActionFinished">userActionFinished()</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.
1717 * This method will free @invocation, you cannot use it afterwards.
1720 gsignond_dbus_remote_plugin_complete_user_action_finished (
1721 GSignondDbusRemotePlugin *object,
1722 GDBusMethodInvocation *invocation)
1724 g_dbus_method_invocation_return_value (invocation,
1725 g_variant_new ("()"));
1729 * gsignond_dbus_remote_plugin_complete_refresh:
1730 * @object: A #GSignondDbusRemotePlugin.
1731 * @invocation: (transfer full): A #GDBusMethodInvocation.
1733 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.refresh">refresh()</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.
1735 * This method will free @invocation, you cannot use it afterwards.
1738 gsignond_dbus_remote_plugin_complete_refresh (
1739 GSignondDbusRemotePlugin *object,
1740 GDBusMethodInvocation *invocation)
1742 g_dbus_method_invocation_return_value (invocation,
1743 g_variant_new ("()"));
1747 * gsignond_dbus_remote_plugin_complete_get_info:
1748 * @object: A #GSignondDbusRemotePlugin.
1749 * @invocation: (transfer full): A #GDBusMethodInvocation.
1750 * @type: Parameter to return.
1751 * @mechanisms: Parameter to return.
1753 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.getInfo">getInfo()</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.
1755 * This method will free @invocation, you cannot use it afterwards.
1758 gsignond_dbus_remote_plugin_complete_get_info (
1759 GSignondDbusRemotePlugin *object,
1760 GDBusMethodInvocation *invocation,
1762 const gchar *const *mechanisms)
1764 g_dbus_method_invocation_return_value (invocation,
1765 g_variant_new ("(s^as)",
1770 /* ------------------------------------------------------------------------ */
1773 * GSignondDbusRemotePluginProxy:
1775 * The #GSignondDbusRemotePluginProxy structure contains only private data and should only be accessed using the provided API.
1779 * GSignondDbusRemotePluginProxyClass:
1780 * @parent_class: The parent class.
1782 * Class structure for #GSignondDbusRemotePluginProxy.
1785 struct _GSignondDbusRemotePluginProxyPrivate
1790 static void gsignond_dbus_remote_plugin_proxy_iface_init (GSignondDbusRemotePluginIface *iface);
1792 G_DEFINE_TYPE_WITH_CODE (GSignondDbusRemotePluginProxy, gsignond_dbus_remote_plugin_proxy, G_TYPE_DBUS_PROXY,
1793 G_IMPLEMENT_INTERFACE (GSIGNOND_DBUS_TYPE_REMOTE_PLUGIN, gsignond_dbus_remote_plugin_proxy_iface_init));
1796 gsignond_dbus_remote_plugin_proxy_finalize (GObject *object)
1798 GSignondDbusRemotePluginProxy *proxy = GSIGNOND_DBUS_REMOTE_PLUGIN_PROXY (object);
1799 g_datalist_clear (&proxy->priv->qdata);
1800 G_OBJECT_CLASS (gsignond_dbus_remote_plugin_proxy_parent_class)->finalize (object);
1804 gsignond_dbus_remote_plugin_proxy_get_property (GObject *object,
1812 gsignond_dbus_remote_plugin_proxy_set_property (GObject *object,
1814 const GValue *value,
1820 gsignond_dbus_remote_plugin_proxy_g_signal (GDBusProxy *proxy,
1821 const gchar *sender_name,
1822 const gchar *signal_name,
1823 GVariant *parameters)
1825 _ExtendedGDBusSignalInfo *info;
1832 info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_gsignond_dbus_remote_plugin_interface_info.parent_struct, signal_name);
1835 num_params = g_variant_n_children (parameters);
1836 paramv = g_new0 (GValue, num_params + 1);
1837 g_value_init (¶mv[0], GSIGNOND_DBUS_TYPE_REMOTE_PLUGIN);
1838 g_value_set_object (¶mv[0], proxy);
1839 g_variant_iter_init (&iter, parameters);
1841 while ((child = g_variant_iter_next_value (&iter)) != NULL)
1843 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
1844 if (arg_info->use_gvariant)
1846 g_value_init (¶mv[n], G_TYPE_VARIANT);
1847 g_value_set_variant (¶mv[n], child);
1851 g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
1852 g_variant_unref (child);
1854 signal_id = g_signal_lookup (info->signal_name, GSIGNOND_DBUS_TYPE_REMOTE_PLUGIN);
1855 g_signal_emitv (paramv, signal_id, 0, NULL);
1856 for (n = 0; n < num_params + 1; n++)
1857 g_value_unset (¶mv[n]);
1862 gsignond_dbus_remote_plugin_proxy_g_properties_changed (GDBusProxy *_proxy,
1863 GVariant *changed_properties,
1864 const gchar *const *invalidated_properties)
1866 GSignondDbusRemotePluginProxy *proxy = GSIGNOND_DBUS_REMOTE_PLUGIN_PROXY (_proxy);
1870 _ExtendedGDBusPropertyInfo *info;
1871 g_variant_get (changed_properties, "a{sv}", &iter);
1872 while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
1874 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gsignond_dbus_remote_plugin_interface_info.parent_struct, key);
1875 g_datalist_remove_data (&proxy->priv->qdata, key);
1877 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
1879 g_variant_iter_free (iter);
1880 for (n = 0; invalidated_properties[n] != NULL; n++)
1882 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gsignond_dbus_remote_plugin_interface_info.parent_struct, invalidated_properties[n]);
1883 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
1885 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
1890 gsignond_dbus_remote_plugin_proxy_init (GSignondDbusRemotePluginProxy *proxy)
1892 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, GSIGNOND_DBUS_TYPE_REMOTE_PLUGIN_PROXY, GSignondDbusRemotePluginProxyPrivate);
1893 g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), gsignond_dbus_remote_plugin_interface_info ());
1897 gsignond_dbus_remote_plugin_proxy_class_init (GSignondDbusRemotePluginProxyClass *klass)
1899 GObjectClass *gobject_class;
1900 GDBusProxyClass *proxy_class;
1902 g_type_class_add_private (klass, sizeof (GSignondDbusRemotePluginProxyPrivate));
1904 gobject_class = G_OBJECT_CLASS (klass);
1905 gobject_class->finalize = gsignond_dbus_remote_plugin_proxy_finalize;
1906 gobject_class->get_property = gsignond_dbus_remote_plugin_proxy_get_property;
1907 gobject_class->set_property = gsignond_dbus_remote_plugin_proxy_set_property;
1909 proxy_class = G_DBUS_PROXY_CLASS (klass);
1910 proxy_class->g_signal = gsignond_dbus_remote_plugin_proxy_g_signal;
1911 proxy_class->g_properties_changed = gsignond_dbus_remote_plugin_proxy_g_properties_changed;
1916 gsignond_dbus_remote_plugin_proxy_iface_init (GSignondDbusRemotePluginIface *iface)
1921 * gsignond_dbus_remote_plugin_proxy_new:
1922 * @connection: A #GDBusConnection.
1923 * @flags: Flags from the #GDBusProxyFlags enumeration.
1924 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
1925 * @object_path: An object path.
1926 * @cancellable: (allow-none): A #GCancellable or %NULL.
1927 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
1928 * @user_data: User data to pass to @callback.
1930 * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin</link>. See g_dbus_proxy_new() for more details.
1932 * 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.
1933 * You can then call gsignond_dbus_remote_plugin_proxy_new_finish() to get the result of the operation.
1935 * See gsignond_dbus_remote_plugin_proxy_new_sync() for the synchronous, blocking version of this constructor.
1938 gsignond_dbus_remote_plugin_proxy_new (
1939 GDBusConnection *connection,
1940 GDBusProxyFlags flags,
1942 const gchar *object_path,
1943 GCancellable *cancellable,
1944 GAsyncReadyCallback callback,
1947 g_async_initable_new_async (GSIGNOND_DBUS_TYPE_REMOTE_PLUGIN_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", "com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin", NULL);
1951 * gsignond_dbus_remote_plugin_proxy_new_finish:
1952 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_remote_plugin_proxy_new().
1953 * @error: Return location for error or %NULL
1955 * Finishes an operation started with gsignond_dbus_remote_plugin_proxy_new().
1957 * Returns: (transfer full) (type GSignondDbusRemotePluginProxy): The constructed proxy object or %NULL if @error is set.
1959 GSignondDbusRemotePlugin *
1960 gsignond_dbus_remote_plugin_proxy_new_finish (
1965 GObject *source_object;
1966 source_object = g_async_result_get_source_object (res);
1967 ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
1968 g_object_unref (source_object);
1970 return GSIGNOND_DBUS_REMOTE_PLUGIN (ret);
1976 * gsignond_dbus_remote_plugin_proxy_new_sync:
1977 * @connection: A #GDBusConnection.
1978 * @flags: Flags from the #GDBusProxyFlags enumeration.
1979 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
1980 * @object_path: An object path.
1981 * @cancellable: (allow-none): A #GCancellable or %NULL.
1982 * @error: Return location for error or %NULL
1984 * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin</link>. See g_dbus_proxy_new_sync() for more details.
1986 * The calling thread is blocked until a reply is received.
1988 * See gsignond_dbus_remote_plugin_proxy_new() for the asynchronous version of this constructor.
1990 * Returns: (transfer full) (type GSignondDbusRemotePluginProxy): The constructed proxy object or %NULL if @error is set.
1992 GSignondDbusRemotePlugin *
1993 gsignond_dbus_remote_plugin_proxy_new_sync (
1994 GDBusConnection *connection,
1995 GDBusProxyFlags flags,
1997 const gchar *object_path,
1998 GCancellable *cancellable,
2002 ret = g_initable_new (GSIGNOND_DBUS_TYPE_REMOTE_PLUGIN_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin", NULL);
2004 return GSIGNOND_DBUS_REMOTE_PLUGIN (ret);
2011 * gsignond_dbus_remote_plugin_proxy_new_for_bus:
2012 * @bus_type: A #GBusType.
2013 * @flags: Flags from the #GDBusProxyFlags enumeration.
2014 * @name: A bus name (well-known or unique).
2015 * @object_path: An object path.
2016 * @cancellable: (allow-none): A #GCancellable or %NULL.
2017 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
2018 * @user_data: User data to pass to @callback.
2020 * Like gsignond_dbus_remote_plugin_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
2022 * 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.
2023 * You can then call gsignond_dbus_remote_plugin_proxy_new_for_bus_finish() to get the result of the operation.
2025 * See gsignond_dbus_remote_plugin_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
2028 gsignond_dbus_remote_plugin_proxy_new_for_bus (
2030 GDBusProxyFlags flags,
2032 const gchar *object_path,
2033 GCancellable *cancellable,
2034 GAsyncReadyCallback callback,
2037 g_async_initable_new_async (GSIGNOND_DBUS_TYPE_REMOTE_PLUGIN_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", "com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin", NULL);
2041 * gsignond_dbus_remote_plugin_proxy_new_for_bus_finish:
2042 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gsignond_dbus_remote_plugin_proxy_new_for_bus().
2043 * @error: Return location for error or %NULL
2045 * Finishes an operation started with gsignond_dbus_remote_plugin_proxy_new_for_bus().
2047 * Returns: (transfer full) (type GSignondDbusRemotePluginProxy): The constructed proxy object or %NULL if @error is set.
2049 GSignondDbusRemotePlugin *
2050 gsignond_dbus_remote_plugin_proxy_new_for_bus_finish (
2055 GObject *source_object;
2056 source_object = g_async_result_get_source_object (res);
2057 ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
2058 g_object_unref (source_object);
2060 return GSIGNOND_DBUS_REMOTE_PLUGIN (ret);
2066 * gsignond_dbus_remote_plugin_proxy_new_for_bus_sync:
2067 * @bus_type: A #GBusType.
2068 * @flags: Flags from the #GDBusProxyFlags enumeration.
2069 * @name: A bus name (well-known or unique).
2070 * @object_path: An object path.
2071 * @cancellable: (allow-none): A #GCancellable or %NULL.
2072 * @error: Return location for error or %NULL
2074 * Like gsignond_dbus_remote_plugin_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
2076 * The calling thread is blocked until a reply is received.
2078 * See gsignond_dbus_remote_plugin_proxy_new_for_bus() for the asynchronous version of this constructor.
2080 * Returns: (transfer full) (type GSignondDbusRemotePluginProxy): The constructed proxy object or %NULL if @error is set.
2082 GSignondDbusRemotePlugin *
2083 gsignond_dbus_remote_plugin_proxy_new_for_bus_sync (
2085 GDBusProxyFlags flags,
2087 const gchar *object_path,
2088 GCancellable *cancellable,
2092 ret = g_initable_new (GSIGNOND_DBUS_TYPE_REMOTE_PLUGIN_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin", NULL);
2094 return GSIGNOND_DBUS_REMOTE_PLUGIN (ret);
2100 /* ------------------------------------------------------------------------ */
2103 * GSignondDbusRemotePluginSkeleton:
2105 * The #GSignondDbusRemotePluginSkeleton structure contains only private data and should only be accessed using the provided API.
2109 * GSignondDbusRemotePluginSkeletonClass:
2110 * @parent_class: The parent class.
2112 * Class structure for #GSignondDbusRemotePluginSkeleton.
2115 struct _GSignondDbusRemotePluginSkeletonPrivate
2118 GList *changed_properties;
2119 GSource *changed_properties_idle_source;
2120 GMainContext *context;
2125 _gsignond_dbus_remote_plugin_skeleton_handle_method_call (
2126 GDBusConnection *connection,
2127 const gchar *sender,
2128 const gchar *object_path,
2129 const gchar *interface_name,
2130 const gchar *method_name,
2131 GVariant *parameters,
2132 GDBusMethodInvocation *invocation,
2135 GSignondDbusRemotePluginSkeleton *skeleton = GSIGNOND_DBUS_REMOTE_PLUGIN_SKELETON (user_data);
2136 _ExtendedGDBusMethodInfo *info;
2144 GValue return_value = G_VALUE_INIT;
2145 info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
2146 g_assert (info != NULL);
2147 num_params = g_variant_n_children (parameters);
2148 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
2150 g_value_init (¶mv[n], GSIGNOND_DBUS_TYPE_REMOTE_PLUGIN);
2151 g_value_set_object (¶mv[n++], skeleton);
2152 g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION);
2153 g_value_set_object (¶mv[n++], invocation);
2154 if (info->pass_fdlist)
2157 g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST);
2158 g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
2160 g_assert_not_reached ();
2163 g_variant_iter_init (&iter, parameters);
2164 while ((child = g_variant_iter_next_value (&iter)) != NULL)
2166 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
2167 if (arg_info->use_gvariant)
2169 g_value_init (¶mv[n], G_TYPE_VARIANT);
2170 g_value_set_variant (¶mv[n], child);
2174 g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
2175 g_variant_unref (child);
2177 signal_id = g_signal_lookup (info->signal_name, GSIGNOND_DBUS_TYPE_REMOTE_PLUGIN);
2178 g_value_init (&return_value, G_TYPE_BOOLEAN);
2179 g_signal_emitv (paramv, signal_id, 0, &return_value);
2180 if (!g_value_get_boolean (&return_value))
2181 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);
2182 g_value_unset (&return_value);
2183 for (n = 0; n < num_params + num_extra; n++)
2184 g_value_unset (¶mv[n]);
2189 _gsignond_dbus_remote_plugin_skeleton_handle_get_property (
2190 GDBusConnection *connection,
2191 const gchar *sender,
2192 const gchar *object_path,
2193 const gchar *interface_name,
2194 const gchar *property_name,
2198 GSignondDbusRemotePluginSkeleton *skeleton = GSIGNOND_DBUS_REMOTE_PLUGIN_SKELETON (user_data);
2199 GValue value = G_VALUE_INIT;
2201 _ExtendedGDBusPropertyInfo *info;
2204 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gsignond_dbus_remote_plugin_interface_info.parent_struct, property_name);
2205 g_assert (info != NULL);
2206 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2209 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2213 g_value_init (&value, pspec->value_type);
2214 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
2215 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
2216 g_value_unset (&value);
2222 _gsignond_dbus_remote_plugin_skeleton_handle_set_property (
2223 GDBusConnection *connection,
2224 const gchar *sender,
2225 const gchar *object_path,
2226 const gchar *interface_name,
2227 const gchar *property_name,
2232 GSignondDbusRemotePluginSkeleton *skeleton = GSIGNOND_DBUS_REMOTE_PLUGIN_SKELETON (user_data);
2233 GValue value = G_VALUE_INIT;
2235 _ExtendedGDBusPropertyInfo *info;
2238 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gsignond_dbus_remote_plugin_interface_info.parent_struct, property_name);
2239 g_assert (info != NULL);
2240 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2243 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2247 if (info->use_gvariant)
2248 g_value_set_variant (&value, variant);
2250 g_dbus_gvariant_to_gvalue (variant, &value);
2251 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
2252 g_value_unset (&value);
2258 static const GDBusInterfaceVTable _gsignond_dbus_remote_plugin_skeleton_vtable =
2260 _gsignond_dbus_remote_plugin_skeleton_handle_method_call,
2261 _gsignond_dbus_remote_plugin_skeleton_handle_get_property,
2262 _gsignond_dbus_remote_plugin_skeleton_handle_set_property
2265 static GDBusInterfaceInfo *
2266 gsignond_dbus_remote_plugin_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton)
2268 return gsignond_dbus_remote_plugin_interface_info ();
2271 static GDBusInterfaceVTable *
2272 gsignond_dbus_remote_plugin_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton)
2274 return (GDBusInterfaceVTable *) &_gsignond_dbus_remote_plugin_skeleton_vtable;
2278 gsignond_dbus_remote_plugin_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
2280 GSignondDbusRemotePluginSkeleton *skeleton = GSIGNOND_DBUS_REMOTE_PLUGIN_SKELETON (_skeleton);
2282 GVariantBuilder builder;
2284 g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
2285 if (_gsignond_dbus_remote_plugin_interface_info.parent_struct.properties == NULL)
2287 for (n = 0; _gsignond_dbus_remote_plugin_interface_info.parent_struct.properties[n] != NULL; n++)
2289 GDBusPropertyInfo *info = _gsignond_dbus_remote_plugin_interface_info.parent_struct.properties[n];
2290 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
2293 value = _gsignond_dbus_remote_plugin_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)), "com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin", info->name, NULL, skeleton);
2296 g_variant_take_ref (value);
2297 g_variant_builder_add (&builder, "{sv}", info->name, value);
2298 g_variant_unref (value);
2303 return g_variant_builder_end (&builder);
2307 gsignond_dbus_remote_plugin_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
2312 _gsignond_dbus_remote_plugin_on_signal_response (
2313 GSignondDbusRemotePlugin *object,
2314 GVariant *arg_sessionData)
2316 GSignondDbusRemotePluginSkeleton *skeleton = GSIGNOND_DBUS_REMOTE_PLUGIN_SKELETON (object);
2318 GList *connections, *l;
2319 GVariant *signal_variant;
2320 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2322 signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})",
2324 for (l = connections; l != NULL; l = l->next)
2326 GDBusConnection *connection = l->data;
2327 g_dbus_connection_emit_signal (connection,
2328 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin", "response",
2329 signal_variant, NULL);
2331 g_variant_unref (signal_variant);
2332 g_list_free_full (connections, g_object_unref);
2336 _gsignond_dbus_remote_plugin_on_signal_response_final (
2337 GSignondDbusRemotePlugin *object,
2338 GVariant *arg_sessionData)
2340 GSignondDbusRemotePluginSkeleton *skeleton = GSIGNOND_DBUS_REMOTE_PLUGIN_SKELETON (object);
2342 GList *connections, *l;
2343 GVariant *signal_variant;
2344 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2346 signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})",
2348 for (l = connections; l != NULL; l = l->next)
2350 GDBusConnection *connection = l->data;
2351 g_dbus_connection_emit_signal (connection,
2352 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin", "responseFinal",
2353 signal_variant, NULL);
2355 g_variant_unref (signal_variant);
2356 g_list_free_full (connections, g_object_unref);
2360 _gsignond_dbus_remote_plugin_on_signal_store (
2361 GSignondDbusRemotePlugin *object,
2362 GVariant *arg_sessionData)
2364 GSignondDbusRemotePluginSkeleton *skeleton = GSIGNOND_DBUS_REMOTE_PLUGIN_SKELETON (object);
2366 GList *connections, *l;
2367 GVariant *signal_variant;
2368 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2370 signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})",
2372 for (l = connections; l != NULL; l = l->next)
2374 GDBusConnection *connection = l->data;
2375 g_dbus_connection_emit_signal (connection,
2376 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin", "store",
2377 signal_variant, NULL);
2379 g_variant_unref (signal_variant);
2380 g_list_free_full (connections, g_object_unref);
2384 _gsignond_dbus_remote_plugin_on_signal_error (
2385 GSignondDbusRemotePlugin *object,
2386 GVariant *arg_error)
2388 GSignondDbusRemotePluginSkeleton *skeleton = GSIGNOND_DBUS_REMOTE_PLUGIN_SKELETON (object);
2390 GList *connections, *l;
2391 GVariant *signal_variant;
2392 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2394 signal_variant = g_variant_ref_sink (g_variant_new ("(@(uis))",
2396 for (l = connections; l != NULL; l = l->next)
2398 GDBusConnection *connection = l->data;
2399 g_dbus_connection_emit_signal (connection,
2400 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin", "error",
2401 signal_variant, NULL);
2403 g_variant_unref (signal_variant);
2404 g_list_free_full (connections, g_object_unref);
2408 _gsignond_dbus_remote_plugin_on_signal_user_action_required (
2409 GSignondDbusRemotePlugin *object,
2410 GVariant *arg_uiData)
2412 GSignondDbusRemotePluginSkeleton *skeleton = GSIGNOND_DBUS_REMOTE_PLUGIN_SKELETON (object);
2414 GList *connections, *l;
2415 GVariant *signal_variant;
2416 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2418 signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})",
2420 for (l = connections; l != NULL; l = l->next)
2422 GDBusConnection *connection = l->data;
2423 g_dbus_connection_emit_signal (connection,
2424 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin", "userActionRequired",
2425 signal_variant, NULL);
2427 g_variant_unref (signal_variant);
2428 g_list_free_full (connections, g_object_unref);
2432 _gsignond_dbus_remote_plugin_on_signal_refreshed (
2433 GSignondDbusRemotePlugin *object,
2434 GVariant *arg_uiData)
2436 GSignondDbusRemotePluginSkeleton *skeleton = GSIGNOND_DBUS_REMOTE_PLUGIN_SKELETON (object);
2438 GList *connections, *l;
2439 GVariant *signal_variant;
2440 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2442 signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})",
2444 for (l = connections; l != NULL; l = l->next)
2446 GDBusConnection *connection = l->data;
2447 g_dbus_connection_emit_signal (connection,
2448 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin", "refreshed",
2449 signal_variant, NULL);
2451 g_variant_unref (signal_variant);
2452 g_list_free_full (connections, g_object_unref);
2456 _gsignond_dbus_remote_plugin_on_signal_status_changed (
2457 GSignondDbusRemotePlugin *object,
2459 const gchar *arg_message)
2461 GSignondDbusRemotePluginSkeleton *skeleton = GSIGNOND_DBUS_REMOTE_PLUGIN_SKELETON (object);
2463 GList *connections, *l;
2464 GVariant *signal_variant;
2465 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2467 signal_variant = g_variant_ref_sink (g_variant_new ("(is)",
2470 for (l = connections; l != NULL; l = l->next)
2472 GDBusConnection *connection = l->data;
2473 g_dbus_connection_emit_signal (connection,
2474 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin", "statusChanged",
2475 signal_variant, NULL);
2477 g_variant_unref (signal_variant);
2478 g_list_free_full (connections, g_object_unref);
2481 static void gsignond_dbus_remote_plugin_skeleton_iface_init (GSignondDbusRemotePluginIface *iface);
2482 G_DEFINE_TYPE_WITH_CODE (GSignondDbusRemotePluginSkeleton, gsignond_dbus_remote_plugin_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
2483 G_IMPLEMENT_INTERFACE (GSIGNOND_DBUS_TYPE_REMOTE_PLUGIN, gsignond_dbus_remote_plugin_skeleton_iface_init));
2486 gsignond_dbus_remote_plugin_skeleton_finalize (GObject *object)
2488 GSignondDbusRemotePluginSkeleton *skeleton = GSIGNOND_DBUS_REMOTE_PLUGIN_SKELETON (object);
2489 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
2490 if (skeleton->priv->changed_properties_idle_source != NULL)
2491 g_source_destroy (skeleton->priv->changed_properties_idle_source);
2492 g_main_context_unref (skeleton->priv->context);
2493 g_mutex_clear (&skeleton->priv->lock);
2494 G_OBJECT_CLASS (gsignond_dbus_remote_plugin_skeleton_parent_class)->finalize (object);
2498 gsignond_dbus_remote_plugin_skeleton_init (GSignondDbusRemotePluginSkeleton *skeleton)
2500 skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, GSIGNOND_DBUS_TYPE_REMOTE_PLUGIN_SKELETON, GSignondDbusRemotePluginSkeletonPrivate);
2501 g_mutex_init (&skeleton->priv->lock);
2502 skeleton->priv->context = g_main_context_ref_thread_default ();
2506 gsignond_dbus_remote_plugin_skeleton_class_init (GSignondDbusRemotePluginSkeletonClass *klass)
2508 GObjectClass *gobject_class;
2509 GDBusInterfaceSkeletonClass *skeleton_class;
2511 g_type_class_add_private (klass, sizeof (GSignondDbusRemotePluginSkeletonPrivate));
2513 gobject_class = G_OBJECT_CLASS (klass);
2514 gobject_class->finalize = gsignond_dbus_remote_plugin_skeleton_finalize;
2516 skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
2517 skeleton_class->get_info = gsignond_dbus_remote_plugin_skeleton_dbus_interface_get_info;
2518 skeleton_class->get_properties = gsignond_dbus_remote_plugin_skeleton_dbus_interface_get_properties;
2519 skeleton_class->flush = gsignond_dbus_remote_plugin_skeleton_dbus_interface_flush;
2520 skeleton_class->get_vtable = gsignond_dbus_remote_plugin_skeleton_dbus_interface_get_vtable;
2524 gsignond_dbus_remote_plugin_skeleton_iface_init (GSignondDbusRemotePluginIface *iface)
2526 iface->response = _gsignond_dbus_remote_plugin_on_signal_response;
2527 iface->response_final = _gsignond_dbus_remote_plugin_on_signal_response_final;
2528 iface->store = _gsignond_dbus_remote_plugin_on_signal_store;
2529 iface->error = _gsignond_dbus_remote_plugin_on_signal_error;
2530 iface->user_action_required = _gsignond_dbus_remote_plugin_on_signal_user_action_required;
2531 iface->refreshed = _gsignond_dbus_remote_plugin_on_signal_refreshed;
2532 iface->status_changed = _gsignond_dbus_remote_plugin_on_signal_status_changed;
2536 * gsignond_dbus_remote_plugin_skeleton_new:
2538 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-com-google-code-AccountsSSO-gSingleSignOn-RemotePlugin.top_of_page">com.google.code.AccountsSSO.gSingleSignOn.RemotePlugin</link>.
2540 * Returns: (transfer full) (type GSignondDbusRemotePluginSkeleton): The skeleton object.
2542 GSignondDbusRemotePlugin *
2543 gsignond_dbus_remote_plugin_skeleton_new (void)
2545 return GSIGNOND_DBUS_REMOTE_PLUGIN (g_object_new (GSIGNOND_DBUS_TYPE_REMOTE_PLUGIN_SKELETON, NULL));