Virtual Method
PurpleProtocolcan_connect_async
unstable since: 3.0
Declaration [src]
void
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
Parameters
account-
Type:
PurpleAccountThe
PurpleAccountinstance.The data is owned by the caller of the method. cancellable-
Type:
GCancellableThe
GCancellableinstance.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackThe
GAsyncReadyCallbackto call. data-
Type:
gpointerUser data to pass to
callback.The argument can be NULL.The data is owned by the caller of the method.