mmlibs/mmfw/tsrc/mmfintegrationtest/ACLNT/OpenFileByHandle1211.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 OpenFileByHandle1211.h
       
    21 */
       
    22 
       
    23 #ifndef OPENFILEBYHANDLE1211_H__
       
    24 #define OPENFILEBYHANDLE1211_H__
       
    25 
       
    26 #include "TestRecorder.h"
       
    27 #include "TSI_MMFACLNT.h"
       
    28 
       
    29 /** 
       
    30  * Open new file.
       
    31  *
       
    32  * @class CTestMmfAclntOpenFile1211
       
    33  * 
       
    34  */
       
    35 
       
    36 class CTestMmfAclntOpenFile1211 :  public CTestMmfAclntCodecTest,
       
    37 								   public MMdaObjectStateChangeObserver,
       
    38 								   public MMdaAudioPlayerCallback,
       
    39 								   public MMdaAudioOutputStreamCallback
       
    40 	{
       
    41 public:
       
    42 	static CTestMmfAclntOpenFile1211* NewL( const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TTestFormat aFormat = ENone, const TBool aCreateFile = EFalse );
       
    43 	static CTestMmfAclntOpenFile1211* 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 protected:
       
    60 	CTestMmfAclntOpenFile1211( const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TTestFormat aFormat = ENone, const TBool aCreateFile = EFalse );
       
    61 
       
    62 	TVerdict PerformTestStepL();
       
    63 	
       
    64 	TInt iError;
       
    65 	TBool iCreateFile;
       
    66 	TBuf<KNameBufSize> iSectName;			// Section name for retrieving filename
       
    67 	TBuf<KNameBufSize> iKeyName;			// Key name for retrieving filename
       
    68 	} ;
       
    69 
       
    70 
       
    71 #endif	// OPENFILEBYHANDLE1211_H__