#include <QStringList>
#include <QHash>
#include <QImage>
+#include <QPoint>
#include "book.h"
void setBook(Book *book);
Book *book();
void goToBookmark(const Book::Bookmark &bookmark);
- void addBookmark();
+ void addBookmark(const QString ¬e);
void setLastBookmark();
void restoreLastBookmark();
void progress(qreal p);
public slots:
+ /** Go to next part. */
void goPrevious();
+
+ /** Go to previous part. */
void goNext();
+
void onLoadFinished(bool ok);
void onSettingsChanged(const QString &key);
/** Handle main frame contents size changes. */
void onContentsSizeChanged(const QSize &size);
+ /** Go to previous page. */
+ void goPreviousPage();
+
+ /** Go to next page. */
+ void goNextPage();
+
protected:
void paintEvent(QPaintEvent *e);
void mousePressEvent(QMouseEvent *e);
void leaveEvent(QEvent *e);
void enterEvent(QEvent *e);
void timerEvent(QTimerEvent *e);
+ void keyPressEvent(QKeyEvent *e);
private:
- /** Save navigation icons from resource to the file system. */
- void extractIcons();
-
- /** Remove extracted icons. */
- void removeIcons();
-
/** Load given part. */
void loadContent(int index);
- /** Decorate web page frame with navigation icons. */
- void addNavigationBar();
-
/** Get temporary directory for extracting book contents. */
QString tmpPath();
bool loaded; /**< True if content has been loaded. */
bool mousePressed;
int contentsHeight; /**< Last know height of the frame. */
- bool decorated; /**< True after adding the arrows to the frame contents. */
+#if defined(Q_WS_MAEMO_5)
int scrollerMonitor;
-#ifdef Q_WS_MAEMO_5
QAbstractKineticScroller *scroller;
#endif
};