equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Name : signalsession.cpp |
|
15 // Part of : Signal Server |
|
16 // |
|
17 |
|
18 |
|
19 |
|
20 #include "signalsession.h" |
|
21 |
|
22 CSignalSession::~CSignalSession() |
|
23 { |
|
24 Server().RemoveSession(); |
|
25 } |
|
26 |
|
27 CSession2* CSignalSession::NewL() |
|
28 { |
|
29 CSignalSession* self = new (ELeave)CSignalSession(); |
|
30 CleanupStack::PushL(self); |
|
31 self->ConstructL(); |
|
32 CleanupStack::Pop(); |
|
33 return self; |
|
34 } |
|
35 |
|
36 void CSignalSession::ConstructL() |
|
37 { |
|
38 |
|
39 } |
|
40 |
|
41 void CSignalSession::CreateL() |
|
42 { |
|
43 Server().AddSession(); |
|
44 } |
|
45 |
|
46 void CSignalSession::ServiceL(const RMessage2& aMessage) |
|
47 { |
|
48 Server().ServiceL(aMessage); |
|
49 return; |
|
50 } |
|
51 |
|
52 CSignalServer& CSignalSession::Server() |
|
53 { |
|
54 return *(static_cast<CSignalServer*>(const_cast<CServer2*>(CSession2::Server()))); |
|
55 } |