summaryrefslogtreecommitdiffstats
path: root/smdirwatcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'smdirwatcher.h')
-rw-r--r--smdirwatcher.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/smdirwatcher.h b/smdirwatcher.h
index b0edd2f..77d0d97 100644
--- a/smdirwatcher.h
+++ b/smdirwatcher.h
@@ -34,6 +34,7 @@ class SmDirWatcher : public QThread {
public slots:
void run();
+ void stop();
void setDir(const QString &dir);
private:
@@ -57,6 +58,7 @@ class SmDataColletor : public QThread {
public slots:
void setCheckForPresent(bool present);
void run();
+ void stop() { mCancel = true; }
signals:
void newData(const QList<QVariant>,int);
@@ -73,6 +75,7 @@ class SmDataColletor : public QThread {
int mMode;
const int mNumFields;
bool mCheckForPresent;
+ bool mCancel;
QMutex mCheckForPresentMx;
QSqlQuery *mPicPresentQ;
QSqlQuery *mMovPresentQ;