mtptransports/mtpptpiptransport/ptpipcontroller/interface/rptpipframework.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2006-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 // An instance of  PTP/IP Controller is created by RPTPIPFramework::OpenL().
       
    15 // Controller() method returns the instance created by OpenL().In the destructor of the 
       
    16 // caller of Controller(), RPTPIPFramework::Close() has to be called to delete the instance of 
       
    17 // PTP/IP Controller.
       
    18 // publishedPartner
       
    19 // 
       
    20 //
       
    21 
       
    22 
       
    23 #ifndef __RPTPIPFRAMEWORK_H__
       
    24 #define __RPTPIPFRAMEWORK_H__
       
    25 
       
    26 #include <mtp/mptpipcontroller.h>
       
    27 
       
    28 
       
    29 class CPTPIPController;
       
    30 
       
    31 class RPTPIPFramework
       
    32 {
       
    33 	public:
       
    34 			
       
    35 			IMPORT_C void OpenL();		
       
    36 			IMPORT_C MPTPIPController& Controller();
       
    37 			IMPORT_C void Close();	
       
    38 			IMPORT_C RPTPIPFramework();					
       
    39 													
       
    40 	private:
       
    41 																				
       
    42 			CPTPIPController* iCtrl;													 
       
    43 };
       
    44 
       
    45 #endif