os/mm/mmlibs/mmfw/tsrc/mmfunittest/avictrl/testplugins/aviplaycontroller/customaviplaycontroller.h
First public contribution.
1 // Copyright (c) 2007-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 CUSTOMAVIPLAYCONTROLLER_H
17 #define CUSTOMAVIPLAYCONTROLLER_H
19 #include "aviplaycontroller.h"
21 class CCustomMMFMessageHolder : public CBase
24 static CCustomMMFMessageHolder* NewL(TMMFMessage& aMessage)
25 {return new CCustomMMFMessageHolder(aMessage);}
28 CCustomMMFMessageHolder(TMMFMessage& aMessage): CBase(), iMessage(aMessage){}
31 class CCustomAviPlayController: public CAviPlayController
34 static CMMFController* NewL() ;
35 virtual ~CCustomAviPlayController();
37 virtual void ResetL();
38 virtual void PrimeL(TMMFMessage& aMessage);
39 virtual void CustomCommand(TMMFMessage& aMessage);
42 CCustomAviPlayController();
46 void DoMemoryAllocTest1(TMMFMessage& aMessage);
47 void DoPrepareMemoryAllocTest2(TMMFMessage& aMessage);
48 void DoMemoryAllocTest3(TMMFMessage& aMessage);
49 void DoSetPrimetTestEnable(TMMFMessage& aMessage);
50 void DoSetPrimetTestFailCount(TMMFMessage& aMessage);
54 TBool iMemAllocPrimeTestEnabled;
55 TInt iMemAllocPrimeFailCount;
56 MDataSource* iDataSource;