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:
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. data
-
Type:
gpointer
User data to pass to
callback
.The argument can be NULL
.The data is owned by the caller of the method.