os/mm/mmlibs/mmfw/tsrc/mmfintegrationtest/SDevSound/SDSCapTestServer/src/CapTestStep0036.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2007-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 //#include "captestinfoserver.h"
    17 #include "CapTestStep0036.h"
    18 
    19 CSecDevSndTS0036* CSecDevSndTS0036::NewL(TThreadId aClientTid)
    20 	{
    21 	CSecDevSndTS0036* self = new (ELeave) CSecDevSndTS0036(aClientTid);
    22 	CleanupStack::PushL(self);
    23 	self->ConstructL();
    24 	CleanupStack::Pop();
    25 	return self;
    26 	}
    27 
    28 CSecDevSndTS0036::CSecDevSndTS0036(TThreadId aClientTid)
    29 	{
    30 	iClientTid = aClientTid;
    31 	}
    32 
    33 void CSecDevSndTS0036::ConstructL()
    34 	{
    35 	//iInfoServer = CCapTestInfoServer::NewL();
    36 	RThread serverThread;
    37 	iServerTid = serverThread.Id();
    38 	serverThread.Close();
    39 	}
    40 	
    41 void CSecDevSndTS0036::StartProcessing(TRequestStatus& aStatus)
    42 	{
    43 	TRequestStatus* status = &aStatus;
    44 	User::RequestComplete(status, KErrNone);
    45 	}
    46 
    47 TVerdict CSecDevSndTS0036::EndProcessingAndReturnResult(TDes8& aMessage)
    48 	{
    49 	TPckgBuf<TThreadId> serverTId(iServerTid);
    50 	aMessage.Copy(serverTId);
    51 	return EPass;
    52 	}
    53 
    54 CSecDevSndTS0036::~CSecDevSndTS0036()
    55 	{
    56 	//delete iInfoServer;
    57 	}
    58 
    59