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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __EIKSERVERAPP_H__
17 #define __EIKSERVERAPP_H__
19 #include <apaserverapp.h>
24 /** Launches and connects to new instances of server apps.
26 This adds the ability to launch new server applications to
28 All UI level client side service support should derive from this
33 @see RApaAppServiceBase */
34 class REikAppServiceBase : public RApaAppServiceBase
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();
43 void LaunchAppL(TUid aAppUid, TUint aServerDifferentiator, RWindowGroup* aParentWindowGroup,
44 TRequestStatus& aRequestStatusForRendezvous, TApaCommand& aLaunchCommand);
45 TUint StartServerL(TUid aAppUid, RWindowGroup* aParentWindowGroup);
47 IMPORT_C virtual void ExtensionInterface(TUid aInterfaceId, TAny*& aImplementaion);
49 TInt iREikAppServiceBase_Spare1;
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.
62 class CEikAppServer : public CApaAppServer
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);
69 void ConstructUniqueL(TUint aServerDifferentiator, TUid aAppUid);
71 IMPORT_C virtual void ExtensionInterface(TUid aInterfaceId, TAny*& aImplementaion);
73 TInt iCEikAppServer_Spare1;
76 #endif // __EIKSERVERAPP_H__