userlibandfileserver/fileserver/smassstorage/inc/cusbmassstoragesession.h
changeset 286 48e57fb1237e
parent 0 a41df078684a
equal deleted inserted replaced
285:ff5437e4337c 286:48e57fb1237e
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    10 //
    10 //
    11 // Contributors:
    11 // Contributors:
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 // Implements a Session of a Symbian OS server for the RUsbMassStorage API
    14 // Implements a Session of a Symbian OS server for the RUsbMassStorage API
    15 // 
    15 //
    16 //
    16 //
    17 
    17 
    18 /**
    18 /**
    19  @file
    19  @file
    20  @internalTechnology
    20  @internalTechnology
    21 */
    21 */
    22 
    22 
    23 #ifndef __CUSBMASSSTORAGESESSION_H__
    23 #ifndef __CUSBMASSSTORAGESESSION_H__
    24 #define __CUSBMASSSTORAGESESSION_H__
    24 #define __CUSBMASSSTORAGESESSION_H__
    25 
    25 
    26 #include <e32std.h>
       
    27 #include <e32base.h>
       
    28 #include "massstoragedebug.h"
       
    29 #include "usbmsshared.h"
       
    30 
    26 
    31 _LIT(KUsbMsCliPncCat, "UsbMs-Client");
    27 _LIT(KUsbMsCliPncCat, "UsbMs-Client");
    32 
    28 
    33 enum TUsbMsPanicClient
    29 enum TUsbMsPanicClient
    34     {
    30     {
    42 /**
    38 /**
    43  The CUsbMassStorageSession class
    39  The CUsbMassStorageSession class
    44  Implements a Session of a Symbian OS server for the RUsbMassStorage API
    40  Implements a Session of a Symbian OS server for the RUsbMassStorage API
    45  */
    41  */
    46 class CUsbMassStorageSession : public CSession2
    42 class CUsbMassStorageSession : public CSession2
    47 	{
    43     {
    48 public:
    44 public:
    49 	static CUsbMassStorageSession* NewL(CUsbMassStorageServer& aServer);
    45     static CUsbMassStorageSession* NewL(CUsbMassStorageServer& aServer);
    50 	virtual ~CUsbMassStorageSession();
    46     virtual ~CUsbMassStorageSession();
    51 
    47 
    52 	// CSession
    48     // CSession
    53 	virtual void ServiceL(const RMessage2& aMessage);
    49     virtual void ServiceL(const RMessage2& aMessage);
    54 
    50 
    55 protected:
    51 protected:
    56 	CUsbMassStorageSession(CUsbMassStorageServer& aServer);
    52     CUsbMassStorageSession(CUsbMassStorageServer& aServer);
    57 	void ConstructL();
    53     void ConstructL();
    58 
    54 
    59 	void DispatchMessageL(const RMessage2& aMessage);
    55     void DispatchMessageL(const RMessage2& aMessage);
    60 	TInt Start(const RMessage2& aMessage);
    56     TInt Start(const RMessage2& aMessage);
    61 	TInt Stop();
    57     TInt Stop();
    62 	TInt Shutdown();
    58     TInt Shutdown();
    63 
    59 
    64 private:
    60 private:
    65  	void GetMsConfigL(const RMessage2& aMessage, TMassStorageConfig& aMsStorage);
    61     void GetMsConfigL(const RMessage2& aMessage, TMassStorageConfig& aMsStorage);
    66 	
    62 
    67 private:
    63 private:
    68 	CUsbMassStorageServer& iUsbMsServer;
    64     CUsbMassStorageServer& iUsbMsServer;
    69 	};
    65     };
    70 
    66 
    71 #endif //__CUSBMASSSTORAGESESSION_H__
    67 #endif //__CUSBMASSSTORAGESESSION_H__
    72 
    68