[Pkg-owncloud-commits] [owncloud-client] 142/333: CSyncThread: Emit a signal for each file before propagate
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu Apr 17 23:16:45 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 07904e078abd909a9b65586f47ad20bc90bf2d22
Author: Markus Goetz <markus at woboq.com>
Date: Fri Mar 14 14:08:32 2014 +0100
CSyncThread: Emit a signal for each file before propagate
This can be used to display info before the sync is happening
---
src/mirall/csyncthread.cpp | 2 ++
src/mirall/csyncthread.h | 5 +++++
2 files changed, 7 insertions(+)
diff --git a/src/mirall/csyncthread.cpp b/src/mirall/csyncthread.cpp
index 02eb746..25263a5 100644
--- a/src/mirall/csyncthread.cpp
+++ b/src/mirall/csyncthread.cpp
@@ -335,6 +335,7 @@ int CSyncThread::treewalkFile( TREE_WALK_FILE *file, bool remote )
// No need to do anything.
_hasFiles = true;
+ emit syncItemDisconvered(item);
return re;
}
break;
@@ -375,6 +376,7 @@ int CSyncThread::treewalkFile( TREE_WALK_FILE *file, bool remote )
}
_syncedItems.append(item);
+ emit syncItemDisconvered(item);
return re;
}
diff --git a/src/mirall/csyncthread.h b/src/mirall/csyncthread.h
index 1e62e87..0b7995b 100644
--- a/src/mirall/csyncthread.h
+++ b/src/mirall/csyncthread.h
@@ -62,6 +62,11 @@ signals:
void csyncError( const QString& );
void csyncWarning( const QString& );
void csyncUnavailable();
+
+ // before actual syncing (after update+reconcile)
+ void syncItemDisconvered(const SyncFileItem&);
+
+ // after sync is done
void treeWalkResult(const SyncFileItemVector&);
void transmissionProgress( const Progress::Info& progress );
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list