os/kernelhwsrv/userlibandfileserver/fileserver/shostmassstorage/server/protocol/include/tspcclientinterface.h
Update contrib.
1 // Copyright (c) 2008-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
21 #ifndef TSPCCLIENTINTERFACE_H
22 #define TSPCCLIENTINTERFACE_H
25 class TPeripheralInfo;
31 This class supports the commands defined in the SCSI PRIMARY COMMAND (SPC)
32 interface for a SCSI client. A minimal set of commands is implemented for
33 interfacing with SCSI BLOCK devices (SCSI host). The interface class MTransport
34 is used to send the command via the transport layer.
39 class TSpcClientInterface
42 TSpcClientInterface(MTransport& aTransport);
43 ~TSpcClientInterface();
46 MTransport& Transport() const;
48 TInt InquiryL(TPeripheralInfo& aInfo);
49 TInt RequestSenseL(TSenseInfo& aSenseInfo);
50 TInt TestUnitReadyL();
51 TInt PreventAllowMediumRemovalL(TBool aPrevent);
54 MTransport& iTransport;
58 Return a reference to the transport.
60 @return MTransport& Reference to the transport
62 inline MTransport& TSpcClientInterface::Transport() const
67 #endif // TSPCCLIENTINTERFACE_H