aboutsummaryrefslogtreecommitdiff
path: root/lumina-search/Worker.h
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-search/Worker.h')
-rw-r--r--lumina-search/Worker.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/lumina-search/Worker.h b/lumina-search/Worker.h
new file mode 100644
index 00000000..c7dd3707
--- /dev/null
+++ b/lumina-search/Worker.h
@@ -0,0 +1,42 @@
+//===========================================
+// Lumina-DE source code
+// Copyright (c) 2014, Ken Moore
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+#ifndef _LUMINA_SEARCH_DIALOG_WORKER_H
+#define _LUMINA_SEARCH_DIALOG_WORKER_H
+
+#include <QObject>
+#include <QString>
+#include <QDir>
+
+
+class Worker : public QObject{
+ Q_OBJECT
+public:
+ Worker(QObject *parent = 0);
+ ~Worker();
+
+public slots:
+ void StartSearch(QString term, bool isApp);
+ void StopSearch();
+
+private:
+ QStringList applist;
+ bool stopsearch;
+ QString sterm;
+ bool sapp;
+
+ bool searchDir(QString);
+
+private slots:
+ void beginsearch();
+
+signals:
+ void FoundItem(QString path);
+ void SearchUpdate(QString);
+ void SearchDone();
+};
+
+#endif \ No newline at end of file
bgstack15