|
1 /* |
|
2 * Copyright (c) 2002-2009 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: This module contains the implementation of CNWGsmSessionImplementation |
|
15 * class member functions. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include "CNWGsmSessionImplementation.h" |
|
23 #include "CNWGsmMessageHandler.h" |
|
24 #include "NWHandlingEngine.h" |
|
25 #include "NWLogger.h" |
|
26 |
|
27 |
|
28 // ============================ MEMBER FUNCTIONS ============================== |
|
29 |
|
30 // ---------------------------------------------------------------------------- |
|
31 // CNWGsmSessionImplementation::CNWGsmSessionImplementation |
|
32 // C++ default constructor can NOT contain any code, that |
|
33 // might leave. |
|
34 // ---------------------------------------------------------------------------- |
|
35 // |
|
36 CNWGsmSessionImplementation::CNWGsmSessionImplementation( |
|
37 MNWMessageObserver& aMessageObserver, |
|
38 TNWInfo& aNWInfo ) |
|
39 : CNWSession( ), |
|
40 iMessageObserver( aMessageObserver ), |
|
41 iNWInfo( aNWInfo ) |
|
42 { |
|
43 NWLOGSTRING( KNWOBJECT, |
|
44 "NET CNWGsmSessionImplementation::\ |
|
45 CNWGsmSessionImplementation() called " ); |
|
46 } |
|
47 |
|
48 // ---------------------------------------------------------------------------- |
|
49 // CNWGsmSessionImplementation::ConstructL |
|
50 // Symbian 2nd phase constructor can leave. |
|
51 // ---------------------------------------------------------------------------- |
|
52 // |
|
53 void CNWGsmSessionImplementation::ConstructL() |
|
54 { |
|
55 NWLOGSTRING( KNWOBJECT, |
|
56 "NET CNWGsmSessionImplementation::ConstructL() Begin " ); |
|
57 |
|
58 iGsmMessageHandler = CNWGsmMessageHandler::NewL( |
|
59 *this, |
|
60 iMessageObserver, |
|
61 iNWInfo ); |
|
62 |
|
63 NWLOGSTRING( KNWOBJECT, |
|
64 "NET CNWGsmSessionImplementation::ConstructL() End " ); |
|
65 } |
|
66 |
|
67 // ---------------------------------------------------------------------------- |
|
68 // CNWGsmSessionImplementation::NewL |
|
69 // Two-phased constructor. |
|
70 // ---------------------------------------------------------------------------- |
|
71 // |
|
72 EXPORT_C CNWGsmSessionImplementation* CNWGsmSessionImplementation::NewL( |
|
73 MNWMessageObserver& aMessageObserver, |
|
74 TNWInfo& aNWInfo ) |
|
75 { |
|
76 NWLOGSTRING( KNWOBJECT, |
|
77 "NET CNWGsmSessionImplementation::NewL() Begin " ); |
|
78 |
|
79 CNWGsmSessionImplementation* self = |
|
80 new ( ELeave ) CNWGsmSessionImplementation( aMessageObserver, |
|
81 aNWInfo ); |
|
82 CleanupStack::PushL( self ); |
|
83 self->ConstructL(); |
|
84 CleanupStack::Pop( self ); |
|
85 |
|
86 NWLOGSTRING( KNWOBJECT, |
|
87 "NET CNWGsmSessionImplementation::ConstructL() End " ); |
|
88 return self; |
|
89 } |
|
90 |
|
91 // ---------------------------------------------------------------------------- |
|
92 // CNWGsmSessionImplementation::~CNWGsmSessionImplementation() |
|
93 // Destructor |
|
94 // ---------------------------------------------------------------------------- |
|
95 // |
|
96 EXPORT_C CNWGsmSessionImplementation::~CNWGsmSessionImplementation( ) |
|
97 { |
|
98 NWLOGSTRING( KNWOBJECT, |
|
99 "NET CNWGsmSessionImplementation::\ |
|
100 ~CNWGsmSessionImplementation() Begin " ); |
|
101 |
|
102 delete iGsmMessageHandler; |
|
103 |
|
104 NWLOGSTRING( KNWOBJECT, |
|
105 "NET CNWGsmSessionImplementation::\ |
|
106 ~CNWGsmSessionImplementation() End " ); |
|
107 } |
|
108 |
|
109 |
|
110 // End of File |