kerneltest/e32test/usb/t_usb_device/include/transfersession.h
changeset 247 d8d70de2bd36
equal deleted inserted replaced
201:43365a9b78a3 247:d8d70de2bd36
       
     1 /**
       
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Implements a Session of a Symbian OS server for the RUsb API
       
    16 * 
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 /**
       
    23  @file
       
    24 */
       
    25 
       
    26 #ifndef __CTRANSFERSESSION_H__
       
    27 #define __CTRANSFERSESSION_H__
       
    28 
       
    29 #include <e32std.h>
       
    30 #include "general.h"
       
    31 
       
    32 class CTransferServer;
       
    33 class CTransferHandle;
       
    34 
       
    35 NONSHARABLE_CLASS(CTransferSession) : public CSession2
       
    36 	{
       
    37 public:
       
    38 	static CTransferSession* NewL(CTransferServer* aServer);
       
    39 	virtual ~CTransferSession();
       
    40 
       
    41 	// CSession2
       
    42 	virtual void ServiceL(const RMessage2& aMessage);
       
    43 	virtual void CreateL();
       
    44 	void TransferHandleL();
       
    45 
       
    46 protected:
       
    47 	CTransferSession(CTransferServer* aServer);
       
    48 
       
    49 	void DispatchMessageL(const RMessage2& aMessage);
       
    50 
       
    51 private:
       
    52 	CTransferServer* iTransferServer;
       
    53 	CConsoleBase* iConsole;
       
    54 		
       
    55 	};
       
    56 
       
    57 #endif //__CTRANSFERSESSION_H__