1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/eikserverapp.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,76 @@
1.4 +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// 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
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef __EIKSERVERAPP_H__
1.20 +#define __EIKSERVERAPP_H__
1.21 +
1.22 +#include <apaserverapp.h>
1.23 +#include <apadef.h>
1.24 +
1.25 +class RWindowGroup;
1.26 +
1.27 +/** Launches and connects to new instances of server apps.
1.28 +
1.29 +This adds the ability to launch new server applications to
1.30 +RApaAppServiceBase.
1.31 +All UI level client side service support should derive from this
1.32 +class.
1.33 +
1.34 +@publishedPartner
1.35 +@released
1.36 +@see RApaAppServiceBase */
1.37 +class REikAppServiceBase : public RApaAppServiceBase
1.38 + {
1.39 +public:
1.40 + IMPORT_C void ConnectNewAppL(TUid aAppUid);
1.41 + IMPORT_C void ConnectNewAppL(TUid aAppUid, const TSecurityPolicy& aSecurityPolicy);
1.42 + IMPORT_C void ConnectNewChildAppL(TUid aAppUid, RWindowGroup& aParentWindowGroup);
1.43 + IMPORT_C void ConnectNewChildAppL(TUid aAppUid, RWindowGroup& aParentWindowGroup, const TSecurityPolicy& aSecurityPolicy);
1.44 + IMPORT_C void Close();
1.45 +private:
1.46 + void LaunchAppL(TUid aAppUid, TUint aServerDifferentiator, RWindowGroup* aParentWindowGroup,
1.47 + TRequestStatus& aRequestStatusForRendezvous, TApaCommand& aLaunchCommand);
1.48 + TUint StartServerL(TUid aAppUid, RWindowGroup* aParentWindowGroup);
1.49 +private:
1.50 + IMPORT_C virtual void ExtensionInterface(TUid aInterfaceId, TAny*& aImplementaion);
1.51 +private:
1.52 + TInt iREikAppServiceBase_Spare1;
1.53 + };
1.54 +
1.55 +
1.56 +/** Base class for all server application's servers.
1.57 +Server applications must derive from this class to implement their
1.58 +servers. These must be instantiated in an override of
1.59 +CEikApplication::NewAppServerL().
1.60 +This class adds support for uniquely named servers over CApaAppServers.
1.61 +
1.62 +@publishedPartner
1.63 +@released
1.64 +@see CApaAppServer */
1.65 +class CEikAppServer : public CApaAppServer
1.66 + {
1.67 +public: // from CApaAppServer
1.68 + IMPORT_C void ConstructL(const TDesC& aFixedServerName);
1.69 + IMPORT_C CApaAppServiceBase* CreateServiceL(TUid aServiceType) const;
1.70 + IMPORT_C TCustomResult CreateServiceSecurityCheckL(TUid aServiceType, const RMessage2& aMsg, TInt& aAction, TSecurityInfo& aMissing);
1.71 +public: // internal
1.72 + void ConstructUniqueL(TUint aServerDifferentiator, TUid aAppUid);
1.73 +private:
1.74 + IMPORT_C virtual void ExtensionInterface(TUid aInterfaceId, TAny*& aImplementaion);
1.75 +private:
1.76 + TInt iCEikAppServer_Spare1;
1.77 + };
1.78 +
1.79 +#endif // __EIKSERVERAPP_H__