mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/inc/AudioResourceNotification.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/inc/AudioResourceNotification.h Tue Feb 02 01:08:46 2010 +0200
@@ -0,0 +1,61 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: AudioRecorder Test
+*
+*/
+
+
+#if !defined(AFX_AudioResourceNotification_H__0DB26F38_987F_4224_9F9D_6389F4FC61F4__INCLUDED_)
+#define AFX_AudioResourceNotification_H__0DB26F38_987F_4224_9F9D_6389F4FC61F4__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#include <MdaAudioSampleEditor.h>
+#include "TestCaseBase.h"
+
+class CAudioResourceNotification : public CTestCaseBase,
+public MMdaObjectStateChangeObserver,public MAudioLoadingObserver,
+public MMMFAudioResourceNotificationCallback
+{
+public:
+ CAudioResourceNotification(CTestModuleIf *aConsole, CStifLogger *aLogger);
+ virtual ~CAudioResourceNotification();
+
+ static TInt RunTestL(CTestModuleIf *aConsole, CStifLogger *aLogger, CStifSectionParser *aParser, TInt* clipCounter);
+
+ virtual void MoscoStateChangeEvent(CBase* aObject, TInt aPreviousState, TInt aCurrentState, TInt aErrorCode);
+
+ virtual void MaloLoadingStarted();
+ virtual void MaloLoadingComplete();
+
+ virtual void MarncResourceAvailable(TUid aNotificationEventId, const TDesC8 &aNotificationData);
+
+
+ static void GetFileName(TPtrC path, TFileName* fileName);
+
+
+private:
+
+ static CAudioResourceNotification* NewL(CTestModuleIf *aConsole, CStifLogger *aLogger, TFileName* fileName);
+
+ CMdaAudioRecorderUtility* recorder;
+
+ void ConstructL(TFileName* fileName);
+
+
+};
+
+#endif // !defined(AFX_AudioResourceNotification_H__0DB26F38_987F_4224_9F9D_6389F4FC61F4__INCLUDED_)