4 * Purple is the legal property of its developers, whose names are too numerous
5 * to list here. Please refer to the COPYRIGHT file distributed with this
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.
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.
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
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
22 #ifndef _YAHOO_FILEXFER_H_
23 #define _YAHOO_FILEXFER_H_
28 * Process ymsg events, particular IMViroments like Doodle
30 void yahoo_process_p2pfilexfer( PurpleConnection
*gc
, struct yahoo_packet
*pkt
);
33 * Create a new PurpleXfer
35 * @param gc The PurpleConnection handle.
36 * @param who Who will we be sending it to?
38 PurpleXfer
*yahoo_new_xfer(PurpleConnection
*gc
, const char *who
);
41 * Returns TRUE if the buddy can receive file, FALSE otherwise.
43 * @param gc The connection
44 * @param who The name of the remote user
46 * @return TRUE or FALSE
48 gboolean
yahoo_can_receive_file(PurpleConnection
*gc
, const char *who
);
53 * @param gc The PurpleConnection handle.
54 * @param who Who are we sending it to?
55 * @param file What file? If NULL, user will choose after this call.
57 void yahoo_send_file(PurpleConnection
*gc
, const char *who
, const char *file
);
59 void yahoo_process_filetrans_15(PurpleConnection
*gc
, struct yahoo_packet
*pkt
);
60 void yahoo_process_filetrans_info_15(PurpleConnection
*gc
, struct yahoo_packet
*pkt
);
61 void yahoo_process_filetrans_acc_15(PurpleConnection
*gc
, struct yahoo_packet
*pkt
);