Fix forward navigation control on Linux.
[dorian] / librarydialog.h
index 52b0deb..91dec8d 100644 (file)
@@ -7,7 +7,6 @@
 
 #include "listwindow.h"
 
-class ListView;
 class QPushButton;
 class QModelIndex;
 class QCloseEvent;
@@ -15,6 +14,7 @@ class ProgressDialog;
 class Book;
 class InfoWindow;
 class SortedLibrary;
+class QAction;
 class SearchDialog;
 
 /** Manage library. */
@@ -28,26 +28,23 @@ 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();
+    void onDelete();
 
 private:
-    QString createItemText(const Book *book);
+    QString createItemText(Book *book);
     void setSelected(const QModelIndex &index);
-    QModelIndex selected() const;
-    ListView *list;
     SortedLibrary *sortedLibrary;
     ProgressDialog *progress;
+    QAction *sortByAuthor;
+    QAction *sortByTitle;
     SearchDialog *searchDialog;
 };