camerauis/cameraxui/cxui/inc/cxuipostcaptureview.h
changeset 39 c5025ea871a1
parent 28 3075d9b614e6
child 40 2922f70fca82
--- a/camerauis/cameraxui/cxui/inc/cxuipostcaptureview.h	Thu Jul 15 01:44:30 2010 +0300
+++ b/camerauis/cameraxui/cxui/inc/cxuipostcaptureview.h	Thu Jul 15 01:46: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"
@@ -20,8 +20,8 @@
 #include <QObject>
 #include <QList>
 #include <QTimer>
-#include <hbview.h>
 #include <xqappmgr.h>
+#include "cxuiview.h"
 
 class QGraphicsRectItem;
 class HbMainWindow;
@@ -35,7 +35,7 @@
 /**
  * Post-capture view
  */
-class CxuiPostcaptureView : public HbView
+class CxuiPostcaptureView : public CxuiView
 {
     Q_OBJECT
 
@@ -66,43 +66,35 @@
 protected slots:
     void goToPrecaptureView();
     void stopViewfinder();
-    void releaseCamera();
 
-    // Control visibility
-    void hideControls();
-    void showControls();
-    void toggleControls();
+    void hideToolbar();
 
     // toolbar actions
-    void launchPhotosApp();
     void select();
     void launchShare();
     void playVideo();
     void showDeleteNote();
-    void launchVideosApp();
 
     void handleDeleteDialogClosed(HbAction *action);
 
 private:
-    void launchNotSupportedNotification();
     QString getCurrentFilename();
 
+    void startTimers();
+    void startPostcaptureTimer();
+    void startReleaseTimers();
+
 private slots:
-    void startTimers();
+    void handleFocusGained();
     void handleFocusLost();
 
 private: // data
-    HbMainWindow *mMainWindow; // not own
-    CxeEngine *mEngine; // not own
-    CxuiDocumentLoader *mDocumentLoader; // not own
     HbToolBar *mStillToolbar;
     HbToolBar *mVideoToolbar;
     HbToolBar *mEmbeddedToolbar;
     QGraphicsRectItem *mBackgroundItem;
     HbLabel *mImageLabel;
 
-    QTimer mHideControlsTimeout;
-
     /**
      * Timer used to stop viewfinder after a delay if the user remains in
      * post-capture view. Viewfinder is not stopped immediately when
@@ -125,12 +117,12 @@
     */
     QTimer mPostcaptureTimer;
 
-    bool mControlsVisible;
+    bool mTimersStarted;
 
-    bool mTimersStarted;
-    
     XQApplicationManager mAppManager;
 
+    bool mDeleteNoteOpen;
+
 };
 
 #endif // CXUIPOSTCAPTUREVIEW_H