doc/reference/libpurple/signals_xfer.md

Mon, 04 Apr 2022 23:56:44 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Mon, 04 Apr 2022 23:56:44 -0500
changeset 41321
97b0dbc1873f
parent 41164
d861b10105fb
permissions
-rw-r--r--

Remove PidginContactCompletion for now as it's barely used and not GTK4 compatible.

I created PIDGIN-17606 to reimplement this in a better way and to use it in the
new instant message dialog as well as the invite to chat dialog.

Testing Done:
Compiled and ran.

Reviewed at https://reviews.imfreedom.org/r/1378/

Title: File Transfer Signals
Slug: file-transfer-signals

## File Transfer Signals

### Signal List

* [file-recv-request](#file-recv-request)

### Signal Detail

#### file-recv-request

```c
void user_function(PurpleXfer *xfer, gpointer data);
```

Emitted before the user is prompted for an incoming file-transfer. Plugins can intercept the signal to auto-accept/auto-reject the requests. To auto-accept the file transfer, use purple_xfer_request_accepted(). To auto-reject, set the status of the xfer to PURPLE_XFER_STATUS_CANCEL_LOCAL.

**Parameters:**

**xfer**
: The file transfer.

**data**
: User data.

mercurial