From 48540940b6c28bb4378abfeb500ec45a625b37b6 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 15 May 2012 10:38:20 +0000 Subject: initial commit git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Yahoo/file_transfer.h | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 protocols/Yahoo/file_transfer.h (limited to 'protocols/Yahoo/file_transfer.h') diff --git a/protocols/Yahoo/file_transfer.h b/protocols/Yahoo/file_transfer.h new file mode 100644 index 0000000000..f33d7cd046 --- /dev/null +++ b/protocols/Yahoo/file_transfer.h @@ -0,0 +1,50 @@ +/* + * $Id: file_transfer.h 11130 2010-01-13 22:49:25Z gena01@gmail.com $ + * + * myYahoo Miranda Plugin + * + * Authors: Gennady Feldman (aka Gena01) + * Laurent Marechal (aka Peorth) + * + * This code is under GPL and is based on AIM, MSN and Miranda source code. + * I want to thank Robert Rainwater and George Hazan for their code and support + * and for answering some of my questions during development of this plugin. + */ +#ifndef _YAHOO_FILE_TRANSFER_H_ +#define _YAHOO_FILE_TRANSFER_H_ + +#define FILERESUME_CANCEL 11 + +typedef struct { + CYahooProto* ppro; + int id; + char *who; + char *msg; + char *ftoken; + char *relay; + HANDLE hContact; + int cancel; + char *url; + HANDLE hWaitEvent; + DWORD action; + int y7; + YList *files; + PROTOFILETRANSFERSTATUS pfts; +} y_filetransfer; + +/* libyahoo2 callback(s) */ +void ext_yahoo_got_file(int id, const char *me, const char *who, const char *url, long expires, const char *msg, const char *fname, unsigned long fesize, const char *ft_token, int y7); +void ext_yahoo_got_files(int id, const char *me, const char *who, const char *ft_token, int y7, YList *files); +void ext_yahoo_got_file7info(int id, const char *me, const char *who, const char *url, const char *fname, const char *ft_token); +void ext_yahoo_send_file7info(int id, const char *me, const char *who, const char *ft_token); +void ext_yahoo_ft7_send_file(int id, const char *me, const char *who, const char *filename, const char *token, const char *ft_token); + +/* service functions */ +int YahooFileAllow(WPARAM wParam,LPARAM lParam); +int YahooFileDeny(WPARAM wParam, LPARAM lParam); +int YahooFileResume(WPARAM wParam, LPARAM lParam); +int YahooFileCancel(WPARAM wParam, LPARAM lParam); +int YahooSendFile(WPARAM wParam, LPARAM lParam); +int YahooRecvFile(WPARAM wParam, LPARAM lParam); + +#endif -- cgit v1.2.3