Interface
GoaOAuth2Based
Description [src]
interface Goa.OAuth2Based : GObject.Object
Abstract interface type for the D-Bus interface org.gnome.OnlineAccounts.OAuth2Based.
Prerequisite
In order to implement OAuth2Based, your type must inherit fromGObject
.
Functions
goa_oauth2_based_interface_info
Gets a machine-readable description of the org.gnome.OnlineAccounts.OAuth2Based D-Bus interface.
goa_oauth2_based_override_properties
Overrides all GObject
properties in the GoaOAuth2Based
interface for a concrete class.
The properties are overridden in the order they are defined.
Instance methods
goa_oauth2_based_call_get_access_token
Asynchronously invokes the GetAccessToken() D-Bus method on proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
You can then call goa_oauth2_based_call_get_access_token_finish()
to get the result of the operation.
goa_oauth2_based_call_get_access_token_finish
Finishes an operation started with goa_oauth2_based_call_get_access_token().
goa_oauth2_based_call_get_access_token_sync
Synchronously invokes the GetAccessToken() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
goa_oauth2_based_complete_get_access_token
Helper function used in service implementations to finish handling invocations of the GetAccessToken() 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.
Signals
Goa.OAuth2Based::handle-get-access-token
Signal emitted when a remote caller is invoking the GetAccessToken() D-Bus method.
Interface structure
struct GoaOAuth2BasedIface {
GTypeInterface parent_iface;
gboolean (* handle_get_access_token) (
GoaOAuth2Based* object,
GDBusMethodInvocation* invocation
);
const gchar* (* get_client_id) (
GoaOAuth2Based* object
);
const gchar* (* get_client_secret) (
GoaOAuth2Based* object
);
}
Virtual table for the D-Bus interface org.gnome.OnlineAccounts.OAuth2Based.
Interface members
parent_iface |
|
The parent interface. |
|
handle_get_access_token |
|
Handler for the |
|
get_client_id |
|
Getter for the |
|
get_client_secret |
|
Getter for the |
Virtual methods
Goa.OAuth2Based.handle_get_access_token
Handler for the GoaOAuth2Based::handle-get-access-token
signal.