Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2014-03-14 21:43:23 +0400
committerOlivier Goffart <ogoffart@woboq.com>2014-03-14 21:43:23 +0400
commit62e95e540b471c76adedb84286ad9732de7b7442 (patch)
treed811498b145c272e961c7c75f9b93544186d286b /src/owncloudcmd
parentd744b5e48123f28ed341d901a4e94ac2ce47bf75 (diff)
Remove Progress::Kind
It's not really used, one need to look at the instruction of the items being processed to see what happens
Diffstat (limited to 'src/owncloudcmd')
-rw-r--r--src/owncloudcmd/owncloudcmd.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/owncloudcmd/owncloudcmd.cpp b/src/owncloudcmd/owncloudcmd.cpp
index 98090a70e..a09056c08 100644
--- a/src/owncloudcmd/owncloudcmd.cpp
+++ b/src/owncloudcmd/owncloudcmd.cpp
@@ -37,19 +37,7 @@ class OwncloudCmd : public QObject {
public:
OwncloudCmd() : QObject() { }
public slots:
- void transmissionProgressSlot(Progress::Kind pI) {
- static QElapsedTimer localTimer;
- static QElapsedTimer remoteTimer;
- if (pI == Progress::StartLocalUpdate) {
- localTimer.start();
- } else if (pI == Progress::EndLocalUpdate) {
- // There is also localTimer.nsecsElapsed()
- qDebug() << "Local Update took" << localTimer.elapsed() << "msec";
- } else if (pI == Progress::StartRemoteUpdate) {
- remoteTimer.start();
- } else if (pI == Progress::EndRemoteUpdate) {
- qDebug() << "Remote Update took" << remoteTimer.elapsed() << "msec";
- }
+ void transmissionProgressSlot() {
}
};
@@ -222,7 +210,7 @@ int main(int argc, char **argv) {
SyncJournalDb db(options.source_dir);
CSyncThread csyncthread(_csync_ctx, options.source_dir, QUrl(options.target_url).path(), folder, &db);
QObject::connect(&csyncthread, SIGNAL(finished()), &app, SLOT(quit()));
- QObject::connect(&csyncthread, SIGNAL(transmissionProgress(Progress::Kind,Progress::Info)), &owncloudCmd, SLOT(transmissionProgressSlot(Progress::Kind)));
+ QObject::connect(&csyncthread, SIGNAL(transmissionProgress(Progress::Info)), &owncloudCmd, SLOT(transmissionProgressSlot()));
csyncthread.startSync();
app.exec();