os/mm/mmlibs/mmfw/tsrc/mmfintegrationtest/DSCapTestServer/DevSoundServerTestStep.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 
    17 #include <mmf/plugin/mmfhwdeviceimplementationuids.hrh>
    18 #include "DevSoundServerTestStep.h"
    19 #include <e32msgqueue.h>
    20 
    21 
    22 CSDevSoundTestStep1* CSDevSoundTestStep1::NewL()
    23 	{
    24 	CSDevSoundTestStep1* self = new (ELeave) CSDevSoundTestStep1;
    25 	CleanupStack::PushL(self);
    26 	self->ConstructL();
    27 	CleanupStack::Pop();
    28 	return self;
    29 	}
    30 	
    31 void CSDevSoundTestStep1::ConstructL()
    32 	{}
    33 
    34 
    35 void CSDevSoundTestStep1::InitializeComplete (TInt aError)
    36 	{
    37 	iCallbackArray[EInitComplete] ++;
    38 	iCallbackError = aError;
    39 	}
    40 
    41 
    42 void CSDevSoundTestStep1::ToneFinished (TInt aError)
    43 	{
    44 	User::RequestComplete(iStatus, KErrNone);
    45 	iCallbackArray[EToneFinished] ++;
    46 	iCallbackError = aError;
    47 	CActiveScheduler::Stop();
    48 	}
    49 
    50 void CSDevSoundTestStep1::BufferToBeFilled (CMMFBuffer* /*aBuffer*/)
    51 	{}
    52 
    53 void CSDevSoundTestStep1::PlayError (TInt /*aError*/)
    54 	{}
    55 
    56 void CSDevSoundTestStep1::BufferToBeEmptied (CMMFBuffer* /*aBuffer*/)
    57 	{}
    58 
    59 void CSDevSoundTestStep1::RecordError (TInt /*aError*/)
    60 	{}
    61 
    62 void CSDevSoundTestStep1::ConvertError (TInt /*aError*/)
    63 	{}
    64 
    65 void CSDevSoundTestStep1::DeviceMessage (TUid, const TDesC8& /*aMsg*/)
    66 	{}
    67 	
    68 
    69 void CSDevSoundTestStep1::StartProcessing(TRequestStatus& /*aStatus*/)
    70 	{
    71 		//Method implimentaion has been removed as per the part of DEF139262
    72 	}
    73 
    74 TVerdict CSDevSoundTestStep1::EndProcessingAndReturnResult(TDes8& aMessage)
    75 	{
    76 	aMessage.Copy(_L("Done"));
    77 	return EPass;
    78 	}
    79 
    80 CSDevSoundTestStep1::~CSDevSoundTestStep1()
    81 	{}
    82 
    83