installationservices/swi/source/sislauncher/server/sislauncherserver.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 /*
     1 /*
     2 * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    25 
    25 
    26 #include <e32base.h>
    26 #include <e32base.h>
    27 #include <f32file.h>
    27 #include <f32file.h>
    28 #include <e32property.h>
    28 #include <e32property.h>
    29 #include <e32uid.h>
    29 #include <e32uid.h>
    30 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
    30 
    31 #include <usif/scr/appregentries.h>
       
    32 #endif
       
    33 #ifndef _CSISLAUNCHERSERVER_H_
    31 #ifndef _CSISLAUNCHERSERVER_H_
    34 #define _CSISLAUNCHERSERVER_H_
    32 #define _CSISLAUNCHERSERVER_H_
    35 
    33 
    36 #ifndef SWI_TEXTSHELL_ROM
    34 #ifndef SWI_TEXTSHELL_ROM
    37 #include <w32std.h>
    35 #include <w32std.h>
    91 	void StartDocumentL(const TDesC& aFileName, TBool aWait);
    89 	void StartDocumentL(const TDesC& aFileName, TBool aWait);
    92 	void StartByMimeL(const TDesC& aFileName, TDesC8& aMimeType, TBool aWait);
    90 	void StartByMimeL(const TDesC& aFileName, TDesC8& aMimeType, TBool aWait);
    93 	void ShutdownL();
    91 	void ShutdownL();
    94 	void ShutdownL(TUid aUid, TInt aTimeout); 
    92 	void ShutdownL(TUid aUid, TInt aTimeout); 
    95 	void NotifyNewAppsL(const RPointerArray<TDesC>& aFiles);
    93 	void NotifyNewAppsL(const RPointerArray<TDesC>& aFiles);
    96 	#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
    97 	void NotifyNewAppsL(const RPointerArray<Usif::CApplicationRegistrationData>& aApplicationRegistrationData);
       
    98 	#endif
       
    99 #endif		
    94 #endif		
   100 	void HandleShutdownL(TThreadId aThread, TBool aKillOnTimeout = EFalse);
    95 	void HandleShutdownL(TThreadId aThread, TBool aKillOnTimeout = EFalse);
   101 	void ForceShutdownL(TUid aUid);
    96 	void ForceShutdownL(TUid aUid);
   102 	void RunExecutableL(const TDesC& aFileName, TBool aWait);
    97 	void RunExecutableL(const TDesC& aFileName, TBool aWait);
   103 		
    98 		
   104 private:
    99 private:
   105 	CSisLauncherServer();
   100 	CSisLauncherServer();
   106 	void ConstructL();
   101 	void ConstructL();
   107 	CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
   102 	CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
       
   103 	
   108 	void LongServerShutdown();
   104 	void LongServerShutdown();
   109 	void ShortServerShutdown();
   105 	void ShortServerShutdown();
   110 	void CancelShutdown();
   106 	void CancelShutdown();
   111     #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
   107 		
   112 	virtual TCustomResult CustomSecurityCheckL(const RMessage2& aMsg, TInt& aAction, TSecurityInfo& aMissing);
       
   113     #endif	
       
   114 	// Server Policies
   108 	// Server Policies
   115 	// separate the policies into handled and not handled
   109 	// separate the policies into handled and not handled
   116 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
   110 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
   117 	static const TUint iRangeCount=6;
   111 	static const TUint iRangeCount=4;
   118 #else
   112 #else
   119 	static const TUint iRangeCount=2;
   113 	static const TUint iRangeCount=2;
   120 #endif
   114 #endif
   121 	static const TInt iRanges[iRangeCount];
   115 	static const TInt iRanges[iRangeCount];
   122 	static const TUint8 iElementsIndex[iRangeCount];
   116 	static const TUint8 iElementsIndex[iRangeCount];