|
1 /* |
|
2 * Copyright (c) 2006 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: Root server session adaptation |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "ximprootserversessionadapter.h" |
|
19 #include "ximprootserverdefs.h" |
|
20 #include "ximpsrvmessage.h" |
|
21 #include "ximprootsession.h" |
|
22 #include "ximpsrv.h" |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 |
|
27 //Include Root server namespace |
|
28 using namespace NRootSrv; |
|
29 |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // CXIMPRootServerSessionAdapter::NewL() |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 CXIMPRootServerSessionAdapter* |
|
36 CXIMPRootServerSessionAdapter::NewL( MXIMPSrv& aServer ) |
|
37 { |
|
38 CXIMPRootServerSessionAdapter* self = |
|
39 new( ELeave ) CXIMPRootServerSessionAdapter( aServer ); |
|
40 return self; |
|
41 } |
|
42 |
|
43 |
|
44 // ----------------------------------------------------------------------------- |
|
45 // CXIMPRootServerSessionAdapter::~CXIMPRootServerSessionAdapter() |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 CXIMPRootServerSessionAdapter::~CXIMPRootServerSessionAdapter() |
|
49 { |
|
50 } |
|
51 |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // CXIMPRootServerSessionAdapter::CXIMPRootServerSessionAdapter() |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 CXIMPRootServerSessionAdapter::CXIMPRootServerSessionAdapter( |
|
58 MXIMPSrv& aServer ) |
|
59 : CXIMPSrvSessionAdapter( aServer ) |
|
60 { |
|
61 } |
|
62 |
|
63 |
|
64 // ----------------------------------------------------------------------------- |
|
65 // CXIMPRootServerSessionAdapter::DoInstantiateSessionL() |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 MXIMPSrvSession* CXIMPRootServerSessionAdapter::DoInstantiateSessionL( |
|
69 const MXIMPSrvMessage& aMessage ) |
|
70 { |
|
71 switch( aMessage.Function() ) |
|
72 { |
|
73 case NRequest::EBecomeRootSession: |
|
74 { |
|
75 return CXIMPRootSession::NewL(); |
|
76 } |
|
77 default: |
|
78 { |
|
79 return NULL; |
|
80 } |
|
81 } |
|
82 } |
|
83 |
|
84 // End of file |