mtptransports/mtpptpiptransport/ptpipplugin/inc/cptpiptransport.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2008-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  @internalComponent
       
    18 */
       
    19 
       
    20 #ifndef CPTPIPTRANSPORT_H_
       
    21 #define CPTPIPTRANSPORT_H_
       
    22 
       
    23 #include "cmtptransportplugin.h"
       
    24 #include "mtpdebug.h"
       
    25 
       
    26 class CPTPIPConnection;
       
    27 
       
    28 /**
       
    29 
       
    30 PTPIP plugin transport:
       
    31 
       
    32 Implements the transport plug-in for using MTP over TCPIP as defined by the 
       
    33 PTPIP Specification.
       
    34 
       
    35 The MTP protocol is currrently supported by Symbian over two transports, 
       
    36 USB and TCP/IP. 
       
    37 The PTPIP specification details how the MPT protocol can be used over TCP/IP. 
       
    38 Thus the transport plugin for taking MTP over TCPIP is called PTPIP, 
       
    39 after the specification which it implements. 
       
    40 
       
    41 This class implements the API functions given by the mtp framework for a 
       
    42 transport as defined in the CMTPTransportPlugin class. 
       
    43 @internalComponent
       
    44  
       
    45 */
       
    46 class CPTPIPTransport : public CMTPTransportPlugin
       
    47 	{
       
    48 
       
    49 public :
       
    50 	static TAny* NewL(TAny* aParameter);
       
    51 	~CPTPIPTransport();
       
    52 
       
    53 public : // from CMTPTransportPlugin	
       
    54 	void ModeChanged(TMTPOperationalMode aMode) ;
       
    55 	void StartL(MMTPConnectionMgr& aConnectionMgr) ;
       
    56 	void Stop(MMTPConnectionMgr& aConnectionMgr) ;
       
    57 	TAny* GetExtendedInterface(TUid aInterfaceUid) ;
       
    58 
       
    59 private : 
       
    60 	CPTPIPTransport();
       
    61 	void ConstructL();
       
    62 	
       
    63 private : //Owned
       
    64 	/**
       
    65 	The PTPIP device class connection
       
    66 	*/
       
    67 	CPTPIPConnection* iConnection;
       
    68 
       
    69     /**
       
    70     FLOGGER debug trace member variable.
       
    71     */
       
    72     __FLOG_DECLARATION_MEMBER;
       
    73   
       
    74 	};   
       
    75   
       
    76 #endif /*CPTPIPTRANSPORT_H_*/