equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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: CCommsServer implements the Symbian IPC server |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef COMMSSERVER_H |
|
19 #define COMMSSERVER_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <e32cmn.h> |
|
23 |
|
24 namespace java |
|
25 { |
|
26 namespace comms |
|
27 { |
|
28 class IpcListener; |
|
29 |
|
30 OS_NONSHARABLE_CLASS(CCommsServer) : public CPolicyServer |
|
31 { |
|
32 friend class IpcServer; |
|
33 |
|
34 public: |
|
35 CCommsServer(IpcListener& aListener); |
|
36 virtual ~CCommsServer(); |
|
37 void StartL(const TDesC& aName); |
|
38 |
|
39 private: |
|
40 virtual CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const; |
|
41 virtual int getPermissions(const RMessage2& aMessage) const; |
|
42 |
|
43 private: |
|
44 IpcListener& mListener; |
|
45 }; |
|
46 |
|
47 |
|
48 } // namespace comms |
|
49 } // namespace java |
|
50 |
|
51 #endif // COMMSSERVER_H |