Added fake drag file list #4584
This commit is contained in:
parent
4508e10186
commit
d9684d44d2
|
@ -84,7 +84,7 @@ ClientProxy1_5::fileChunkReceived()
|
||||||
m_events->addEvent(Event(m_events->forIScreen().fileRecieveCompleted(), server));
|
m_events->addEvent(Event(m_events->forIScreen().fileRecieveCompleted(), server));
|
||||||
}
|
}
|
||||||
else if (result == kStart) {
|
else if (result == kStart) {
|
||||||
String filename = server->getDragFileList().at(0).getFilename();
|
String filename = server->getFakeDragFileList().at(0).getFilename();
|
||||||
LOG((CLOG_NOTIFY "File Transmission Started: Start receiving %s.", filename.c_str()));
|
LOG((CLOG_NOTIFY "File Transmission Started: Start receiving %s.", filename.c_str()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2070,7 +2070,7 @@ Server::writeToDropDirThread(void*)
|
||||||
ARCH->sleep(.1f);
|
ARCH->sleep(.1f);
|
||||||
}
|
}
|
||||||
|
|
||||||
DropHelper::writeToDir(m_screen->getDropTarget(), m_dragFileList,
|
DropHelper::writeToDir(m_screen->getDropTarget(), m_fakeDragFileList,
|
||||||
m_receivedFileData);
|
m_receivedFileData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2387,7 +2387,7 @@ Server::dragInfoReceived(UInt32 fileNum, String content)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
DragInformation::parseDragInfo(m_dragFileList, fileNum, content);
|
DragInformation::parseDragInfo(m_fakeDragFileList, fileNum, content);
|
||||||
|
|
||||||
m_screen->startDraggingFiles(m_dragFileList);
|
m_screen->startDraggingFiles(m_fakeDragFileList);
|
||||||
}
|
}
|
||||||
|
|
|
@ -175,8 +175,8 @@ public:
|
||||||
//! Return received file data
|
//! Return received file data
|
||||||
String& getReceivedFileData() { return m_receivedFileData; }
|
String& getReceivedFileData() { return m_receivedFileData; }
|
||||||
|
|
||||||
//! Return drag file list
|
//! Return fake drag file list
|
||||||
DragFileList getDragFileList() { return m_dragFileList; }
|
DragFileList getFakeDragFileList() { return m_fakeDragFileList; }
|
||||||
|
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
|
@ -470,6 +470,7 @@ private:
|
||||||
size_t m_expectedFileSize;
|
size_t m_expectedFileSize;
|
||||||
String m_receivedFileData;
|
String m_receivedFileData;
|
||||||
DragFileList m_dragFileList;
|
DragFileList m_dragFileList;
|
||||||
|
DragFileList m_fakeDragFileList;
|
||||||
Thread* m_sendFileThread;
|
Thread* m_sendFileThread;
|
||||||
Thread* m_writeToDropDirThread;
|
Thread* m_writeToDropDirThread;
|
||||||
String m_dragFileExt;
|
String m_dragFileExt;
|
||||||
|
|
Loading…
Reference in New Issue