Method

PurpleProtocolcan_connect_async

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

Parameters

account

Type: PurpleAccount

The PurpleAccount instance.

The data is owned by the caller of the function.
cancellable

Type: GCancellable

The GCancellable instance.

The argument can be NULL.
The data is owned by the caller of the function.
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 function.