|
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: Tracked Presence ID. |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include <CPEngNWSessionSlotEvent2.h> |
|
20 #include <E32Std.h> |
|
21 #include "CPEngNWSessionSlotEventEntry.h" |
|
22 |
|
23 |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS =============================== |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // CPEngNWSessionSlotEvent2::CPEngNWSessionSlotEvent2 |
|
29 // C++ default constructor can NOT contain any code, that |
|
30 // might leave. |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 CPEngNWSessionSlotEvent2::CPEngNWSessionSlotEvent2() |
|
34 { |
|
35 } |
|
36 |
|
37 |
|
38 // Destructor |
|
39 CPEngNWSessionSlotEvent2::~CPEngNWSessionSlotEvent2() |
|
40 { |
|
41 delete iImp; |
|
42 } |
|
43 |
|
44 |
|
45 // ----------------------------------------------------------------------------- |
|
46 // CPEngNWSessionSlotEvent2::NWSessionSlotID() |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 EXPORT_C const CPEngNWSessionSlotID2& CPEngNWSessionSlotEvent2::NWSessionSlotID() const |
|
50 { |
|
51 return *iImp->iNWSessionSlotID; |
|
52 } |
|
53 |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // CPEngNWSessionSlotEvent2::Event() |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 EXPORT_C TPEngNWSessionSlotEvent CPEngNWSessionSlotEvent2::Event() const |
|
60 { |
|
61 return iImp->iEvent; |
|
62 } |
|
63 |
|
64 |
|
65 // ----------------------------------------------------------------------------- |
|
66 // CPEngNWSessionSlotEvent2::NWSessionSlotState() |
|
67 // ----------------------------------------------------------------------------- |
|
68 // |
|
69 EXPORT_C TPEngNWSessionSlotState CPEngNWSessionSlotEvent2::NWSessionSlotState() const |
|
70 { |
|
71 return iImp->iNWSessionSlotState; |
|
72 } |
|
73 |
|
74 |
|
75 // ----------------------------------------------------------------------------- |
|
76 // CPEngNWSessionSlotEvent2::CSPSessionState() |
|
77 // ----------------------------------------------------------------------------- |
|
78 // |
|
79 EXPORT_C TPEngNWSessionSlotState CPEngNWSessionSlotEvent2::CSPSessionState() const |
|
80 { |
|
81 return iImp->iCSPSessionState; |
|
82 } |
|
83 |
|
84 |
|
85 // ----------------------------------------------------------------------------- |
|
86 // CPEngNWSessionSlotEvent2::EventInt() |
|
87 // ----------------------------------------------------------------------------- |
|
88 // |
|
89 EXPORT_C TInt CPEngNWSessionSlotEvent2::EventInt() const |
|
90 { |
|
91 return iImp->iEventInt; |
|
92 } |
|
93 |
|
94 |
|
95 // ----------------------------------------------------------------------------- |
|
96 // CPEngNWSessionSlotEvent2::EventDesc16() |
|
97 // ----------------------------------------------------------------------------- |
|
98 // |
|
99 EXPORT_C TPtrC CPEngNWSessionSlotEvent2::EventDesc16() const |
|
100 { |
|
101 return iImp->iEventDesc; |
|
102 } |
|
103 |
|
104 |
|
105 // ----------------------------------------------------------------------------- |
|
106 // CPEngNWSessionSlotEvent2::CloneLC() |
|
107 // ----------------------------------------------------------------------------- |
|
108 // |
|
109 EXPORT_C CPEngNWSessionSlotEvent2Copy* CPEngNWSessionSlotEvent2::CloneLC() const |
|
110 { |
|
111 CPEngNWSessionSlotEvent2Copy* clone = CPEngNWSessionSlotEvent2Copy::NewL(); |
|
112 CleanupStack::PushL( clone ); |
|
113 clone->Implementation()->CopyL( *iImp ); |
|
114 return clone; |
|
115 } |
|
116 |
|
117 |
|
118 // ----------------------------------------------------------------------------- |
|
119 // CPEngNWSessionSlotID2::Implementation() |
|
120 // ----------------------------------------------------------------------------- |
|
121 // |
|
122 CPEngNWSessionSlotEventEntry* CPEngNWSessionSlotEvent2::Implementation() |
|
123 { |
|
124 return iImp; |
|
125 } |
|
126 |
|
127 const CPEngNWSessionSlotEventEntry* CPEngNWSessionSlotEvent2::Implementation() const |
|
128 { |
|
129 return iImp; |
|
130 } |
|
131 |
|
132 |
|
133 // ----------------------------------------------------------------------------- |
|
134 // CPEngNWSessionSlotID2::NewL() |
|
135 // ----------------------------------------------------------------------------- |
|
136 // |
|
137 CPEngNWSessionSlotEvent2Copy* CPEngNWSessionSlotEvent2Copy::NewL() |
|
138 { |
|
139 CPEngNWSessionSlotEvent2Copy* self = new ( ELeave ) CPEngNWSessionSlotEvent2Copy; |
|
140 |
|
141 CleanupStack::PushL( self ); |
|
142 self->iImp = CPEngNWSessionSlotEventEntry::NewL(); |
|
143 CleanupStack::Pop( self ); |
|
144 |
|
145 return self; |
|
146 } |
|
147 |
|
148 |
|
149 // ----------------------------------------------------------------------------- |
|
150 // CPEngNWSessionSlotEvent2Copy::CPEngNWSessionSlotEvent2Copy |
|
151 // C++ default constructor can NOT contain any code, that |
|
152 // might leave. |
|
153 // ----------------------------------------------------------------------------- |
|
154 // |
|
155 CPEngNWSessionSlotEvent2Copy::CPEngNWSessionSlotEvent2Copy() |
|
156 { |
|
157 } |
|
158 |
|
159 |
|
160 // Destructor |
|
161 CPEngNWSessionSlotEvent2Copy::~CPEngNWSessionSlotEvent2Copy() |
|
162 { |
|
163 } |
|
164 |
|
165 |
|
166 |
|
167 // End of File |
|
168 |
|
169 |