Frameworks/libpurple.framework/Versions/0.6.2/Headers/yahoo_filexfer.h
author Zachary West <zacw@adium.im>
Fri Aug 21 13:25:11 2009 -0700 (2009-08-21)
changeset 2592 e8d15275025e
parent 1739 Frameworks/libpurple.framework/Versions/0.6.0/Headers/yahoo_filexfer.h@8b0daad9656c
permissions -rw-r--r--
im.pidgin.adium.1-4 at 267c6165e02e34318a1823960bd04c0639952f73
     1 /*
     2  * purple
     3  *
     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
     6  * source distribution.
     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
    20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
    21  */
    22 #ifndef _YAHOO_FILEXFER_H_
    23 #define _YAHOO_FILEXFER_H_
    24 
    25 #include "ft.h"
    26 
    27 /**
    28  * Process ymsg events, particular IMViroments like Doodle
    29  */
    30 void yahoo_process_p2pfilexfer( PurpleConnection *gc, struct yahoo_packet *pkt );
    31 
    32 /**
    33  * Process ymsg file receive invites.
    34  */
    35 void yahoo_process_filetransfer(PurpleConnection *gc, struct yahoo_packet *pkt);
    36 
    37 /**
    38  * Create a new PurpleXfer
    39  *
    40  * @param gc The PurpleConnection handle.
    41  * @param who Who will we be sending it to?
    42  */
    43 PurpleXfer *yahoo_new_xfer(PurpleConnection *gc, const char *who);
    44 
    45 /**
    46  * Send a file.
    47  *
    48  * @param gc The PurpleConnection handle.
    49  * @param who Who are we sending it to?
    50  * @param file What file? If NULL, user will choose after this call.
    51  */
    52 void yahoo_send_file(PurpleConnection *gc, const char *who, const char *file);
    53 
    54 void yahoo_process_filetrans_15(PurpleConnection *gc, struct yahoo_packet *pkt);
    55 void yahoo_process_filetrans_info_15(PurpleConnection *gc, struct yahoo_packet *pkt);
    56 void yahoo_process_filetrans_acc_15(PurpleConnection *gc, struct yahoo_packet *pkt);
    57 
    58 #endif