Update contrib.
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __TESTCAMERAAPP_H__
17 #define __TESTCAMERAAPP_H__
25 #include <ecamadvsettings.h>
26 #include <ecam/camerasnapshot.h>
28 const TUid KUidTestCameraApp={ 0x101F7D31 };
32 class CTCamAppView : public CCoeControl
37 void ConstructL(const TRect& aRect);
38 void DrawImage(CFbsBitmap* aImage) const;
39 TPoint DrawBorders(const TSize& aSize) const;
42 void Draw(const TRect& /*aRect*/) const;
47 class CTCamAppUi : public CEikAppUi, public MCameraObserver, public MCameraObserver2
54 virtual void HandleCommandL(TInt aCommand);
61 void IncImgProcAdjustmentL(TUid aTransformation);
62 void DecImgProcAdjustmentL(TUid aTransformation);
63 void EnableSnapshotL();
64 void DisableSnapshot();
65 // From MCameraObserver
66 virtual void ReserveComplete(TInt aError);
67 virtual void PowerOnComplete(TInt aError);
68 virtual void ViewFinderFrameReady(CFbsBitmap& aFrame);
69 virtual void ImageReady(CFbsBitmap* aBitmap,HBufC8* aData,TInt aError);
70 virtual void FrameBufferReady(MFrameBuffer* aFrameBuffer,TInt aError);
71 //From MCameraObserver2
72 virtual void HandleEvent(const TECAMEvent& aEvent);
73 virtual void ViewFinderReady(MCameraBuffer& aCameraBuffer,TInt aError);
74 virtual void ImageBufferReady(MCameraBuffer& aCameraBuffer,TInt aError);
75 virtual void VideoBufferReady(MCameraBuffer& aCameraBuffer,TInt aError);
77 void CreateDependencyFileL();
78 void RemoveDependencyFile();
80 void SnapshotDataDisplayL();
82 void HandleEvent1(const TECAMEvent& aEvent);
83 void HandleEvent2(const TECAMEvent2& aEvent2);
87 CCamera::CCameraAdvancedSettings* iCameraAdvSet;
88 CCamera::CCameraPresets* iCameraPresets;
89 CCamera::CCameraSnapshot* iCameraSnapshot;
90 CCamera::CCameraImageProcessing* iCameraImgProc;
91 CTCamAppView* iAppView;
97 class CTCamDocument : public CEikDocument
100 CTCamDocument(CEikApplication& aApp);
103 CEikAppUi* CreateAppUiL();
108 class CTCamApp : public CEikApplication
111 // from CApaApplication
112 CApaDocument* CreateDocumentL();
113 TUid AppDllUid() const;