mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-18 16:31:44 +03:00
Added file transmission started, failed and complete notification #4745
This commit is contained in:
parent
5006adedfe
commit
e7f358afb2
@ -69,7 +69,8 @@ class MainWindow : public QMainWindow, public Ui::MainWindowBase
|
||||
{
|
||||
synergyDisconnected,
|
||||
synergyConnecting,
|
||||
synergyConnected
|
||||
synergyConnected,
|
||||
synergyTransfering
|
||||
};
|
||||
|
||||
enum qSynergyType
|
||||
|
@ -866,7 +866,6 @@ ServerProxy::fileChunkReceived()
|
||||
}
|
||||
else if (result == kStart) {
|
||||
String filename = m_client->getDragFileList().at(0).getFilename();
|
||||
LOG((CLOG_INFO "receiving file: %s", filename.c_str()));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -37,12 +37,13 @@ DropHelper::writeToDir(const String& destination, DragFileList& fileList, String
|
||||
dropTarget.append(fileList.at(0).getFilename());
|
||||
file.open(dropTarget.c_str(), std::ios::out | std::ios::binary);
|
||||
if (!file.is_open()) {
|
||||
LOG((CLOG_DEBUG "drop file failed: can not open %s", dropTarget.c_str()));
|
||||
LOG((CLOG_ERR "drop file failed: can not open %s", dropTarget.c_str()));
|
||||
}
|
||||
|
||||
file.write(data.c_str(), data.size());
|
||||
file.close();
|
||||
|
||||
|
||||
fileList.clear();
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user