src/hbcore/gui/hbmainwindow.h
branchGCC_SURGE
changeset 15 f378acbc9cfb
parent 7 923ff622b8b9
child 21 4633027730f5
--- a/src/hbcore/gui/hbmainwindow.h	Thu Jul 15 14:03:49 2010 +0100
+++ b/src/hbcore/gui/hbmainwindow.h	Thu Jul 22 16:36:53 2010 +0100
@@ -43,12 +43,14 @@
 {
     Q_OBJECT
 
-    Q_PROPERTY(Qt::Orientation orientation 
+    Q_PROPERTY(Qt::Orientation orientation
                READ orientation
                WRITE setOrientation
                RESET unsetOrientation
                NOTIFY orientationChanged)
 
+    Q_PROPERTY(bool obscuredState READ isObscured)
+
 public:
     explicit HbMainWindow(QWidget *parent = 0, Hb::WindowFlags windowFlags = Hb::WindowFlagNone);
     ~HbMainWindow();
@@ -72,11 +74,16 @@
     void setBackgroundImageName(Qt::Orientation orientation, const QString &name);
     QString backgroundImageName(Qt::Orientation orientation) const;
 
+    void setBackgroundImageMode(Hb::BackgroundImageMode mode);
+    Hb::BackgroundImageMode backgroundImageMode() const;
+
     void setAutomaticOrientationEffectEnabled(bool enabled = true);
     bool automaticOrientationEffectEnabled() const;
 
+    bool isObscured() const;
+
 public slots:
-    void broadcastEvent( int eventType );
+    void broadcastEvent(int eventType);
 
 signals:
     void viewReady();
@@ -85,6 +92,8 @@
     void aboutToChangeOrientation();
     void aboutToChangeOrientation(Qt::Orientation newOrientation, bool animated);
     void orientationChanged(Qt::Orientation orientation);
+    void obscured();
+    void revealed();
 
 protected:
     void changeEvent(QEvent *event);
@@ -95,15 +104,17 @@
     void customEvent(QEvent *event);
     void scrollContentsBy(int dx, int dy);
     void paintEvent(QPaintEvent *event);
+    void showEvent(QShowEvent *event);
+    bool event(QEvent *event);
 
     HbMainWindowPrivate *const d_ptr;
 
 private:
     Q_DISABLE_COPY(HbMainWindow)
     Q_DECLARE_PRIVATE_D(d_ptr, HbMainWindow)
-    Q_PRIVATE_SLOT(d_func(), void rootItemFirstPhaseDone(const HbEffect::EffectStatus& status))
-    Q_PRIVATE_SLOT(d_func(), void rootItemFinalPhaseDone(const HbEffect::EffectStatus& status))
-    Q_PRIVATE_SLOT(d_func(), void orientationEffectFinished(const HbEffect::EffectStatus& status))
+    Q_PRIVATE_SLOT(d_func(), void rootItemFirstPhaseDone(const HbEffect::EffectStatus &status))
+    Q_PRIVATE_SLOT(d_func(), void rootItemFinalPhaseDone(const HbEffect::EffectStatus &status))
+    Q_PRIVATE_SLOT(d_func(), void orientationEffectFinished(const HbEffect::EffectStatus &status))
     Q_PRIVATE_SLOT(d_func(), void _q_viewChanged())
     Q_PRIVATE_SLOT(d_func(), void _q_viewRemoved(QGraphicsWidget *))
     Q_PRIVATE_SLOT(d_func(), void _q_viewTitleChanged(const QString &))