Fix forward navigation control on Linux.
[dorian] / model / bookfinder.h
index 13cbc2c..e4023b4 100644 (file)
@@ -7,6 +7,7 @@
 class QStringList;
 class QString;
 
+/** Find new books in a folder. */
 class BookFinder: public QObject
 {
     Q_OBJECT
@@ -15,21 +16,12 @@ public:
     explicit BookFinder(QObject *parent = 0);
 
 public slots:
-    void find(const QStringList &directories, const QStringList &books);
+    void find(const QString &directory, const QStringList &books);
 
 signals:
-    void add(const QString &book);
-    void remove(const QString &book);
-
-public slots:
-};
-
-class BookFinderThread: public QThread
-{
-public:
-   void run () {
-       exec();
-   }
+    void begin(int count);
+    void add(const QString &bookPath);
+    void done(int count);
 };
 
 #endif // BOOKFINDER_H