|
1 /* |
|
2 * Copyright (c) 2004 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #include "mceclientserver.h" |
|
23 #include "mcecsserver.h" |
|
24 #include "mcecssession.h" |
|
25 #include "mcecsplatsecpolicy.h" |
|
26 |
|
27 |
|
28 CMceCsServer* CMceCsServer::NewL (CMceServerCore& aServerCore) |
|
29 { |
|
30 CMceCsServer* self = CMceCsServer::NewLC(aServerCore); |
|
31 CleanupStack::Pop(self); |
|
32 return self; |
|
33 } |
|
34 |
|
35 |
|
36 CMceCsServer* CMceCsServer::NewLC (CMceServerCore& aServerCore) |
|
37 { |
|
38 CMceCsServer* self = new(ELeave)CMceCsServer(EPriorityHigh,aServerCore); |
|
39 CleanupStack::PushL(self); |
|
40 self->ConstructL(); |
|
41 return self; |
|
42 } |
|
43 |
|
44 |
|
45 void CMceCsServer::ConstructL () |
|
46 { |
|
47 } |
|
48 |
|
49 |
|
50 CMceCsServer::CMceCsServer (TInt aPriority, CMceServerCore& aServerCore) |
|
51 : CPolicyServer(aPriority, TMceCSPlatSecPolicy), |
|
52 iServerCore(aServerCore) |
|
53 { |
|
54 } |
|
55 |
|
56 |
|
57 CMceCsServer::~CMceCsServer () |
|
58 { |
|
59 } |
|
60 |
|
61 |
|
62 CSession2* CMceCsServer::NewSessionL (const TVersion& /*aVersion*/, |
|
63 const RMessage2& /*aMessage*/) const |
|
64 { |
|
65 return CMceCsSession::NewL( iServerCore ); |
|
66 } |
|
67 |
|
68 |
|
69 |
|
70 TInt CMceCsServer::RunError(TInt aError) |
|
71 { |
|
72 return aError; |
|
73 } |