dbgagents/trkagent/toolsstarter/toolsstarterserver/inc/toolslaunchmgr.h
changeset 0 c6b0df440bee
equal deleted inserted replaced
-1:000000000000 0:c6b0df440bee
       
     1 /*
       
     2 * Copyright (c) 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 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef     _TOOLSLAUNHCMGR_H_
       
    20 #define     _TOOLSLAUNHCMGR_H_
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <e32std.h>
       
    25 #include "launchmanagerinterface.h"
       
    26 #include "toolsprocess.h"
       
    27 #include "toolsconnectionlistener.h"
       
    28 #include "toolsusbportlistener.h"
       
    29 #include "sessionmessgelistener.h"
       
    30 
       
    31 
       
    32 // DATA TYPES
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 
       
    39 class CToolsLaunchMgr: public CBase, public ILaunchManagerInterface, public MToolsConnectionListener
       
    40 {
       
    41     public:  
       
    42         static CToolsLaunchMgr* NewL();
       
    43         static CToolsLaunchMgr* NewLC();
       
    44         ~CToolsLaunchMgr();
       
    45 
       
    46 	private:
       
    47 	    
       
    48 		CToolsLaunchMgr();
       
    49 		void ConstructL();
       
    50 		void LaunchTools(TCmdLineConnType aConnType);
       
    51 		void StopTools();
       
    52 				        
       
    53 	public:        
       
    54 	    // from MConnectionListener
       
    55 	    void ConnectionAvailable();
       
    56 	    void ConnectionUnAvailable();
       
    57 
       
    58          //From ILaunchManagerInterface 
       
    59 	    void RegisterListener(MConnStateListener* aListener);           
       
    60 	    void UnregisterListener(MConnStateListener* aListener);
       
    61 	    TConnectionStatus GetUsbConnStatus();
       
    62 	    void Launch();
       
    63 	    
       
    64 	public:
       
    65 	    
       
    66 	    TInt CloseCrashLogger();    
       
    67 	    TInt TerminateProcess(const TDesC& aProcessName);
       
    68         
       
    69     private:
       
    70     	CToolsUsbPortListener* iUsbPortListener;    	
       
    71     	RPointerArray<CToolsProcess> iToolsProcessList;
       
    72     	RPointerArray<MConnStateListener> iToolListenerList;
       
    73     
       
    74 };
       
    75 
       
    76 
       
    77 
       
    78 #endif      //  _TOOLSLAUNHCMGR_H_
       
    79 
       
    80 
       
    81 //  End of File