userlibandfileserver/fileserver/shostmassstorage/server/src/include/cusbhostmssession.h
changeset 0 a41df078684a
child 4 56f325a607ea
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // cusbmassstoragesession.h
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalTechnology
       
    21 */
       
    22 
       
    23 #ifndef CUSBMASSSTORAGESESSION_H
       
    24 #define CUSBMASSSTORAGESESSION_H
       
    25 
       
    26 
       
    27 _LIT(KUsbHostMsSrvPncCat, "UsbHosMsServer");
       
    28 enum TUsbMsPanicClient
       
    29     {
       
    30     EUsbMsPanicIllegalIPC
       
    31     };
       
    32 
       
    33 //
       
    34 // Forward declarations
       
    35 //
       
    36 class CUsbMassStorageServer;
       
    37 class CUsbHostMsDevice;
       
    38 class CUsbHostMsServer;
       
    39 
       
    40 /**
       
    41  The CUsbMassStorageSession class
       
    42  Implements a Session of a Symbian OS server for the RUsbMassStorage API
       
    43  */
       
    44 class CUsbHostMsSession : public CSession2
       
    45 	{
       
    46 public:
       
    47 	static CUsbHostMsSession* NewL(CUsbHostMsServer& aServer);
       
    48 	virtual ~CUsbHostMsSession();
       
    49 
       
    50 	// CSession
       
    51 	virtual void ServiceL(const RMessage2& aMessage);
       
    52 
       
    53 protected:
       
    54 	CUsbHostMsSession(CUsbHostMsServer& aServer);
       
    55 	void ConstructL();
       
    56 	void CreateDeviceThreadL(const RMessage2& aMessage);
       
    57 
       
    58 	void DispatchMessageL(const RMessage2& aMessage);
       
    59 
       
    60 private:
       
    61 	CUsbHostMsServer& iUsbHostMsServer;
       
    62 	CUsbHostMsDeviceThread* iDeviceThread;
       
    63 	RThread	iThread;
       
    64 	TUint32 iMsgCount;
       
    65 	};
       
    66 
       
    67 #endif //__CUSBMASSSTORAGESESSION_H__