diff -r 000000000000 -r 1ddebce53859 camerauis/cameraapp/generic/inc/CamStillPostCaptureView.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/camerauis/cameraapp/generic/inc/CamStillPostCaptureView.h Thu Jan 07 16:18:56 2010 +0200 @@ -0,0 +1,184 @@ +/* +* Copyright (c) 2007-2008 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" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: View class for still image Post capture view* +*/ + + +#ifndef CAMSTILLPOSTCAPTUREVIEW_H +#define CAMSTILLPOSTCAPTUREVIEW_H + +// INCLUDES +#include "CamPostCaptureViewBase.h" + +// FORWARD DECLARATIONS +class CCamAppController; +class CCamContainerBase; + + +// CLASS DECLARATION + +/** +* View class for still image capture +* +* @since 2.8 +*/ +class CCamStillPostCaptureView : public CCamPostCaptureViewBase, + public MAiwNotifyCallback + { + // ===================================================== + // Methods + + // ----------------------------------------------------- + // Constructors and destructor + public: + + /** + * Two-phased constructor. + * @since 2.8 + * @param aController Reference to either the application controller + * base class or test base class + * @return pointer to the created CCamStillPostCaptureView object + */ + static CCamStillPostCaptureView* NewLC( CCamAppController& aController ); + + /** + * Destructor. + * @since 2.8 + */ + virtual ~CCamStillPostCaptureView(); + + private: + + /** + * C++ default constructor. + * @since 2.8 + * @param aController Reference to either the application + * controller base class or test base class + */ + CCamStillPostCaptureView( CCamAppController& aController ); + + /** + * By default Symbian 2nd phase constructor is private. + * @since 2.8 + */ + void ConstructL(); + + // ----------------------------------------------------- + // Functions from base classes + public: + + /** + * From CAknView. + * @since 2.8 + * @return UID of view + */ + TUid Id() const; + + /** + * From CAknView Handle commands + * @since 2.8 + * @param aCommand command to be handled + */ + void ProcessCommandL( TInt aCommand ); + + /** + * From CAknView Handle commands + * @since 2.8 + * @param aCommand command to be handled + */ + void HandleCommandL( TInt aCommand ); + + /** + * Displays the delete image/video confirmation note + * @since 2.8 + * @return ETrue if file deleted, otherwise EFalse + */ + TBool DisplayDeleteNoteL(); + + /** + * Displays the delete image sequence confirmation note + * @since 3.0 + * @return ETrue if file deleted, otherwise EFalse + */ + TBool DisplayDeleteSequenceNoteL(); + + /** + * From CAknView. + * @since 2.8 + * @param aPrevViewId the ID for previous view we are switching from + * @param aCustomMessageId the Uid for message passed to this view + * @param aCustomMessage descriptor containing data content for view specific message + */ + void DoActivateL( const TVwsViewId& aPreViewId, TUid aCustomMessageId, + const TDesC8& aCustomMessage ); + + + /** + * From base class MAiwNotifyCallback. + * Handles any notification caused by asynchronous ExecuteCommandL + * or event. + * @param aCmdId Service command associated to the event. + * @param aEventId Occured event + * @param aEventParamList Event parameters, if any, as defined per + * each event. + * @param aInParamList Input parameters, if any, given in the + * related HandleCommmandL + * @return error code for the callback + */ + TInt HandleNotifyL( + TInt aCmdId, + TInt aEventId, + CAiwGenericParamList& aEventParamList, + const CAiwGenericParamList& aInParamList ); + + private: // New functions + + /** + * From CAknView. + * @since 2.8 + */ + void DoDeactivate(); + + /** + * From CCamViewBase + * Set the view's title text + * @since 2.8 + */ + void SetTitlePaneTextL(); + + // from base class MAknToolbarObserver + + void DynInitToolbarL( TInt aResourceId, CAknToolbar* aToolbar ); + + + /** + * From MEikMenuObserver Changes MenuPane dynamically + * @param Resource Id + * @param Handle to menu pane + * @since 2.8 + */ + void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); + + // ===================================================== + // Data + private: + + TBool iRockerKeyPress; + + // ===================================================== + }; + +#endif // CAMSTILLIMAGEPOSTCAPTUREVIEW_H + +// End of File