userlibandfileserver/fileserver/shostmassstorage/server/src/include/cusbhostmssession.h
changeset 9 96e5fb8b040d
equal deleted inserted replaced
-1:000000000000 9:96e5fb8b040d
       
     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 CUsbHostMsServer;
       
    37 class CUsbHostMsDeviceThread;
       
    38 
       
    39 /**
       
    40  The CUsbMassStorageSession class
       
    41  Implements a Session of a Symbian OS server for the RUsbMassStorage API
       
    42  */
       
    43 class CUsbHostMsSession : public CSession2
       
    44 	{
       
    45 public:
       
    46 	static CUsbHostMsSession* NewL(CUsbHostMsServer& aServer);
       
    47 	virtual ~CUsbHostMsSession();
       
    48 
       
    49 	// CSession
       
    50 	virtual void ServiceL(const RMessage2& aMessage);
       
    51 
       
    52     void MessageRequest(TRequestStatus& aStatus);
       
    53 
       
    54 protected:
       
    55 	CUsbHostMsSession(CUsbHostMsServer& aServer);
       
    56 	void ConstructL();
       
    57 	void CreateDeviceThreadL(const RMessage2& aMessage);
       
    58 
       
    59 	void DispatchMessageL(const RMessage2& aMessage);
       
    60 
       
    61 private:
       
    62 	CUsbHostMsServer& iUsbHostMsServer;
       
    63 	CUsbHostMsDeviceThread* iDeviceThread;
       
    64 	RThread	iThread;
       
    65 
       
    66     TRequestStatus* iClientStatus;
       
    67 	};
       
    68 
       
    69 #endif //__CUSBMASSSTORAGESESSION_H__