diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-10 20:34:21 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-10 20:34:21 +0000 |
commit | 7da04e3412a8e4837f3323fe6bdff95a598b3569 (patch) | |
tree | 4f64627f63b94107e0a607611ba9869406ed5f4c /protocols/Yahoo/src/file_transfer.cpp | |
parent | b9cc87ed7878aa5613ac1587a9dfbfb31a312de1 (diff) |
protocol DB helpers for YAHOO
git-svn-id: http://svn.miranda-ng.org/main/trunk@5323 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Yahoo/src/file_transfer.cpp')
-rw-r--r-- | protocols/Yahoo/src/file_transfer.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/protocols/Yahoo/src/file_transfer.cpp b/protocols/Yahoo/src/file_transfer.cpp index 6e463ff6af..4c74801976 100644 --- a/protocols/Yahoo/src/file_transfer.cpp +++ b/protocols/Yahoo/src/file_transfer.cpp @@ -44,7 +44,7 @@ static y_filetransfer* new_ft(CYahooProto* ppro, int id, HANDLE hContact, const ft->cancel = 0;
ft->y7 = y7;
- ft->hWaitEvent = CreateEvent( NULL, FALSE, FALSE, NULL);
+ ft->hWaitEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
ft->pfts.cbSize = sizeof(PROTOFILETRANSFERSTATUS);
ft->pfts.hContact = hContact;
@@ -177,11 +177,7 @@ static void upload_file(int id, int fd, int error, void *data) LOG(("proto: %s, hContact: %p", sf->ppro->m_szModuleName, sf->hContact));
LOG(("Sending file: %s", fi->filename));
- //ProtoBroadcastAck(sf->hContact, ACKTYPE_FILE, ACKRESULT_CONNECTING, sf, 0);
- //ProtoBroadcastAck(sf->hContact, ACKTYPE_FILE, ACKRESULT_NEXTFILE, sf, 0);
ProtoBroadcastAck(sf->ppro->m_szModuleName, sf->hContact, ACKTYPE_FILE, ACKRESULT_CONNECTED, sf, 0);
- //ProtoBroadcastAck(sf->hContact, ACKTYPE_FILE, ACKRESULT_SENTREQUEST, sf, 0);
- //ProtoBroadcastAck(sf->hContact, ACKTYPE_FILE, ACKRESULT_INITIALISING, sf, 0);
do {
ReadFile(myhFile, buf, sizeof(buf), &dw, NULL);
@@ -713,16 +709,6 @@ HANDLE __cdecl CYahooProto::SendFile( HANDLE hContact, const PROTOCHAR* szDescri if ( !m_bLoggedIn )
return 0;
- /*DebugLog("Getting Files");
-
- if ( ppszFiles[1] != NULL) {
- MessageBoxA(NULL, "YAHOO protocol allows only one file to be sent at a time", "Yahoo", MB_OK | MB_ICONINFORMATION);
- return 0;
- }
-
- DebugLog("Getting Yahoo ID");
- */
-
if (!getString(hContact, YAHOO_LOGINID, &dbv)) {
long tFileSize = 0;
struct _stat statbuf;
|