diff -r 000000000000 -r c6b0df440bee dbgagents/trkagent/toolsstarter/toolsstarterserver/inc/toolslaunchmgr.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dbgagents/trkagent/toolsstarter/toolsstarterserver/inc/toolslaunchmgr.h Tue Mar 02 10:33:16 2010 +0530 @@ -0,0 +1,81 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +#ifndef _TOOLSLAUNHCMGR_H_ +#define _TOOLSLAUNHCMGR_H_ + +// INCLUDES +#include +#include +#include "launchmanagerinterface.h" +#include "toolsprocess.h" +#include "toolsconnectionlistener.h" +#include "toolsusbportlistener.h" +#include "sessionmessgelistener.h" + + +// DATA TYPES + +// FORWARD DECLARATIONS + +// CLASS DECLARATION + + +class CToolsLaunchMgr: public CBase, public ILaunchManagerInterface, public MToolsConnectionListener +{ + public: + static CToolsLaunchMgr* NewL(); + static CToolsLaunchMgr* NewLC(); + ~CToolsLaunchMgr(); + + private: + + CToolsLaunchMgr(); + void ConstructL(); + void LaunchTools(TCmdLineConnType aConnType); + void StopTools(); + + public: + // from MConnectionListener + void ConnectionAvailable(); + void ConnectionUnAvailable(); + + //From ILaunchManagerInterface + void RegisterListener(MConnStateListener* aListener); + void UnregisterListener(MConnStateListener* aListener); + TConnectionStatus GetUsbConnStatus(); + void Launch(); + + public: + + TInt CloseCrashLogger(); + TInt TerminateProcess(const TDesC& aProcessName); + + private: + CToolsUsbPortListener* iUsbPortListener; + RPointerArray iToolsProcessList; + RPointerArray iToolListenerList; + +}; + + + +#endif // _TOOLSLAUNHCMGR_H_ + + +// End of File