mmlibs/mmfw/tsrc/mmfintegrationtest/ACLNT/OpenFileByHandle7905.h
changeset 0 40261b775718
equal deleted inserted replaced
-1:000000000000 0:40261b775718
       
     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 OpenFileByHandle7905.h
       
    21 */
       
    22 
       
    23 #ifndef OPENFILEBYHANDLE7905_H__
       
    24 #define OPENFILEBYHANDLE7905_H__
       
    25 
       
    26 #include "TestRecorder.h"
       
    27 #include "TSI_MMFACLNT.h"
       
    28 
       
    29 /** 
       
    30  * Open new file.
       
    31  *
       
    32  * @class CTestMmfAclntOpenFile7905
       
    33  * 
       
    34  */
       
    35 
       
    36 class CTestMmfAclntOpenFile7905 :  public CTestMmfAclntCodecTest,
       
    37 								   public MMdaObjectStateChangeObserver,
       
    38 								   public MMdaAudioPlayerCallback,
       
    39 								   public MMdaAudioOutputStreamCallback
       
    40 	{
       
    41 public:
       
    42 	static CTestMmfAclntOpenFile7905* NewL( const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TTestFormat aFormat = ENone, const TBool aCreateFile = EFalse );
       
    43 	static CTestMmfAclntOpenFile7905* 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 	CTestMmfAclntOpenFile7905( 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	// OPENFILEBYHANDLE7905_H__