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