summaryrefslogtreecommitdiffstats
path: root/smdirwatcher.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-09-03 08:16:46 +0200
committerArno <am@disconnect.de>2013-09-03 08:16:46 +0200
commit666db6b8c2d7704415946c0a8d69adb3cf5ae7f5 (patch)
tree16c3072a56baea84227b0874c048e223d485a601 /smdirwatcher.h
parent130e0a3115cd66e38ec57846e06f69e7fd284400 (diff)
downloadSheMov-666db6b8c2d7704415946c0a8d69adb3cf5ae7f5.tar.gz
SheMov-666db6b8c2d7704415946c0a8d69adb3cf5ae7f5.tar.bz2
SheMov-666db6b8c2d7704415946c0a8d69adb3cf5ae7f5.zip
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...
Diffstat (limited to 'smdirwatcher.h')
-rw-r--r--smdirwatcher.h2
1 files changed, 2 insertions, 0 deletions
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<QVariant> generalData(const QString &path);
@@ -57,6 +58,7 @@ class SmDirWatcher : public QThread {
QThreadPool *mAsyncPool;
int mNumFields;
QList<AsyncTask*> mAsyncTasks;
+ bool mExpensiveOps;
};
class AsyncTask : public QObject, public QRunnable {