camerauis/cameraxui/cxui/inc/cxuiscenemodeview.h
changeset 43 0e652f8f1fbd
parent 28 3075d9b614e6
--- a/camerauis/cameraxui/cxui/inc/cxuiscenemodeview.h	Thu May 13 21:30:19 2010 +0300
+++ b/camerauis/cameraxui/cxui/inc/cxuiscenemodeview.h	Thu Jul 15 01:55:05 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -31,6 +31,7 @@
 #include "cxuisettingsinfo.h"
 #include "cxuienums.h"
 #include "cxeengine.h"
+#include "cxuiview.h"
 
 class CxuiCaptureKeyHandler;
 class CxuiDocumentLoader;
@@ -45,7 +46,7 @@
  */
 
 
-class CxuiSceneModeView : public HbView
+class CxuiSceneModeView : public CxuiView
 {
     Q_OBJECT
 
@@ -59,11 +60,12 @@
     void construct(HbMainWindow *mainwindow,
                    CxeEngine *engine,
                    CxuiDocumentLoader *documentLoader,
-                   CxuiCaptureKeyHandler *keyHandler = NULL);
+                   CxuiCaptureKeyHandler *keyHandler,
+                   HbActivityManager *activityManager);
 
     void loadDefaultWidgets();
     void loadBackgroundImages();
-
+    void saveActivity();
 signals:
     void viewCloseEvent();
 
@@ -76,28 +78,21 @@
     void finishScenesTransition();
     void handleOkButtonPress();
     void handleCancelButtonPress();
-    void releaseCameraHw();
 
 protected:
     void showEvent(QShowEvent *event);
+    bool allowShowControls() const;
+    bool isFeedbackEnabled() const;
 
 private:
     QString backgroundForScene(const QString& sceneId);
     void startBackgroundTransition();
-    void createWidgetBackgroundGraphic(HbWidget *widget,
-                           const QString &graphicName,
-                           HbFrameDrawer::FrameType frameType =
-                           HbFrameDrawer::NinePieces);
 
     void connectSignals();
     void closeView();
 
 private:
-    HbMainWindow *mMainWindow; //not own
     CxuiSettingsInfo *mSettingsInfo;
-    CxeEngine *mEngine; //not own
-    CxuiDocumentLoader *mDocumentLoader; //not own
-    CxuiCaptureKeyHandler *mCaptureKeyHandler;
 
     HbLabel* mScenesBackground;
     HbLabel* mScenesBackground2;
@@ -106,6 +101,7 @@
     HbPushButton* mScenesOkButton;
     HbPushButton* mScenesCancelButton;
     HbWidget* mScenesContainer;
+    HbLabel *mScenesHeading;
 
     QTimer mCameraReleaseTimer;