os/kernelhwsrv/userlibandfileserver/fileserver/shostmassstorage/server/controller/include/cusbmssuspendresume.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/controller/include/cusbmssuspendresume.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,44 @@
     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 __CUSBIFACE_SUSPEND_RESUME_H__
    1.25 +#define __CUSBIFACE_SUSPEND_RESUME_H__
    1.26 +
    1.27 +class CUsbMsIfaceSuspendResume :  public CActive
    1.28 +	{
    1.29 +public:
    1.30 +	static CUsbMsIfaceSuspendResume* NewL(MTransport*, CUsbHostMsDevice*);
    1.31 +	CUsbMsIfaceSuspendResume(MTransport*, CUsbHostMsDevice*);
    1.32 +	~CUsbMsIfaceSuspendResume();
    1.33 +	void Suspend();
    1.34 +	void Resume(TRequestStatus&);
    1.35 +private:
    1.36 +	void RunL();
    1.37 +	void DoCancel();
    1.38 +    TInt RunError(TInt aError);
    1.39 +
    1.40 +private:
    1.41 +	MTransport* iTransport;
    1.42 +	CUsbHostMsDevice* iDevice;
    1.43 +	TBool iCancelSuspend;
    1.44 +	TRequestStatus* iDeviceStatus;
    1.45 +	};
    1.46 +
    1.47 +#endif // __CUSBIFACE_SUSPEND_RESUME_H__