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