os/kernelhwsrv/userlibandfileserver/fileserver/shostmassstorage/server/src/include/cusbhostmssession.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/userlibandfileserver/fileserver/shostmassstorage/server/src/include/cusbhostmssession.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,69 @@
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 +// cusbmassstoragesession.h
1.18 +//
1.19 +//
1.20 +
1.21 +/**
1.22 + @file
1.23 + @internalTechnology
1.24 +*/
1.25 +
1.26 +#ifndef CUSBMASSSTORAGESESSION_H
1.27 +#define CUSBMASSSTORAGESESSION_H
1.28 +
1.29 +
1.30 +_LIT(KUsbHostMsSrvPncCat, "UsbHosMsServer");
1.31 +enum TUsbMsPanicClient
1.32 + {
1.33 + EUsbMsPanicIllegalIPC
1.34 + };
1.35 +
1.36 +//
1.37 +// Forward declarations
1.38 +//
1.39 +class CUsbHostMsServer;
1.40 +class CUsbHostMsDeviceThread;
1.41 +
1.42 +/**
1.43 + The CUsbMassStorageSession class
1.44 + Implements a Session of a Symbian OS server for the RUsbMassStorage API
1.45 + */
1.46 +class CUsbHostMsSession : public CSession2
1.47 + {
1.48 +public:
1.49 + static CUsbHostMsSession* NewL(CUsbHostMsServer& aServer);
1.50 + virtual ~CUsbHostMsSession();
1.51 +
1.52 + // CSession
1.53 + virtual void ServiceL(const RMessage2& aMessage);
1.54 +
1.55 + void MessageRequest(TRequestStatus& aStatus);
1.56 +
1.57 +protected:
1.58 + CUsbHostMsSession(CUsbHostMsServer& aServer);
1.59 + void ConstructL();
1.60 + void CreateDeviceThreadL(const RMessage2& aMessage);
1.61 +
1.62 + void DispatchMessageL(const RMessage2& aMessage);
1.63 +
1.64 +private:
1.65 + CUsbHostMsServer& iUsbHostMsServer;
1.66 + CUsbHostMsDeviceThread* iDeviceThread;
1.67 + RThread iThread;
1.68 +
1.69 + TRequestStatus* iClientStatus;
1.70 + };
1.71 +
1.72 +#endif //__CUSBMASSSTORAGESESSION_H__