kerneltest/f32test/smassstorage/src/t_gml_tur_controller.cpp
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     1 // Copyright (c) 2004-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 the License "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 "e32base.h"
       
    17 #include "e32base_private.h"
       
    18 #include "t_gml_tur_controller.h"
       
    19 
       
    20 /**
       
    21  Stub MS controller for bulk only transport testing.  
       
    22 */
       
    23 
       
    24 CUsbMassStorageController::CUsbMassStorageController() : CActive(EPriorityStandard)
       
    25 	{
       
    26 	}
       
    27 
       
    28 CUsbMassStorageController::~CUsbMassStorageController()
       
    29 	{
       
    30 	}
       
    31 	
       
    32 void CUsbMassStorageController::CreateL(TUint /*aMaxDrives*/)
       
    33 	{
       
    34 	CActiveScheduler::Add(this);
       
    35 	iStatus = KRequestPending;
       
    36 	SetActive();
       
    37 	}
       
    38 	
       
    39 TInt CUsbMassStorageController::Start(TMassStorageConfig& /* aConfig */)
       
    40 	{
       
    41 	return 0;
       
    42 	}
       
    43 	
       
    44 TInt CUsbMassStorageController::Stop()
       
    45 	{
       
    46 	return 0;
       
    47 	}
       
    48 	
       
    49 void CUsbMassStorageController::Reset()
       
    50 	{
       
    51 	iReset = ETrue;
       
    52 	}
       
    53 
       
    54 void CUsbMassStorageController::GetTransport(MTransportBase* &aTransport)
       
    55 	{
       
    56 	aTransport = iTransport;
       
    57 	}
       
    58 
       
    59 void CUsbMassStorageController::SetTransport(MTransportBase* aTransport)
       
    60 	{
       
    61 	iTransport = aTransport;
       
    62 	}
       
    63 
       
    64 TBool CUsbMassStorageController::IsReset()
       
    65 	{
       
    66 	TBool r = iReset;
       
    67 	iReset = EFalse;
       
    68 	return r;
       
    69 	}
       
    70 	
       
    71 void CUsbMassStorageController::RunL()
       
    72 	{
       
    73 	CActiveScheduler::Stop();
       
    74 	}
       
    75 	
       
    76 void CUsbMassStorageController::DoCancel()
       
    77 	{
       
    78 	}
       
    79 	
       
    80 CDriveManager& CUsbMassStorageController::DriveManager()
       
    81 	{
       
    82 	return iStubDriveManager;
       
    83 	}
       
    84 
       
    85 TInt CDriveManager::Connect(TUint /*aLun*/)
       
    86 	{
       
    87 	return KErrNone;
       
    88 	}
       
    89 
       
    90 TInt CDriveManager::Disconnect(TUint /*aLun*/)
       
    91 	{
       
    92 	return KErrNone;
       
    93 	}
       
    94