From 666db6b8c2d7704415946c0a8d69adb3cf5ae7f5 Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 3 Sep 2013 08:16:46 +0200 Subject: Introduce Expensive Operations Add a configuration Option to (de-)select expensive file operations. That would be md5Summing and gathering the Bitrate/Duration. That should help the performance on networked directories... --- smdirwatcher.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'smdirwatcher.h') diff --git a/smdirwatcher.h b/smdirwatcher.h index 9ec9181..775ca63 100644 --- a/smdirwatcher.h +++ b/smdirwatcher.h @@ -46,6 +46,7 @@ class SmDirWatcher : public QThread { void setDir(const QString &dir); void startAsyncJobs(); void gatherAsync(const QString &path); + void setExpensiveOps(bool expensiveOps); private: QList generalData(const QString &path); @@ -57,6 +58,7 @@ class SmDirWatcher : public QThread { QThreadPool *mAsyncPool; int mNumFields; QList mAsyncTasks; + bool mExpensiveOps; }; class AsyncTask : public QObject, public QRunnable { -- cgit v1.2.3-70-g09d2