1 #ifndef LIBRARYDIALOG_H
2 #define LIBRARYDIALOG_H
6 #include <QModelIndexList>
8 #include "listwindow.h"
20 /** Manage library. */
21 class LibraryDialog: public ListWindow
26 explicit LibraryDialog(QWidget *parent = 0);
35 #endif // Q_WS_MAEMO_5
37 void onItemActivated(const QModelIndex &index);
38 void onCurrentBookChanged();
39 void onAddFromFolder(const QString &path);
40 void onAddFromFolderDone(int added);
42 void showSearchResults();
45 QString createItemText(const Book *book);
46 void setSelected(const QModelIndex &index);
47 QModelIndex selected() const;
49 SortedLibrary *sortedLibrary;
50 ProgressDialog *progress;
51 SearchDialog *searchDialog;
54 #endif // LIBRARYDIALOG_H