mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/inc/CustomCommand.h
changeset 0 71ca22bcf22a
child 43 9894ed580e4a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2007 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:  AudioRecorder Test
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #if !defined(AFX_CustomCommand_H__0DB26F38_987F_4224_9F9D_6389F4FC61F4__INCLUDED_)
       
    20 #define AFX_CustomCommand_H__0DB26F38_987F_4224_9F9D_6389F4FC61F4__INCLUDED_
       
    21 
       
    22 #if _MSC_VER > 1000
       
    23 #pragma once
       
    24 #endif // _MSC_VER > 1000
       
    25 
       
    26 #include <MdaAudioSampleEditor.h>
       
    27 #include "TestCaseBase.h"
       
    28 
       
    29 class CCustomCommand  : public CTestCaseBase,
       
    30 public MMdaObjectStateChangeObserver,public MAudioLoadingObserver,
       
    31 public MMMFAudioResourceNotificationCallback
       
    32 {
       
    33 public:
       
    34 	CCustomCommand(CTestModuleIf *aConsole, CStifLogger *aLogger);
       
    35 	virtual ~CCustomCommand();
       
    36 
       
    37 	static TInt RunTestL(CTestModuleIf *aConsole, CStifLogger *aLogger, CStifSectionParser *aParser, TInt* clipCounter);
       
    38 
       
    39 	virtual void MoscoStateChangeEvent(CBase* aObject, TInt aPreviousState, TInt aCurrentState, TInt aErrorCode);
       
    40 
       
    41     virtual void MaloLoadingStarted();
       
    42 	virtual void MaloLoadingComplete();
       
    43 
       
    44 	virtual void MarncResourceAvailable(TUid aNotificationEventId, const TDesC8 &aNotificationData);
       
    45 
       
    46 
       
    47 	static void GetFileName(TPtrC path, TFileName* fileName);
       
    48 
       
    49 
       
    50 private:
       
    51 
       
    52 	static CCustomCommand* NewL(CTestModuleIf *aConsole, CStifLogger *aLogger, TFileName* fileName);
       
    53 
       
    54 	CMdaAudioRecorderUtility* recorder;
       
    55 
       
    56 	void ConstructL(TFileName* fileName);
       
    57 
       
    58 
       
    59 };
       
    60 
       
    61 #endif // !defined(AFX_CustomCommand_H__0DB26F38_987F_4224_9F9D_6389F4FC61F4__INCLUDED_)