sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: */ sl@0: sl@0: #ifndef TSPCCLIENTINTERFACE_H sl@0: #define TSPCCLIENTINTERFACE_H sl@0: sl@0: sl@0: class TPeripheralInfo; sl@0: class TSenseInfo; sl@0: class MTransport; sl@0: sl@0: sl@0: /** sl@0: This class supports the commands defined in the SCSI PRIMARY COMMAND (SPC) sl@0: interface for a SCSI client. A minimal set of commands is implemented for sl@0: interfacing with SCSI BLOCK devices (SCSI host). The interface class MTransport sl@0: is used to send the command via the transport layer. sl@0: sl@0: @internalTechnology sl@0: sl@0: */ sl@0: class TSpcClientInterface sl@0: { sl@0: public: sl@0: TSpcClientInterface(MTransport& aTransport); sl@0: ~TSpcClientInterface(); sl@0: sl@0: public: sl@0: MTransport& Transport() const; sl@0: sl@0: TInt InquiryL(TPeripheralInfo& aInfo); sl@0: TInt RequestSenseL(TSenseInfo& aSenseInfo); sl@0: TInt TestUnitReadyL(); sl@0: TInt PreventAllowMediumRemovalL(TBool aPrevent); sl@0: sl@0: private: sl@0: MTransport& iTransport; sl@0: }; sl@0: sl@0: /** sl@0: Return a reference to the transport. sl@0: sl@0: @return MTransport& Reference to the transport sl@0: */ sl@0: inline MTransport& TSpcClientInterface::Transport() const sl@0: { sl@0: return iTransport; sl@0: } sl@0: sl@0: #endif // TSPCCLIENTINTERFACE_H