os/kernelhwsrv/userlibandfileserver/fileserver/shostmassstorage/server/protocol/include/tspcclientinterface.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/userlibandfileserver/fileserver/shostmassstorage/server/protocol/include/tspcclientinterface.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,67 @@
     1.4 +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +/**
    1.20 + @file
    1.21 + @internalTechnology
    1.22 +*/
    1.23 +
    1.24 +#ifndef TSPCCLIENTINTERFACE_H
    1.25 +#define TSPCCLIENTINTERFACE_H
    1.26 +
    1.27 +
    1.28 +class TPeripheralInfo;
    1.29 +class TSenseInfo;
    1.30 +class MTransport;
    1.31 +
    1.32 +
    1.33 +/**
    1.34 +This class supports the commands defined in the SCSI PRIMARY COMMAND (SPC)
    1.35 +interface for a SCSI client. A minimal set of commands is implemented for
    1.36 +interfacing with SCSI BLOCK devices (SCSI host). The interface class MTransport
    1.37 +is used to send the command via the transport layer.
    1.38 +
    1.39 +@internalTechnology
    1.40 +
    1.41 +*/
    1.42 +class TSpcClientInterface
    1.43 +    {
    1.44 +public:
    1.45 +	TSpcClientInterface(MTransport& aTransport);
    1.46 +	~TSpcClientInterface();
    1.47 +
    1.48 +public:
    1.49 +    MTransport& Transport() const;
    1.50 +
    1.51 +	TInt InquiryL(TPeripheralInfo& aInfo);
    1.52 +	TInt RequestSenseL(TSenseInfo& aSenseInfo);
    1.53 +	TInt TestUnitReadyL();
    1.54 +    TInt PreventAllowMediumRemovalL(TBool aPrevent);
    1.55 +
    1.56 +private:
    1.57 +    MTransport& iTransport;
    1.58 +    };
    1.59 +
    1.60 +/**
    1.61 +Return a reference to the transport.
    1.62 +
    1.63 +@return MTransport& Reference to the transport
    1.64 +*/
    1.65 +inline MTransport& TSpcClientInterface::Transport() const
    1.66 +    {
    1.67 +    return iTransport;
    1.68 +    }
    1.69 +
    1.70 +#endif // TSPCCLIENTINTERFACE_H
    1.71 \ No newline at end of file