os/mm/mmlibs/mmfw/tsrc/mmfintegrationtest/ACLNT/OpenFileByHandle7904.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 
     2 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // All rights reserved.
     4 // This component and the accompanying materials are made available
     5 // under the terms of "Eclipse Public License v1.0"
     6 // which accompanies this distribution, and is available
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 //
     9 // Initial Contributors:
    10 // Nokia Corporation - initial contribution.
    11 //
    12 // Contributors:
    13 //
    14 // Description:
    15 // Header file: Basic  tests.
    16 // 
    17 //
    18 
    19 /**
    20  @file OpenFileByHandle7904.h
    21 */
    22 
    23 #ifndef OPENFILEBYHANDLE7904_H__
    24 #define OPENFILEBYHANDLE7904_H__
    25 
    26 #include "TestRecorder.h"
    27 #include "TSI_MMFACLNT.h"
    28 
    29 /** 
    30  * Open new file.
    31  *
    32  * @class CTestMmfAclntOpenFile7904
    33  * 
    34  */
    35 
    36 class CTestMmfAclntOpenFile7904 :  public CTestMmfAclntCodecTest,
    37 								   public MMdaObjectStateChangeObserver,
    38 								   public MMdaAudioPlayerCallback,
    39 								   public MMdaAudioOutputStreamCallback
    40 	{
    41 public:
    42 	static CTestMmfAclntOpenFile7904* NewL( const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TTestFormat aFormat = ENone, const TBool aCreateFile = EFalse );
    43 	static CTestMmfAclntOpenFile7904* NewLC( const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TTestFormat aFormat = ENone, const TBool aCreateFile = EFalse );
    44 	virtual TVerdict DoTestStepL();
    45 	virtual TVerdict DoTestStepPreambleL();
    46 	virtual void MoscoStateChangeEvent( CBase* aObject, TInt aPreviousState, TInt aCurrentState, TInt aErrorCode );
    47 
    48 	// from MMdaAudioPlayerCallback
    49 public:
    50 	virtual void MapcInitComplete( TInt aError, const TTimeIntervalMicroSeconds& aDuration );
    51 	virtual void MapcPlayComplete( TInt aError );
    52 
    53 	// from MMdaAudioOutputStreamCallback
    54 public:
    55 	virtual void MaoscOpenComplete( TInt aError );
    56 	virtual void MaoscBufferCopied( TInt aError, const TDesC8& aBuffer );
    57 	virtual void MaoscPlayComplete( TInt aError );
    58 
    59 private:
    60 	CTestMmfAclntOpenFile7904( const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TTestFormat aFormat = ENone, const TBool aCreateFile = EFalse );
    61 	
    62 private:
    63 	TInt iError;
    64 	TBool iCreateFile;
    65 	TBuf<KNameBufSize> iSectName;			// Section name for retrieving filename
    66 	TBuf<KNameBufSize> iKeyName;			// Key name for retrieving filename
    67 	} ;
    68 
    69 
    70 #endif	// OPENFILEBYHANDLE7904_H__