1 #ifndef LIBRARYDIALOG_H
2 #define LIBRARYDIALOG_H
6 #include <QModelIndexList>
17 class LibraryDialog: public QMainWindow
22 explicit LibraryDialog(QWidget *parent = 0);
30 void onItemSelectionChanged();
31 #endif // Q_WS_MAEMO_5
33 void onItemActivated(const QModelIndex &index);
34 void onCurrentBookChanged();
37 void closeEvent(QCloseEvent *event);
40 QString createItemText(const Book *book);
41 void setSelected(const QModelIndex &index);
42 QModelIndex selected() const;
44 SortedLibrary *sortedLibrary;
46 QPushButton *detailsButton;
47 QPushButton *removeButton;
48 QPushButton *readButton;
49 #endif // Q_WS_MAEMO_5
50 QPushButton *addButton;
53 #endif // LIBRARYDIALOG_H