|
1 /* |
|
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * SisLauncher - session definition |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @released |
|
23 @internalComponent |
|
24 */ |
|
25 |
|
26 #include <e32base.h> |
|
27 #include "sislauncherserver.h" |
|
28 |
|
29 namespace Swi |
|
30 { |
|
31 class CSisRegistryFileDescription; |
|
32 class CThreadMonitor; |
|
33 |
|
34 |
|
35 class CSisLauncherSession : public CSession2 |
|
36 { |
|
37 public: |
|
38 CSisLauncherSession(); |
|
39 void CreateL(); |
|
40 |
|
41 private: |
|
42 |
|
43 ~CSisLauncherSession(); |
|
44 inline CSisLauncherServer& Server(); |
|
45 void ServiceL(const RMessage2& aMessage); |
|
46 void ServiceError(const RMessage2& aMessage,TInt aError); |
|
47 inline TBool ReceivePending() const; |
|
48 |
|
49 void CheckApplicationInUseL(TUid aUid); |
|
50 |
|
51 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
52 void ParseSwTypeRegFileL(const RMessage2& aMessage); |
|
53 #endif |
|
54 |
|
55 #ifndef SWI_TEXTSHELL_ROM |
|
56 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
57 void RegisterSifLauncherMimeTypesL(const RMessage2& aMessage); |
|
58 void UnregisterSifLauncherMimeTypesL(const RMessage2& aMessage); |
|
59 void RegisterSifLauncherMimeTypesImplL(const RMessage2& aMessage, TBool aRegister); |
|
60 #endif |
|
61 #endif |
|
62 void DoRunExecutableL(const RMessage2& aMessage); |
|
63 void DoStartDocumentL(const RMessage2& aMessage); |
|
64 void DoStartDocumentByHandleL(const RMessage2& aMessage); |
|
65 void DoStartByMimeL(const RMessage2& aMessage); |
|
66 void DoStartByMimeByHandleL(const RMessage2& aMessage); |
|
67 |
|
68 |
|
69 private: |
|
70 RMessagePtr2 iReceiveMsg; |
|
71 TInt iReceiveLen; |
|
72 |
|
73 }; |
|
74 |
|
75 // CSisLauncherSession inlines |
|
76 inline TBool CSisLauncherSession::ReceivePending() const |
|
77 {return !iReceiveMsg.IsNull();} |
|
78 |
|
79 inline CSisLauncherServer& CSisLauncherSession::Server() |
|
80 {return *static_cast<CSisLauncherServer*>(const_cast<CServer2*>(CSession2::Server()));} |
|
81 |
|
82 } //namespace |