os/kernelhwsrv/kerneltest/f32test/shostmassstorage/msman/server/cusbhostsession.h
Update contrib.
1 // Copyright (c) 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
15 // Implements a Session of a Symbian OS server for the RUsbMassStorage API
26 #ifndef CUSBHOSTSESSION_H
27 #define CUSBHOSTSESSION_H
30 _LIT(KUsbHostClientPncCat, "UsbHostClient");
32 enum TUsbHostPanicClient
34 EUsbHostPanicIllegalIPC
38 class CUsbHostSession : public CSession2
41 static CUsbHostSession* NewL();
42 virtual void CreateL();
54 void ServiceL(const RMessage2& aMessage);
55 void DispatchMessageL(const RMessage2& aMessage);
59 TInt Start(const RMessage2& aMessage);
63 void PanicClient(const RMessage2& aMessage,TInt aPanic) const;
66 CUsbHostServer& Server();
70 inline CUsbHostServer& CUsbHostSession::Server()
72 return *static_cast<CUsbHostServer*>(const_cast<CServer2*>(CSession2::Server()));
76 #endif //CUSBHOSTSESSION_H