From 03cf431990803e19142f23b55826278ea13e15e6 Mon Sep 17 00:00:00 2001 From: q5sys Date: Wed, 13 Dec 2017 15:23:22 -0500 Subject: add skeleton for file transfer dialog --- src-qt5/desktop-utils/lumina-fm/transferd.cpp | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src-qt5/desktop-utils/lumina-fm/transferd.cpp (limited to 'src-qt5/desktop-utils/lumina-fm/transferd.cpp') diff --git a/src-qt5/desktop-utils/lumina-fm/transferd.cpp b/src-qt5/desktop-utils/lumina-fm/transferd.cpp new file mode 100644 index 00000000..c5a0a156 --- /dev/null +++ b/src-qt5/desktop-utils/lumina-fm/transferd.cpp @@ -0,0 +1,28 @@ + + +int totaltransactions = sel.length(); +QList transaction; +for(int i=0;istart(5000); +} +QElapsedTimer timer; +timer.start(); +//copy/move file +timer.elapsed(); // "milliseconds" +transferTime = transferTime + timer.elapsed() +transaction[i].value(2) = true; +currentTransfered++; +currentTransferedSize = currentTransferedSize + transaction[i].value(1); +//calculate transfer data rate from transferTime and currentTransferedSize +avgTransferRate = ( currentTransferedSize / (transferTime * 1000) ) +//can do estimates on potential time? +} -- cgit