diff -r 000000000000 -r ba25891c3a9e installationservices/swi/source/sislauncher/server/sislaunchersession.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/installationservices/swi/source/sislauncher/server/sislaunchersession.h Thu Dec 17 08:51:10 2009 +0200 @@ -0,0 +1,82 @@ +/* +* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "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: +* SisLauncher - session definition +* +*/ + + +/** + @file + @released + @internalComponent +*/ + +#include +#include "sislauncherserver.h" + +namespace Swi +{ +class CSisRegistryFileDescription; +class CThreadMonitor; + + +class CSisLauncherSession : public CSession2 + { +public: + CSisLauncherSession(); + void CreateL(); + +private: + + ~CSisLauncherSession(); + inline CSisLauncherServer& Server(); + void ServiceL(const RMessage2& aMessage); + void ServiceError(const RMessage2& aMessage,TInt aError); + inline TBool ReceivePending() const; + + void CheckApplicationInUseL(TUid aUid); + +#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK + void ParseSwTypeRegFileL(const RMessage2& aMessage); +#endif + +#ifndef SWI_TEXTSHELL_ROM +#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK + void RegisterSifLauncherMimeTypesL(const RMessage2& aMessage); + void UnregisterSifLauncherMimeTypesL(const RMessage2& aMessage); + void RegisterSifLauncherMimeTypesImplL(const RMessage2& aMessage, TBool aRegister); +#endif +#endif + void DoRunExecutableL(const RMessage2& aMessage); + void DoStartDocumentL(const RMessage2& aMessage); + void DoStartDocumentByHandleL(const RMessage2& aMessage); + void DoStartByMimeL(const RMessage2& aMessage); + void DoStartByMimeByHandleL(const RMessage2& aMessage); + + +private: + RMessagePtr2 iReceiveMsg; + TInt iReceiveLen; + + }; + +// CSisLauncherSession inlines +inline TBool CSisLauncherSession::ReceivePending() const + {return !iReceiveMsg.IsNull();} + +inline CSisLauncherServer& CSisLauncherSession::Server() + {return *static_cast(const_cast(CSession2::Server()));} + +} //namespace