summaryrefslogtreecommitdiff
path: root/protocols/Yahoo/src/file_transfer.h
blob: b57a56867d438300c9d35b65f56aad579fd7f9eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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;
	MCONTACT 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