camerauis/cameraapp/generic/inc/CamStillPostCaptureView.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 0 1ddebce53859
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
       
     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 still image Post capture view*
       
    15 */
       
    16 
       
    17 
       
    18 #ifndef CAMSTILLPOSTCAPTUREVIEW_H
       
    19 #define CAMSTILLPOSTCAPTUREVIEW_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 still image capture 
       
    33 *
       
    34 *  @since 2.8
       
    35 */
       
    36 class CCamStillPostCaptureView : public CCamPostCaptureViewBase,
       
    37 								 public MAiwNotifyCallback
       
    38     {
       
    39     // =====================================================
       
    40     // Methods
       
    41 
       
    42     // -----------------------------------------------------    
       
    43     // Constructors and destructor
       
    44     public:
       
    45         
       
    46         /**
       
    47         * Two-phased constructor.
       
    48         * @since 2.8
       
    49         * @param aController Reference to either the application controller 
       
    50         *        base class or test base class
       
    51         * @return pointer to the created CCamStillPostCaptureView object
       
    52         */
       
    53         static CCamStillPostCaptureView* NewLC( CCamAppController& aController );
       
    54 
       
    55         /**
       
    56         * Destructor.
       
    57         * @since 2.8
       
    58         */
       
    59         virtual ~CCamStillPostCaptureView();
       
    60 
       
    61     private:
       
    62 
       
    63         /**
       
    64         * C++ default constructor.
       
    65         * @since 2.8
       
    66         * @param aController Reference to either the application 
       
    67         *        controller base class or test base class
       
    68         */
       
    69         CCamStillPostCaptureView( CCamAppController& aController );
       
    70 
       
    71         /**
       
    72         * By default Symbian 2nd phase constructor is private.
       
    73         * @since 2.8
       
    74         */
       
    75         void ConstructL();
       
    76 
       
    77     // -----------------------------------------------------    
       
    78     // Functions from base classes
       
    79     public: 
       
    80 
       
    81         /**
       
    82         * From CAknView.
       
    83         * @since 2.8
       
    84         * @return UID of view
       
    85         */
       
    86         TUid Id() const;
       
    87 
       
    88         /**
       
    89         * From CAknView Handle commands
       
    90         * @since 2.8
       
    91         * @param aCommand command to be handled
       
    92         */
       
    93         void ProcessCommandL( TInt aCommand );
       
    94         
       
    95         /**
       
    96         * From CAknView Handle commands
       
    97         * @since 2.8
       
    98         * @param aCommand command to be handled
       
    99         */
       
   100         void HandleCommandL( TInt aCommand );
       
   101  
       
   102         /**
       
   103         * Displays the delete image/video confirmation note
       
   104         * @since 2.8
       
   105         * @return ETrue if file deleted, otherwise EFalse
       
   106         */
       
   107         TBool DisplayDeleteNoteL();
       
   108        
       
   109        /**
       
   110         * Displays the delete image sequence confirmation note
       
   111         * @since 3.0
       
   112         * @return ETrue if file deleted, otherwise EFalse
       
   113         */ 
       
   114         TBool DisplayDeleteSequenceNoteL();
       
   115 
       
   116         /**
       
   117         * From CAknView.
       
   118         * @since 2.8
       
   119         * @param aPrevViewId the ID for previous view we are switching from
       
   120         * @param aCustomMessageId the Uid for message passed to this view
       
   121         * @param aCustomMessage descriptor containing data content for view specific message
       
   122         */
       
   123         void DoActivateL( const TVwsViewId& aPreViewId, TUid aCustomMessageId,
       
   124                                                     const TDesC8& aCustomMessage );
       
   125                                                     
       
   126             
       
   127         /**
       
   128         * From base class MAiwNotifyCallback.
       
   129         * Handles any notification caused by asynchronous ExecuteCommandL
       
   130         * or event.
       
   131         * @param aCmdId Service command associated to the event.
       
   132         * @param aEventId Occured event
       
   133         * @param aEventParamList Event parameters, if any, as defined per
       
   134         * each event.
       
   135         * @param aInParamList Input parameters, if any, given in the
       
   136         *        related HandleCommmandL
       
   137         * @return error code for the callback
       
   138         */
       
   139         TInt HandleNotifyL(
       
   140             TInt aCmdId,
       
   141             TInt aEventId,
       
   142             CAiwGenericParamList& aEventParamList,
       
   143             const CAiwGenericParamList& aInParamList );
       
   144  
       
   145     private:    // New functions
       
   146 
       
   147         /**
       
   148         * From CAknView.
       
   149         * @since 2.8
       
   150         */
       
   151         void DoDeactivate();
       
   152 
       
   153         /**
       
   154         * From CCamViewBase
       
   155         * Set the view's title text
       
   156         * @since 2.8
       
   157         */
       
   158         void SetTitlePaneTextL();
       
   159 
       
   160         // from base class MAknToolbarObserver
       
   161 
       
   162         void DynInitToolbarL( TInt aResourceId, CAknToolbar* aToolbar );
       
   163 
       
   164 
       
   165         /**
       
   166         * From MEikMenuObserver Changes MenuPane dynamically
       
   167         * @param Resource Id
       
   168         * @param Handle to menu pane
       
   169         * @since 2.8
       
   170         */
       
   171         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
   172         
       
   173     // =====================================================
       
   174     // Data
       
   175     private:
       
   176 
       
   177         TBool iRockerKeyPress;
       
   178 
       
   179     // =====================================================
       
   180     };
       
   181 
       
   182 #endif      // CAMSTILLIMAGEPOSTCAPTUREVIEW_H   
       
   183             
       
   184 // End of File