X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=librarydialog.h;h=91dec8d6a4d93cc194546badf6ab5c460834ab8a;hb=85cec7d9707dfd727dd66b817f20981d460f5a2e;hp=4a0831820573b79cacb69cd0aec49e9e7f3831b8;hpb=b8921e5fcde05a998f387b747925fa196863bafd;p=dorian diff --git a/librarydialog.h b/librarydialog.h index 4a08318..91dec8d 100644 --- a/librarydialog.h +++ b/librarydialog.h @@ -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,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; - QProgressDialog *progress; + ProgressDialog *progress; + QAction *sortByAuthor; + QAction *sortByTitle; SearchDialog *searchDialog; };