From bfe616eebe6673cff4a951a49e123b1a2e268b2e Mon Sep 17 00:00:00 2001 From: "Jerry (Xinyu Hou)" Date: Mon, 1 Jun 2015 16:00:35 -0700 Subject: [PATCH] Added file transmission started notification for server #4745 --- src/lib/server/ClientProxy1_5.cpp | 4 ++++ src/lib/server/Server.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/lib/server/ClientProxy1_5.cpp b/src/lib/server/ClientProxy1_5.cpp index bc8ddde6..a894de0d 100644 --- a/src/lib/server/ClientProxy1_5.cpp +++ b/src/lib/server/ClientProxy1_5.cpp @@ -83,6 +83,10 @@ ClientProxy1_5::fileChunkReceived() if (result == kFinish) { m_events->addEvent(Event(m_events->forIScreen().fileRecieveCompleted(), server)); } + else if (result == kStart) { + String filename = server->getDragFileList().at(0).getFilename(); + LOG((CLOG_NOTIFY "File Transmission Started: Start receiving %s", filename.c_str())); + } } void diff --git a/src/lib/server/Server.h b/src/lib/server/Server.h index d85a113d..1b3d9bb9 100644 --- a/src/lib/server/Server.h +++ b/src/lib/server/Server.h @@ -175,6 +175,9 @@ public: //! Return received file data String& getReceivedFileData() { return m_receivedFileData; } + //! Return drag file list + DragFileList getDragFileList() { return m_dragFileList; } + //@} private: