camerauis/cameraapp/generic/inc/CamPreCaptureViewBase.h
branchRCL_3
changeset 11 792dfc98fb3b
parent 0 1ddebce53859
child 20 38fb6f7eacd5
equal deleted inserted replaced
7:dbec5787fa68 11:792dfc98fb3b
    17 
    17 
    18 #ifndef CAMPRECAPTUREVIEWBASE_H
    18 #ifndef CAMPRECAPTUREVIEWBASE_H
    19 #define CAMPRECAPTUREVIEWBASE_H
    19 #define CAMPRECAPTUREVIEWBASE_H
    20 
    20 
    21 #include <akntoolbarobserver.h>
    21 #include <akntoolbarobserver.h>
       
    22 #include <akntouchgesturefw.h>
       
    23 #include <akntouchgesturefwobserver.h>
       
    24 #include <akntouchgesturefwevents.h>
    22 
    25 
    23 #include "CamCaptureSetupViewBase.h"
    26 #include "CamCaptureSetupViewBase.h"
    24 
    27 
    25 #include "CamControllerObservers.h"
    28 #include "CamControllerObservers.h"
    26 #include "CamAppController.h"
    29 #include "CamAppController.h"
    30 class CCamStandbyContainer;
    33 class CCamStandbyContainer;
    31 class MAknsSkinInstance; 
    34 class MAknsSkinInstance; 
    32 class TAknsItemID;
    35 class TAknsItemID;
    33 class CAknButton;
    36 class CAknButton;
    34 
    37 
       
    38 
       
    39 using namespace AknTouchGestureFw;
    35 // CLASS DECLARATION
    40 // CLASS DECLARATION
    36 
    41 
    37 /**
    42 /**
    38 * Base class for precapture views
    43 * Base class for precapture views
    39 *
    44 *
    40 *  @since 2.8
    45 *  @since 2.8
    41 */
    46 */
    42 class CCamPreCaptureViewBase : 	public CCamCaptureSetupViewBase,
    47 class CCamPreCaptureViewBase : 	public CCamCaptureSetupViewBase,
    43 								public MCamControllerObserver,
    48 								public MCamControllerObserver,
    44 								public MAknToolbarObserver
    49 								public MAknToolbarObserver,
       
    50 								public MAknTouchGestureFwObserver
    45     {
    51     {
    46     public:  // Constructors and destructor
    52     public:  // Constructors and destructor
    47         
    53         
    48         /**
    54         /**
    49         * Destructor.
    55         * Destructor.
   105         * From CCamCaptureSetupViewBase
   111         * From CCamCaptureSetupViewBase
   106         * Revert to normal mode
   112         * Revert to normal mode
   107         * @since 2.8
   113         * @since 2.8
   108         */
   114         */
   109         virtual void ExitAllModesL();
   115         virtual void ExitAllModesL();
   110         
   116 
       
   117         /**
       
   118          * Gesture events are subscribed once the containers are constructed by 
       
   119          * derived class. 
       
   120          */
       
   121         void CreateContainerL();
       
   122 
       
   123         /**
       
   124          * Gesture event notifications are received in this function. 
       
   125          */
       
   126         void HandleTouchGestureL( MAknTouchGestureFwEvent& aEvent );        
       
   127 
   111     public: // New functions
   128     public: // New functions
   112 
   129 
   113        /**
   130        /**
   114         * From CCamCaptureSetupViewBase
   131         * From CCamCaptureSetupViewBase
   115         * Return the active setting mode
   132         * Return the active setting mode
   392         // Asumption that next view is postcaptureview. If true don't start
   409         // Asumption that next view is postcaptureview. If true don't start
   393         // viewfinder if coming to foreground from background.
   410         // viewfinder if coming to foreground from background.
   394         TBool iAssumePostCaptureView;
   411         TBool iAssumePostCaptureView;
   395         
   412         
   396         TBool iLocationTrailConnecting;
   413         TBool iLocationTrailConnecting;
   397 		
   414         
       
   415         //  Gesture related
       
   416         CAknTouchGestureFw *iGestureFw;
       
   417         TInt iLastMovement;
   398     };
   418     };
   399 
   419 
   400 #endif      // CAMPRECAPTUREVIEWBASE_H 
   420 #endif      // CAMPRECAPTUREVIEWBASE_H 
   401             
   421             
   402 // End of File
   422 // End of File