usbclasses/usbphoneasmodem/classimplementation/mscfileserver/inc/mscfilesession.h
changeset 34 7858bc6ead78
parent 31 dfdd8240f7c8
child 35 9d8b04ca6939
equal deleted inserted replaced
31:dfdd8240f7c8 34:7858bc6ead78
     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 "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: Implements a Session of a Symbian OS server for the RUsbMassStorage API
       
    14 // 
       
    15 // 
       
    16 
       
    17 #ifndef MSCFILESESSION_H
       
    18 #define MSCFILESESSION_H
       
    19 
       
    20 #include <e32std.h>
       
    21 #include <e32base.h>
       
    22 #include "usbmscfileshared.h"
       
    23 
       
    24 _LIT(KUsbMsCliPncCat, "UsbMs-Client");
       
    25 
       
    26 enum TUsbMsPanicClient
       
    27     {
       
    28     EUsbMsPanicIllegalIPC
       
    29     };
       
    30 //
       
    31 // Forward declarations
       
    32 //
       
    33 class CMscFileServer;
       
    34 
       
    35 /**
       
    36  The CMscFileSession class
       
    37  Implements a Session of a Symbian OS server for the RUsbMassStorage API
       
    38  */
       
    39 class CMscFileSession : public CSession2
       
    40 	{
       
    41 public:
       
    42 	static CMscFileSession* NewL( CMscFileServer& aServer );
       
    43 	virtual ~CMscFileSession();
       
    44 
       
    45 private:
       
    46     CMscFileSession( CMscFileServer& aServer );
       
    47     void ConstructL();
       
    48 
       
    49 protected:
       
    50 	virtual void ServiceL( const RMessage2& aMessage );
       
    51 	
       
    52 private:
       
    53     void DispatchMessageL( const RMessage2& aMessage );
       
    54 	void SetupLogicalUnitL( const RMessage2& aMessage );
       
    55 	void StartL( const RMessage2& aMessage );
       
    56 	TInt Stop();
       
    57 	TInt Shutdown();
       
    58  	void GetMsConfigL(const RMessage2& aMessage, TMassStorageConfig& aMsStorage);
       
    59 	
       
    60 private:
       
    61 	CMscFileServer& iMscFileServer;
       
    62 	};
       
    63 
       
    64 #endif //MSCFILESESSION_H
       
    65