Method
PurpleProtocolcan_connect_async
unstable since: 3.0
Declaration [src]
void
purple_protocol_can_connect_async (
PurpleProtocol* protocol,
PurpleAccount* account,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer data
)
Description [src]
Asks protocol
if it can determine if account
can be connected.
Most protocol plugins will call g_network_monitor_can_reach_async()
to determine if a connection is possible.
If Purple.ProtocolClass.can_connect_async
is not implemented, this function will
create a GTask
that returns TRUE
.
Available since: 3.0
This method completes asynchronously. Use purple_protocol_can_connect_finish()
inside the GAsyncReadyCallback
to obtain the result of the operation.
Parameters
account
-
Type:
PurpleAccount
The
PurpleAccount
instance.The data is owned by the caller of the method. cancellable
-
Type:
GCancellable
The
GCancellable
instance.The argument can be NULL
.The data is owned by the caller of the method. callback
-
Type:
GAsyncReadyCallback
The
GAsyncReadyCallback
to call.The argument can be NULL
. data
-
Type:
gpointer
User data to pass to
callback
.The argument can be NULL
.The data is owned by the caller of the method.