os/kernelhwsrv/userlibandfileserver/fileserver/shostmassstorage/server/src/include/cusbhostmssession.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.
14 // cusbmassstoragesession.h
23 #ifndef CUSBMASSSTORAGESESSION_H
24 #define CUSBMASSSTORAGESESSION_H
27 _LIT(KUsbHostMsSrvPncCat, "UsbHosMsServer");
28 enum TUsbMsPanicClient
34 // Forward declarations
36 class CUsbHostMsServer;
37 class CUsbHostMsDeviceThread;
40 The CUsbMassStorageSession class
41 Implements a Session of a Symbian OS server for the RUsbMassStorage API
43 class CUsbHostMsSession : public CSession2
46 static CUsbHostMsSession* NewL(CUsbHostMsServer& aServer);
47 virtual ~CUsbHostMsSession();
50 virtual void ServiceL(const RMessage2& aMessage);
52 void MessageRequest(TRequestStatus& aStatus);
55 CUsbHostMsSession(CUsbHostMsServer& aServer);
57 void CreateDeviceThreadL(const RMessage2& aMessage);
59 void DispatchMessageL(const RMessage2& aMessage);
62 CUsbHostMsServer& iUsbHostMsServer;
63 CUsbHostMsDeviceThread* iDeviceThread;
66 TRequestStatus* iClientStatus;
69 #endif //__CUSBMASSSTORAGESESSION_H__