os/boardsupport/haitest/bspsvs/suite/bsp/mmc/inc/T_MmcSDDriverServer.inl
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/boardsupport/haitest/bspsvs/suite/bsp/mmc/inc/T_MmcSDDriverServer.inl	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,95 @@
     1.4 +/*
     1.5 +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). 
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +#include "T_MmcSDSocketDriverData.h"
    1.23 +#include "T_MmcSDStackDriverData.h"
    1.24 +#include "T_MmcSDPsuDriverData.h"
    1.25 +#include "T_MmcSDPsuBaseDriverData.h"
    1.26 +#include "T_MmcSDMediaChangeDriverData.h"
    1.27 +#include "T_MmcSDSessionData.h"
    1.28 +
    1.29 +/*@{*/
    1.30 +_LIT(KT_MMCSDSocketDriver,				"MMCSDSocket");
    1.31 +_LIT(KT_MMCSDStackDriver,				"MMCSDStack");
    1.32 +_LIT(KT_MMCSDPsuDriver,					"MMCSDPsu");
    1.33 +_LIT(KT_MMCSDPsuBaseDriver,				"MMCSDPsuBase");
    1.34 +_LIT(KT_MMCSDMediaChangeDriver,			"MMCSDMediaChange");
    1.35 +_LIT(KT_MMCSDSession,					"MMCSDSession");
    1.36 +/*@}*/
    1.37 +
    1.38 +CT_MmcSDDriverServer::CT_MmcSDDriverBlock::CT_MmcSDDriverBlock()
    1.39 +:	CTestBlockController()
    1.40 +	{
    1.41 +	}
    1.42 +
    1.43 +CT_MmcSDDriverServer::CT_MmcSDDriverBlock::~CT_MmcSDDriverBlock()
    1.44 +	{
    1.45 +	}
    1.46 +
    1.47 +CDataWrapper* CT_MmcSDDriverServer::CT_MmcSDDriverBlock::CreateDataL(const TDesC& aData)
    1.48 +	{
    1.49 +	CDataWrapper*	wrapper=NULL;
    1.50 +	if( KT_MMCSDPsuDriver() == aData )
    1.51 +		{
    1.52 +		wrapper=CT_MMCSDPsuDriverData::NewL();
    1.53 +		}
    1.54 +	else if( KT_MMCSDPsuBaseDriver() == aData )
    1.55 +		{
    1.56 +		wrapper=CT_MMCSDPsuBaseDriverData::NewL();
    1.57 +		}
    1.58 +	else if( KT_MMCSDMediaChangeDriver() == aData )
    1.59 +		{
    1.60 +		wrapper=CT_MMCSDMediaChangeDriverData::NewL();
    1.61 +		}
    1.62 +	else if( KT_MMCSDSocketDriver() == aData )
    1.63 +		{
    1.64 +		wrapper=CT_MMCSDSocketDriverData::NewL();
    1.65 +		}
    1.66 +	else if( KT_MMCSDStackDriver() == aData )
    1.67 +		{
    1.68 +		wrapper=CT_MMCSDStackDriverData::NewL();
    1.69 +		}
    1.70 +	else if( KT_MMCSDSession() == aData )
    1.71 +		{
    1.72 +		wrapper=CT_MmcSDSessionData::NewL();
    1.73 +		}
    1.74 +
    1.75 +
    1.76 +	return wrapper;
    1.77 +	}
    1.78 +
    1.79 +CT_MmcSDDriverServer::CT_MmcSDDriverServer()
    1.80 +	{
    1.81 +	}
    1.82 +
    1.83 +CT_MmcSDDriverServer::~CT_MmcSDDriverServer()
    1.84 +	{
    1.85 +	}
    1.86 +
    1.87 +void CT_MmcSDDriverServer::DeleteActiveSchedulerL()
    1.88 +	{
    1.89 +	}
    1.90 +
    1.91 +CTestBlockController* CT_MmcSDDriverServer::CreateTestBlock()
    1.92 +	{
    1.93 +	return new CT_MmcSDDriverBlock();
    1.94 +	}
    1.95 +
    1.96 +
    1.97 +
    1.98 +