diff -r 000000000000 -r 4e1aa6a622a0 sysstatemgmt/systemstarter/src/appstarter2.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysstatemgmt/systemstarter/src/appstarter2.h Tue Feb 02 00:53:00 2010 +0200 @@ -0,0 +1,53 @@ +// Copyright (c) 2005-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: +// + +#if !defined (__APPSTARTER2_H__) +#define __APPSTARTER2_H__ + +#include +#include "StartupCommand.h" +#include "startuputilprovider.h" + +/** A startup command object responsible for starting an application +@internalComponent +@deprecated +*/ +class CAppStarter : public CBase, public MStartupCommand + { +public: + static CAppStarter* NewL(CStartupProperties* aAppInfo, CStartupUtilProvider& aProvider); + static CAppStarter* NewLC(CStartupProperties* aAppInfo, CStartupUtilProvider& aProvider); + ~CAppStarter(); + + // from MStartupCommand + void Execute(TRequestStatus& aCallerStatus); + void Release(); + + CStartupProperties& AppInfo(); + RProcess& Process(); + TRequestStatus& CommandStatus(); + +private: + CAppStarter(CStartupProperties* aAppInfo, CStartupUtilProvider& aProvider); + +private: + CStartupUtilProvider& iProvider; + CStartupProperties *iAppInfo; + + RProcess iProcess; + TRequestStatus iCommandStatus; + }; + +#endif // __APPSTARTER2_H__