os/mm/mmlibs/mmfw/tsrc/mmfunittest/avictrl/testplugins/aviplaycontroller/customaviplaycontroller.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef CUSTOMAVIPLAYCONTROLLER_H
    17 #define CUSTOMAVIPLAYCONTROLLER_H
    18 
    19 #include "aviplaycontroller.h"
    20 
    21 class CCustomMMFMessageHolder : public CBase
    22 	{
    23 public:
    24 	static CCustomMMFMessageHolder* NewL(TMMFMessage& aMessage)
    25 		{return new CCustomMMFMessageHolder(aMessage);}
    26 	TMMFMessage iMessage;
    27 private:
    28 	CCustomMMFMessageHolder(TMMFMessage& aMessage): CBase(), iMessage(aMessage){}
    29 	};
    30 
    31 class CCustomAviPlayController: public CAviPlayController 
    32 	{
    33 public:
    34 	static CMMFController* NewL() ;
    35     virtual ~CCustomAviPlayController();
    36 	
    37 	virtual void ResetL();
    38 	virtual void PrimeL(TMMFMessage& aMessage);
    39 	virtual void CustomCommand(TMMFMessage& aMessage);
    40 	
    41 protected:
    42 	CCustomAviPlayController();
    43 	
    44 private:
    45 	void ConstructL();
    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);
    51 
    52 	
    53 private:
    54 	TBool iMemAllocPrimeTestEnabled;
    55 	TInt iMemAllocPrimeFailCount;
    56 	MDataSource* iDataSource;
    57 	MDataSink* iDataSink;
    58 	};
    59 
    60 #endif