1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __EIKSERVERAPP_H__ |
|
17 #define __EIKSERVERAPP_H__ |
|
18 |
|
19 #include <apaserverapp.h> |
|
20 #include <apadef.h> |
|
21 |
|
22 class RWindowGroup; |
|
23 |
|
24 /** Launches and connects to new instances of server apps. |
|
25 |
|
26 This adds the ability to launch new server applications to |
|
27 RApaAppServiceBase. |
|
28 All UI level client side service support should derive from this |
|
29 class. |
|
30 |
|
31 @publishedPartner |
|
32 @released |
|
33 @see RApaAppServiceBase */ |
|
34 class REikAppServiceBase : public RApaAppServiceBase |
|
35 { |
|
36 public: |
|
37 IMPORT_C void ConnectNewAppL(TUid aAppUid); |
|
38 IMPORT_C void ConnectNewAppL(TUid aAppUid, const TSecurityPolicy& aSecurityPolicy); |
|
39 IMPORT_C void ConnectNewChildAppL(TUid aAppUid, RWindowGroup& aParentWindowGroup); |
|
40 IMPORT_C void ConnectNewChildAppL(TUid aAppUid, RWindowGroup& aParentWindowGroup, const TSecurityPolicy& aSecurityPolicy); |
|
41 IMPORT_C void Close(); |
|
42 private: |
|
43 void LaunchAppL(TUid aAppUid, TUint aServerDifferentiator, RWindowGroup* aParentWindowGroup, |
|
44 TRequestStatus& aRequestStatusForRendezvous, TApaCommand& aLaunchCommand); |
|
45 TUint StartServerL(TUid aAppUid, RWindowGroup* aParentWindowGroup); |
|
46 private: |
|
47 IMPORT_C virtual void ExtensionInterface(TUid aInterfaceId, TAny*& aImplementaion); |
|
48 private: |
|
49 TInt iREikAppServiceBase_Spare1; |
|
50 }; |
|
51 |
|
52 |
|
53 /** Base class for all server application's servers. |
|
54 Server applications must derive from this class to implement their |
|
55 servers. These must be instantiated in an override of |
|
56 CEikApplication::NewAppServerL(). |
|
57 This class adds support for uniquely named servers over CApaAppServers. |
|
58 |
|
59 @publishedPartner |
|
60 @released |
|
61 @see CApaAppServer */ |
|
62 class CEikAppServer : public CApaAppServer |
|
63 { |
|
64 public: // from CApaAppServer |
|
65 IMPORT_C void ConstructL(const TDesC& aFixedServerName); |
|
66 IMPORT_C CApaAppServiceBase* CreateServiceL(TUid aServiceType) const; |
|
67 IMPORT_C TCustomResult CreateServiceSecurityCheckL(TUid aServiceType, const RMessage2& aMsg, TInt& aAction, TSecurityInfo& aMissing); |
|
68 public: // internal |
|
69 void ConstructUniqueL(TUint aServerDifferentiator, TUid aAppUid); |
|
70 private: |
|
71 IMPORT_C virtual void ExtensionInterface(TUid aInterfaceId, TAny*& aImplementaion); |
|
72 private: |
|
73 TInt iCEikAppServer_Spare1; |
|
74 }; |
|
75 |
|
76 #endif // __EIKSERVERAPP_H__ |
|