New version. Update home page link in About box.
[dorian] / librarydialog.h
index 4a08318..a29a093 100644 (file)
@@ -7,14 +7,14 @@
 
 #include "listwindow.h"
 
-class ListView;
 class QPushButton;
 class QModelIndex;
 class QCloseEvent;
-class QProgressDialog;
+class ProgressDialog;
 class Book;
 class InfoWindow;
 class SortedLibrary;
+class QAction;
 class SearchDialog;
 
 /** Manage library. */
@@ -28,25 +28,22 @@ public:
 public slots:
     void onAdd();
     void onAddFolder();
-#ifndef Q_WS_MAEMO_5
-    void onRemove();
-    void onDetails();
-    void onRead();
-#endif // Q_WS_MAEMO_5
     void onBookAdded();
     void onItemActivated(const QModelIndex &index);
-    void onCurrentBookChanged();
     void onAddFromFolder(const QString &path);
     void onAddFromFolderDone(int added);
     void onSearch();
+    void showSearchResults();
+    void onSortByAuthor();
+    void onSortByTitle();
 
 private:
-    QString createItemText(const Book *book);
+    QString createItemText(Book *book);
     void setSelected(const QModelIndex &index);
-    QModelIndex selected() const;
-    ListView *list;
     SortedLibrary *sortedLibrary;
-    QProgressDialog *progress;
+    ProgressDialog *progress;
+    QAction *sortByAuthor;
+    QAction *sortByTitle;
     SearchDialog *searchDialog;
 };