class InfoWindow;
class SortedLibrary;
class SearchDialog;
+class QAction;
/** Manage library. */
class LibraryDialog: public ListWindow
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;
ProgressDialog *progress;
SearchDialog *searchDialog;
+ QAction *sortByAuthor;
+ QAction *sortByTitle;
};
#endif // LIBRARYDIALOG_H