First public contribution.
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 __MMF_VIDEO_CALLBACK_H__
17 #define __MMF_VIDEO_CALLBACK_H__
19 #include <videoplayer.h>
20 #include <videorecorder.h>
24 Active object utility class to allow the Callback to be called asynchronously.
26 class CMMFVideoPlayerCallback : public CActive
36 CMMFVideoPlayerCallback(MVideoPlayerUtilityObserver& aCallback);
37 ~CMMFVideoPlayerCallback();
38 void Signal(TInt aError, TCallbackEvent event);
39 void SetFrame(CFbsBitmap& aBitmap);
40 TRequestStatus& ActiveStatus();
45 TCallbackEvent iEvent;
46 MVideoPlayerUtilityObserver& iCallback;
52 Active object utility class to allow the Callback to be called asynchronously.
54 class CMMFVideoRecorderCallback : public CActive
59 EPrepareCompleteEvent,
63 CMMFVideoRecorderCallback(MVideoRecorderUtilityObserver& aCallback);
64 ~CMMFVideoRecorderCallback();
65 void Signal(TInt aError, TCallbackEvent event);
70 TCallbackEvent iEvent;
71 MVideoRecorderUtilityObserver& iCallback;
75 #endif //__MMF_VIDEO_CALLBACK_H__