Added full stop for notification #4745

This commit is contained in:
Jerry (Xinyu Hou) 2015-06-02 11:18:21 -07:00
parent f42b756b0e
commit 8d0fdee5ce
4 changed files with 8 additions and 8 deletions

View File

@ -569,7 +569,7 @@ ServerProxy::setClipboard()
} }
else if (r == kStart) { else if (r == kStart) {
size_t size = ClipboardChunk::getExpectedSize(); size_t size = ClipboardChunk::getExpectedSize();
LOG((CLOG_NOTIFY "Clipboard Transmission Started: Start receiving %u bytes of clipboard data", size)); LOG((CLOG_NOTIFY "Clipboard Transmission Started: Start receiving %u bytes of clipboard data.", size));
} }
} }
@ -872,7 +872,7 @@ ServerProxy::fileChunkReceived()
} }
else if (result == kStart) { else if (result == kStart) {
String filename = m_client->getDragFileList().at(0).getFilename(); String filename = m_client->getDragFileList().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()));
} }
} }

View File

@ -85,7 +85,7 @@ ClientProxy1_5::fileChunkReceived()
} }
else if (result == kStart) { else if (result == kStart) {
String filename = server->getDragFileList().at(0).getFilename(); String filename = server->getDragFileList().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()));
} }
} }

View File

@ -91,11 +91,11 @@ ClientProxy1_6::recvClipboard()
info->m_sequenceNumber = seq; info->m_sequenceNumber = seq;
m_events->addEvent(Event(m_events->forClipboard().clipboardChanged(), m_events->addEvent(Event(m_events->forClipboard().clipboardChanged(),
getEventTarget(), info)); getEventTarget(), info));
LOG((CLOG_NOTIFY "Clipboard Transmission Complete: Clipboard is updated")); LOG((CLOG_NOTIFY "Clipboard Transmission Complete: Clipboard is updated."));
} }
else if (r == kStart) { else if (r == kStart) {
size_t size = ClipboardChunk::getExpectedSize(); size_t size = ClipboardChunk::getExpectedSize();
LOG((CLOG_NOTIFY "Clipboard Transmission Started: Start receiving %u bytes of clipboard data", size)); LOG((CLOG_NOTIFY "Clipboard Transmission Started: Start receiving %u bytes of clipboard data.", size));
} }
return true; return true;

View File

@ -38,18 +38,18 @@ DropHelper::writeToDir(const String& destination, DragFileList& fileList, String
file.open(dropTarget.c_str(), std::ios::out | std::ios::binary); file.open(dropTarget.c_str(), std::ios::out | std::ios::binary);
if (!file.is_open()) { if (!file.is_open()) {
LOG((CLOG_ERR "drop file failed: can not open %s", dropTarget.c_str())); LOG((CLOG_ERR "drop file failed: can not open %s", dropTarget.c_str()));
LOG((CLOG_NOTIFY "File Transmission Failed: Can not open %s", dropTarget.c_str())); LOG((CLOG_NOTIFY "File Transmission Failed: Can not open %s.", dropTarget.c_str()));
} }
file.write(data.c_str(), data.size()); file.write(data.c_str(), data.size());
file.close(); file.close();
LOG((CLOG_NOTIFY "File Transmission Complete: %s is saved to %s", fileList.at(0).getFilename().c_str(), destination.c_str())); LOG((CLOG_NOTIFY "File Transmission Complete: %s is saved to %s.", fileList.at(0).getFilename().c_str(), destination.c_str()));
fileList.clear(); fileList.clear();
} }
else { else {
LOG((CLOG_ERR "drop file failed: drop target is empty")); LOG((CLOG_ERR "drop file failed: drop target is empty"));
LOG((CLOG_NOTIFY "File Transmission Failed: Drop target is empty")); LOG((CLOG_NOTIFY "File Transmission Failed: Drop target is empty."));
} }
} }