diff -r f5050f1da672 -r 04becd199f91 javamanager/debugapi/src.s60/applauncher.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/javamanager/debugapi/src.s60/applauncher.h Tue Apr 27 16:30:29 2010 +0300 @@ -0,0 +1,62 @@ +/* +* 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: AppLauncher can be used to start and stop Java application +* +*/ + + +#ifndef APPLAUNCHER_H +#define APPLAUNCHER_H + +#include +#include + +#include "javauid.h" +#include "javaosheaders.h" + +namespace java +{ +// forward declarations +namespace comms +{ +class CommsMessage; +} + +namespace debug +{ +OS_NONSHARABLE_CLASS(AppLauncher) +{ +public: + AppLauncher(const java::util::Uid& aAppUid); + virtual ~AppLauncher(); + + int startApp(const std::wstring& aJvmArgs); + int stopApp(); + pid_t getPid(); + +protected: + virtual java::comms::CommsMessage createStartAppMessage(const std::wstring& aJvmArgs); + virtual java::comms::CommsMessage createStopAppMessage(); + virtual int sendToJavaCaptain(java::comms::CommsMessage& aMessage); + +private: + java::util::Uid mUid; + pid_t mPid; +}; + +} // end namespace debug +} // end namespace java + + +#endif // APPLAUNCHER_H