camerauis/cameraapp/generic/inc/CamVideoPostCaptureView.h
changeset 0 1ddebce53859
child 31 8f559c47d7fd
equal deleted inserted replaced
-1:000000000000 0:1ddebce53859
       
     1 /*
       
     2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  View class for video post capture view*
       
    15 */
       
    16 
       
    17 
       
    18 #ifndef CAMVIDEOPOSTCAPTUREVIEW_H
       
    19 #define CAMVIDEOPOSTCAPTUREVIEW_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include "CamPostCaptureViewBase.h"
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class CCamAppController;
       
    26 class CCamContainerBase;
       
    27 
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  View class for video capture 
       
    33 *
       
    34 *  @since 2.8
       
    35 */
       
    36 class CCamVideoPostCaptureView : public CCamPostCaptureViewBase, public MAiwNotifyCallback
       
    37     {
       
    38     public:  // Constructors and destructor
       
    39         
       
    40         /**
       
    41         * Two-phased constructor.
       
    42         * @since 2.8
       
    43         * @param aController Reference to either the application controller 
       
    44         *        base class or test base class
       
    45         * @return pointer to the created CCamVideoPostCaptureView object
       
    46         */
       
    47         static CCamVideoPostCaptureView* NewLC( CCamAppController& aController );
       
    48 
       
    49         /**
       
    50         * Destructor.
       
    51         * @since 2.8
       
    52         */
       
    53         virtual ~CCamVideoPostCaptureView();
       
    54 
       
    55     public: // Functions from base classes
       
    56 
       
    57         /**
       
    58         * From CAknView.
       
    59         * @since 2.8
       
    60         * @return UID of view
       
    61         */
       
    62         TUid Id() const;
       
    63 
       
    64 		/**
       
    65         * From CAknView Handle commands
       
    66         * @since 2.8
       
    67         * @param aCommand command to be handled
       
    68         */
       
    69         void ProcessCommandL( TInt aCommand );
       
    70         
       
    71         
       
    72         /**
       
    73         * From CAknView Handle commands
       
    74         * @since 2.8
       
    75         * @param aCommand command to be handled
       
    76         */
       
    77         void HandleCommandL( TInt aCommand );
       
    78 
       
    79         /**
       
    80         * Displays the delete image/video confirmation note
       
    81         * @since 2.8
       
    82         * @return ETrue if file deleted, otherwise EFalse
       
    83         */
       
    84         TBool DisplayDeleteNoteL();
       
    85         
       
    86         /**
       
    87         * From CAknView.
       
    88         * @since 2.8
       
    89         * @param aPrevViewId the ID for previous view we are switching from
       
    90         * @param aCustomMessageId the Uid for message passed to this view
       
    91         * @param aCustomMessage descriptor containing data content for view specific message
       
    92         */
       
    93         void DoActivateL( const TVwsViewId& aPreViewId, TUid aCustomMessageId,
       
    94                                                     const TDesC8& aCustomMessage );
       
    95                                                     
       
    96                                                     
       
    97         /**
       
    98         * From base class MAiwNotifyCallback.
       
    99         * Handles any notification caused by asynchronous ExecuteCommandL
       
   100         * or event.
       
   101         * @param aCmdId Service command associated to the event.
       
   102         * @param aEventId Occured event
       
   103         * @param aEventParamList Event parameters, if any, as defined per
       
   104         * each event.
       
   105         * @param aInParamList Input parameters, if any, given in the
       
   106         *        related HandleCommmandL
       
   107         * @return error code for the callback
       
   108         */
       
   109         TInt HandleNotifyL(
       
   110             TInt aCmdId,
       
   111             TInt aEventId,
       
   112             CAiwGenericParamList& aEventParamList,
       
   113             const CAiwGenericParamList& aInParamList );
       
   114     
       
   115     private:    // New functions
       
   116 
       
   117         /**
       
   118         * C++ default constructor.
       
   119         * @since 2.8
       
   120         * @param aController Reference to either the application controller 
       
   121         *        base class or test base class
       
   122         */
       
   123         CCamVideoPostCaptureView( CCamAppController& aController );
       
   124 
       
   125         /**
       
   126         * By default Symbian 2nd phase constructor is private.
       
   127         * @since 2.8
       
   128         */
       
   129         void ConstructL();
       
   130 
       
   131     private:    // Functions from base classes
       
   132 
       
   133         /**
       
   134         * From CAknView.
       
   135         * @since 2.8
       
   136         */
       
   137         void DoDeactivate();
       
   138 
       
   139         /**
       
   140         * From CCamViewBase
       
   141         * Set the view's title text
       
   142         * @since 2.8
       
   143         */
       
   144         void SetTitlePaneTextL();
       
   145 
       
   146     private:    // From MEikMenuObserver
       
   147         /**
       
   148         * From MEikMenuObserver Changes MenuPane dynamically
       
   149         * @param Resource Id
       
   150         * @param Handle to menu pane
       
   151         * @since 2.8
       
   152         */
       
   153         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
   154 
       
   155         // from base class MAknToolbarObserver
       
   156 
       
   157         void DynInitToolbarL( TInt aResourceId, CAknToolbar* aToolbar );
       
   158 
       
   159 
       
   160 
       
   161     private:    // Data
       
   162     
       
   163     	TBool iRockerKeyPress;
       
   164     };
       
   165 
       
   166 #endif      // CAMVIDEOPOSTCAPTUREVIEW_H   
       
   167             
       
   168 // End of File