summaryrefslogtreecommitdiffstats
path: root/smdirwatcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'smdirwatcher.h')
-rw-r--r--smdirwatcher.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/smdirwatcher.h b/smdirwatcher.h
index 4a85c5a..3a30360 100644
--- a/smdirwatcher.h
+++ b/smdirwatcher.h
@@ -13,6 +13,9 @@
#include <QVariant>
#include <QFileInfo>
#include <QQueue>
+#include <QMutex>
+#include <QSqlDatabase>
+#include <QSqlQuery>
class SmTreeItem;
class QSemaphore;
@@ -53,6 +56,7 @@ class SmDataColletor : public QThread {
void init(QSemaphore *set, QSemaphore *get, QQueue<QPair<QString, SmDirWatcher::DWEvent> > *data);
public slots:
+ void setCheckForPresent(bool present);
void run();
signals:
@@ -62,13 +66,17 @@ class SmDataColletor : public QThread {
private:
SmTreeItem *populate(const QString &dir);
- const QList<QVariant> fileData(const QFileInfo &fi) const;
+ const QList<QVariant> fileData(const QFileInfo &fi);
QString mCurrent;
QSemaphore *mSemFree;
QSemaphore *mSemUsed;
QQueue<QPair<QString, SmDirWatcher::DWEvent> > *mDataQueue;
int mMode;
const int mNumFields;
+ bool mCheckForPresent;
+ QMutex mCheckForPresentMx;
+ QSqlQuery *mPicPresentQ;
+ QSqlQuery *mMovPresentQ;
};
#endif // SMDIRWATCHER_H