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: // cusbmassstoragesession.h sl@0: // sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: */ sl@0: sl@0: #ifndef CUSBMASSSTORAGESESSION_H sl@0: #define CUSBMASSSTORAGESESSION_H sl@0: sl@0: sl@0: _LIT(KUsbHostMsSrvPncCat, "UsbHosMsServer"); sl@0: enum TUsbMsPanicClient sl@0: { sl@0: EUsbMsPanicIllegalIPC sl@0: }; sl@0: sl@0: // sl@0: // Forward declarations sl@0: // sl@0: class CUsbHostMsServer; sl@0: class CUsbHostMsDeviceThread; sl@0: sl@0: /** sl@0: The CUsbMassStorageSession class sl@0: Implements a Session of a Symbian OS server for the RUsbMassStorage API sl@0: */ sl@0: class CUsbHostMsSession : public CSession2 sl@0: { sl@0: public: sl@0: static CUsbHostMsSession* NewL(CUsbHostMsServer& aServer); sl@0: virtual ~CUsbHostMsSession(); sl@0: sl@0: // CSession sl@0: virtual void ServiceL(const RMessage2& aMessage); sl@0: sl@0: void MessageRequest(TRequestStatus& aStatus); sl@0: sl@0: protected: sl@0: CUsbHostMsSession(CUsbHostMsServer& aServer); sl@0: void ConstructL(); sl@0: void CreateDeviceThreadL(const RMessage2& aMessage); sl@0: sl@0: void DispatchMessageL(const RMessage2& aMessage); sl@0: sl@0: private: sl@0: CUsbHostMsServer& iUsbHostMsServer; sl@0: CUsbHostMsDeviceThread* iDeviceThread; sl@0: RThread iThread; sl@0: sl@0: TRequestStatus* iClientStatus; sl@0: }; sl@0: sl@0: #endif //__CUSBMASSSTORAGESESSION_H__