Thu, 05 Sep 2013 21:59:11 +0530
Replacements for the GObject Xfer API
| 7651 | 1 | /* |
| 15884 | 2 | * purple |
| 7651 | 3 | * |
| 15884 | 4 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 5 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 6 | * source distribution. | |
| 7651 | 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify | |
| 9 | * it under the terms of the GNU General Public License as published by | |
| 10 | * the Free Software Foundation; either version 2 of the License, or | |
| 11 | * (at your option) any later version. | |
| 12 | * | |
| 13 | * This program is distributed in the hope that it will be useful, | |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 16 | * GNU General Public License for more details. | |
| 17 | * | |
| 18 | * You should have received a copy of the GNU General Public License | |
| 19 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
15884
diff
changeset
|
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 7651 | 21 | */ |
|
12396
09d38f9eb05c
[gaim-migrate @ 14703]
Richard Laager <rlaager@pidgin.im>
parents:
12151
diff
changeset
|
22 | #ifndef _YAHOO_FILEXFER_H_ |
|
09d38f9eb05c
[gaim-migrate @ 14703]
Richard Laager <rlaager@pidgin.im>
parents:
12151
diff
changeset
|
23 | #define _YAHOO_FILEXFER_H_ |
| 7651 | 24 | |
|
34910
60502558e400
Replacements for the GObject Xfer API
Ankit Vani <a@nevitus.org>
parents:
34286
diff
changeset
|
25 | #include "xfer.h" |
|
12151
8002bb57756b
[gaim-migrate @ 14452]
Richard Laager <rlaager@pidgin.im>
parents:
12143
diff
changeset
|
26 | |
| 7651 | 27 | /** |
|
11475
1e222e6e52a0
[gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
9466
diff
changeset
|
28 | * Process ymsg events, particular IMViroments like Doodle |
|
1e222e6e52a0
[gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
9466
diff
changeset
|
29 | */ |
| 15884 | 30 | void yahoo_process_p2pfilexfer( PurpleConnection *gc, struct yahoo_packet *pkt ); |
|
11475
1e222e6e52a0
[gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
9466
diff
changeset
|
31 | |
|
1e222e6e52a0
[gaim-migrate @ 13717]
Gary Kramlich <grim@reaperworld.com>
parents:
9466
diff
changeset
|
32 | /** |
| 15884 | 33 | * Create a new PurpleXfer |
|
12143
09f216663302
[gaim-migrate @ 14444]
Evan Schoenberg <evands@pidgin.im>
parents:
11475
diff
changeset
|
34 | * |
| 15884 | 35 | * @param gc The PurpleConnection handle. |
|
12143
09f216663302
[gaim-migrate @ 14444]
Evan Schoenberg <evands@pidgin.im>
parents:
11475
diff
changeset
|
36 | * @param who Who will we be sending it to? |
|
09f216663302
[gaim-migrate @ 14444]
Evan Schoenberg <evands@pidgin.im>
parents:
11475
diff
changeset
|
37 | */ |
| 15884 | 38 | PurpleXfer *yahoo_new_xfer(PurpleConnection *gc, const char *who); |
|
12143
09f216663302
[gaim-migrate @ 14444]
Evan Schoenberg <evands@pidgin.im>
parents:
11475
diff
changeset
|
39 | |
|
09f216663302
[gaim-migrate @ 14444]
Evan Schoenberg <evands@pidgin.im>
parents:
11475
diff
changeset
|
40 | /** |
|
28786
a0366821d1e4
Cannot send a file to a federated user on yahoo.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22202
diff
changeset
|
41 | * Returns TRUE if the buddy can receive file, FALSE otherwise. |
|
a0366821d1e4
Cannot send a file to a federated user on yahoo.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22202
diff
changeset
|
42 | * Federated users cannot receive files. So this will return FALSE only |
|
a0366821d1e4
Cannot send a file to a federated user on yahoo.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22202
diff
changeset
|
43 | * for them. |
|
a0366821d1e4
Cannot send a file to a federated user on yahoo.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22202
diff
changeset
|
44 | * |
|
a0366821d1e4
Cannot send a file to a federated user on yahoo.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22202
diff
changeset
|
45 | * @param gc The connection |
|
a0366821d1e4
Cannot send a file to a federated user on yahoo.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22202
diff
changeset
|
46 | * @param who The name of the remote user |
|
a0366821d1e4
Cannot send a file to a federated user on yahoo.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22202
diff
changeset
|
47 | * |
|
a0366821d1e4
Cannot send a file to a federated user on yahoo.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22202
diff
changeset
|
48 | * @return TRUE or FALSE |
|
a0366821d1e4
Cannot send a file to a federated user on yahoo.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22202
diff
changeset
|
49 | */ |
|
a0366821d1e4
Cannot send a file to a federated user on yahoo.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22202
diff
changeset
|
50 | gboolean yahoo_can_receive_file(PurpleConnection *gc, const char *who); |
|
a0366821d1e4
Cannot send a file to a federated user on yahoo.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22202
diff
changeset
|
51 | |
|
a0366821d1e4
Cannot send a file to a federated user on yahoo.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22202
diff
changeset
|
52 | /** |
| 7651 | 53 | * Send a file. |
| 54 | * | |
| 15884 | 55 | * @param gc The PurpleConnection handle. |
| 7651 | 56 | * @param who Who are we sending it to? |
|
9466
b6425eab60ca
[gaim-migrate @ 10291]
Daniel Atallah <datallah@pidgin.im>
parents:
8046
diff
changeset
|
57 | * @param file What file? If NULL, user will choose after this call. |
| 7651 | 58 | */ |
| 15884 | 59 | void yahoo_send_file(PurpleConnection *gc, const char *who, const char *file); |
|
12396
09d38f9eb05c
[gaim-migrate @ 14703]
Richard Laager <rlaager@pidgin.im>
parents:
12151
diff
changeset
|
60 | |
|
22202
e42ab2e3eba1
This patch from Thanumalayan S. implements Yahoo protocol version 15 file
Thanumalayan Sankaranarayanan <madthanu@gmail.com>
parents:
22201
diff
changeset
|
61 | void yahoo_process_filetrans_15(PurpleConnection *gc, struct yahoo_packet *pkt); |
|
e42ab2e3eba1
This patch from Thanumalayan S. implements Yahoo protocol version 15 file
Thanumalayan Sankaranarayanan <madthanu@gmail.com>
parents:
22201
diff
changeset
|
62 | void yahoo_process_filetrans_info_15(PurpleConnection *gc, struct yahoo_packet *pkt); |
|
e42ab2e3eba1
This patch from Thanumalayan S. implements Yahoo protocol version 15 file
Thanumalayan Sankaranarayanan <madthanu@gmail.com>
parents:
22201
diff
changeset
|
63 | void yahoo_process_filetrans_acc_15(PurpleConnection *gc, struct yahoo_packet *pkt); |
|
e42ab2e3eba1
This patch from Thanumalayan S. implements Yahoo protocol version 15 file
Thanumalayan Sankaranarayanan <madthanu@gmail.com>
parents:
22201
diff
changeset
|
64 | |
|
12396
09d38f9eb05c
[gaim-migrate @ 14703]
Richard Laager <rlaager@pidgin.im>
parents:
12151
diff
changeset
|
65 | #endif |