sl@0: sl@0: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef ECAMOBSERVERTEST_H sl@0: #define ECAMOBSERVERTEST_H sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: class RECamObserverTest : public RTestStep, public MCameraObserver2 sl@0: { sl@0: public: sl@0: //MCameraObserver2 sl@0: void HandleEvent(const TECAMEvent& aEvent); sl@0: void ViewFinderReady(MCameraBuffer& aCameraBuffer,TInt aError); sl@0: void ImageBufferReady(MCameraBuffer& aCameraBuffer,TInt aError); sl@0: void VideoBufferReady(MCameraBuffer& aCameraBuffer,TInt aError); sl@0: void CheckNotification(const TUid& aEventUid, TVerdict& aResult); sl@0: void CheckNotificationTwo(const TUid& aEventUid, TVerdict& aResult); sl@0: void CheckNotificationNeg(const TUid& aEventUid, TVerdict& aResult); sl@0: void CheckNotificationImgProc(const TUid& aEventUid, TInt aParam, TVerdict& aResult); sl@0: sl@0: protected: sl@0: // from RTestStep; sl@0: TVerdict DoTestStepL()=0; sl@0: sl@0: protected: sl@0: TUid iEventUid; sl@0: TUid iEventUidTwo; sl@0: TInt iError; sl@0: TInt iParam; //for TECAMEvent2 events sl@0: }; sl@0: sl@0: sl@0: class RECamContinousZoomObserverTest : public RTestStep, public MContinuousZoomObserver sl@0: { sl@0: public: sl@0: //MContinuousZoomObserver sl@0: void ContinuousZoomProgress(CCamera::CCameraContinuousZoom& aContinuousZoomHandle, TInt aZoomFactor, TInt aError); sl@0: void ContinuousZoomCompleted(CCamera::CCameraContinuousZoom& aContinuousZoomHandle, TInt aFinalZoomFactor, TInt aError); sl@0: TInt CustomInterface(TUid aInterface, TAny*& aPtrInterface); sl@0: sl@0: protected: sl@0: // from RTestStep sl@0: TVerdict DoTestStepL()=0; sl@0: }; sl@0: sl@0: #endif // ECAMOBSERVERTEST_H