Prefer mass memory on Symbian.
[dorian] / adopterwindow.h
index eb30d53..c6c99cd 100644 (file)
@@ -60,10 +60,14 @@ public slots:
     /** Handle settings changes. */
     void onSettingsChanged(const QString &key);
 
-protected:
-    /** Return true, if we are in portrait mode. */
-    bool portrait();
+signals:
+    /** Emitted when Page Up or Volume Up pressed. */
+    void pageUp();
+
+    /** Emitted when Page Down or Volume Down pressed. */
+    void pageDown();
 
+protected:
     /** Handle key press events. */
     void keyPressEvent(QKeyEvent *event);
 
@@ -73,16 +77,35 @@ protected:
      */
     void showEvent(QShowEvent *event);
 
-    /** Handle resize events. */
+    /** Handle resize event: Restore reading position. */
     void resizeEvent(QResizeEvent *event);
 
+    /** Handle close event. */
+    void closeEvent(QCloseEvent *event);
+
+    /** Handle leave event: Save reading position. */
+    void leaveEvent(QEvent *event);
+
+#ifdef Q_OS_SYMBIAN
+    /** Update toolbar visibility. */
+    void updateToolBar();
+
+    /** Return true in portrait mode. */
+    bool portrait();
+#endif // Q_OS_SYMBIAN
+
 #ifdef Q_WS_MAEMO_5
     /** Actually grab the volume keys. */
     void doGrabVolumeKeys(bool grab);
-#endif
+#endif // Q_WS_MAEMO_5
+
+    /** Hide tool bar if visible. */
+    void hideToolBar();
 
 protected slots:
     void placeDecorations();
+    void onPageDown();
+    void onPageUp();
 
 private:
     BookView *bookView;     /**< Book view widget. */