os/kernelhwsrv/userlibandfileserver/fileserver/smassstorage/inc/cusbmassstoragesession.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2004-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 // Implements a Session of a Symbian OS server for the RUsbMassStorage API
    15 // 
    16 //
    17 
    18 /**
    19  @file
    20  @internalTechnology
    21 */
    22 
    23 #ifndef __CUSBMASSSTORAGESESSION_H__
    24 #define __CUSBMASSSTORAGESESSION_H__
    25 
    26 #include <e32std.h>
    27 #include <e32base.h>
    28 #include "massstoragedebug.h"
    29 #include "usbmsshared.h"
    30 
    31 _LIT(KUsbMsCliPncCat, "UsbMs-Client");
    32 
    33 enum TUsbMsPanicClient
    34     {
    35     EUsbMsPanicIllegalIPC
    36     };
    37 //
    38 // Forward declarations
    39 //
    40 class CUsbMassStorageServer;
    41 
    42 /**
    43  The CUsbMassStorageSession class
    44  Implements a Session of a Symbian OS server for the RUsbMassStorage API
    45  */
    46 class CUsbMassStorageSession : public CSession2
    47 	{
    48 public:
    49 	static CUsbMassStorageSession* NewL(CUsbMassStorageServer& aServer);
    50 	virtual ~CUsbMassStorageSession();
    51 
    52 	// CSession
    53 	virtual void ServiceL(const RMessage2& aMessage);
    54 
    55 protected:
    56 	CUsbMassStorageSession(CUsbMassStorageServer& aServer);
    57 	void ConstructL();
    58 
    59 	void DispatchMessageL(const RMessage2& aMessage);
    60 	TInt Start(const RMessage2& aMessage);
    61 	TInt Stop();
    62 	TInt Shutdown();
    63 
    64 private:
    65  	void GetMsConfigL(const RMessage2& aMessage, TMassStorageConfig& aMsStorage);
    66 	
    67 private:
    68 	CUsbMassStorageServer& iUsbMsServer;
    69 	};
    70 
    71 #endif //__CUSBMASSSTORAGESESSION_H__
    72