Actually delete books from database. Delete all books when "Clear
[dorian] / librarydialog.h
index ca0e452..6af37b3 100644 (file)
@@ -15,7 +15,9 @@ class QProgressDialog;
 class Book;
 class InfoWindow;
 class SortedLibrary;
+class SearchDialog;
 
+/** Manage library. */
 class LibraryDialog: public ListWindow
 {
     Q_OBJECT
@@ -36,6 +38,9 @@ public slots:
     void onCurrentBookChanged();
     void onAddFromFolder(const QString &path);
     void onAddFromFolderDone(int added);
+    void onSearch();
+    void showSearchResults();
+
 private:
     QString createItemText(const Book *book);
     void setSelected(const QModelIndex &index);
@@ -43,6 +48,7 @@ private:
     ListView *list;
     SortedLibrary *sortedLibrary;
     QProgressDialog *progress;
+    SearchDialog *searchDialog;
 };
 
 #endif // LIBRARYDIALOG_H