|
1 /* |
|
2 * Copyright (c) 2004 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 "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: Server applications framework: LaunchApp service implementation |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef AKNLAUNCHAPPSERVICEIMPL_H |
|
21 #define AKNLAUNCHAPPSERVICEIMPL_H |
|
22 |
|
23 #include "AknLaunchAppService.h" |
|
24 #include <f32file.h> |
|
25 |
|
26 class CAiwGenericParamList; |
|
27 class CBufStore; |
|
28 class CStreamDictionary; |
|
29 class CEikDocument; |
|
30 |
|
31 const TUid KAknLaunchAppServiceUid = { 0x101F887A }; |
|
32 |
|
33 // --------------------------------------------------------- |
|
34 // |
|
35 // --------------------------------------------------------- |
|
36 // |
|
37 enum TAknLaunchAppServiceCmds |
|
38 { |
|
39 EAknLaunchAppServiceCmdLaunchAppWithParams = RApaAppServiceBase::KServiceCmdBase |
|
40 }; |
|
41 |
|
42 // --------------------------------------------------------- |
|
43 // |
|
44 // --------------------------------------------------------- |
|
45 // |
|
46 NONSHARABLE_CLASS(RAknLaunchAppService) : public RAknAppServiceBase |
|
47 { |
|
48 public: |
|
49 void LaunchAppL(CAiwGenericParamList* aParam); |
|
50 |
|
51 private: |
|
52 TUid ServiceUid() const; |
|
53 }; |
|
54 |
|
55 |
|
56 // --------------------------------------------------------- |
|
57 // |
|
58 // --------------------------------------------------------- |
|
59 // |
|
60 NONSHARABLE_CLASS(CAknLaunchAppServiceImpl) : public CAknLaunchAppService |
|
61 { |
|
62 public: |
|
63 ~CAknLaunchAppServiceImpl(); |
|
64 CAknLaunchAppServiceImpl(); |
|
65 |
|
66 void ConstructL( |
|
67 const TUid& aAppUid, MAknServerAppExitObserver* aObserver, CAiwGenericParamList* aParam); |
|
68 |
|
69 private: |
|
70 RAknLaunchAppService iService; |
|
71 CApaServerAppExitMonitor* iMonitor; |
|
72 }; |
|
73 |
|
74 // --------------------------------------------------------- |
|
75 // |
|
76 // --------------------------------------------------------- |
|
77 // |
|
78 NONSHARABLE_CLASS(CAknLaunchAppServiceSession) : public CAknAppServiceBase |
|
79 { |
|
80 public: |
|
81 CAknLaunchAppServiceSession(); |
|
82 ~CAknLaunchAppServiceSession(); |
|
83 |
|
84 protected: // from CSession2 |
|
85 void CreateL(); |
|
86 void ServiceL(const RMessage2& aMessage); |
|
87 void ServiceError(const RMessage2& aMessage,TInt aError); |
|
88 |
|
89 private: |
|
90 void LaunchAppWithParamsL(const RMessage2& aMessage); |
|
91 void ExternalizeParamsL(CAiwGenericParamList* aParamList); |
|
92 |
|
93 private: |
|
94 |
|
95 /** |
|
96 * In memory store for parameter passing |
|
97 */ |
|
98 CBufStore* iStore; |
|
99 |
|
100 /** |
|
101 * Store dictionary for parameter passing |
|
102 */ |
|
103 CStreamDictionary* iDictionary; |
|
104 |
|
105 /** |
|
106 * Stream id for parameter passing |
|
107 */ |
|
108 TStreamId iStreamId; |
|
109 |
|
110 CEikDocument* iDoc; |
|
111 |
|
112 }; |
|
113 |
|
114 #endif |
|
115 |
|
116 // End of file. |