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__
26 const TUid KUidTestCameraApp={ 268450181 };
30 class CTCamAppView : public CCoeControl
35 void ConstructL(const TRect& aRect);
36 void DrawImage(CFbsBitmap* aImage) const;
37 TPoint DrawBorders(const TSize& aSize) const;
40 void Draw(const TRect& /*aRect*/) const;
45 class CTCamAppUi : public CAknAppUi, public MCameraObserver
52 virtual void HandleCommandL(TInt aCommand);
57 // From MCameraObserver
58 virtual void ReserveComplete(TInt aError);
59 virtual void PowerOnComplete(TInt aError);
60 virtual void ViewFinderFrameReady(CFbsBitmap& aFrame);
61 virtual void ImageReady(CFbsBitmap* aBitmap,HBufC8* aData,TInt aError);
62 virtual void FrameBufferReady(MFrameBuffer* aFrameBuffer,TInt aError);
65 CTCamAppView* iAppView;
70 class CTCamDocument : public CAknDocument
73 CTCamDocument(CEikApplication& aApp);
76 CEikAppUi* CreateAppUiL();
81 class CTCamApp : public CAknApplication
84 // from CApaApplication
85 CApaDocument* CreateDocumentL();
86 TUid AppDllUid() const;