|
1 /* |
|
2 * Copyright (c) 2002-2008 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: Implementation for Connection Monitor Server API methods. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <rconnmon.h> |
|
19 |
|
20 #include "ConnMonDef.h" |
|
21 #include "ConnMonCli.h" |
|
22 #include "ConnMonServ.h" |
|
23 #include "log.h" |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS =============================== |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // RConnectionMonitor::ConnectL |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 EXPORT_C TInt RConnectionMonitor::ConnectL() |
|
32 { |
|
33 //LOGENTRFN("RConnectionMonitor::ConnectL()") |
|
34 LOGIT1("Client [%d]: calling ConnectL()", this) |
|
35 |
|
36 if ( IsConnected() ) |
|
37 { |
|
38 LOGIT1("Client [%d]: already connected", this) |
|
39 return KErrNone; |
|
40 } |
|
41 |
|
42 // Connect to server |
|
43 TInt errConnect( KErrNone ); |
|
44 TInt errLaunch( KErrNone ); |
|
45 |
|
46 for ( TInt tries = 0; tries < 2; tries++ ) |
|
47 { |
|
48 // This initialization is needed if some application starts |
|
49 // ConnMon server just between CreateSession() and |
|
50 // LaunchFromClient() here. |
|
51 errLaunch = KErrNone; |
|
52 |
|
53 errConnect = CreateSession( |
|
54 KConnectionMonitorServerName, |
|
55 TVersion( 0, 0, 0 ), |
|
56 KNumMessageSlots ); |
|
57 if ( errConnect ) |
|
58 { |
|
59 if ( errConnect != KErrNotFound && errConnect != KErrServerTerminated ) |
|
60 { |
|
61 break; // Problems other than server not here - propagate error |
|
62 } |
|
63 |
|
64 errLaunch = CConnMonScheduler::LaunchFromClient(); |
|
65 |
|
66 // If server launched ok (KErrNone), try again to connect |
|
67 // If someone else got there first (KErrAlreadyExists), try again to connect |
|
68 if ( errLaunch != KErrNone && errLaunch != KErrAlreadyExists ) |
|
69 { |
|
70 break; // Server not launched: don't cycle round again |
|
71 } |
|
72 } |
|
73 else |
|
74 { |
|
75 break; |
|
76 } |
|
77 } |
|
78 User::LeaveIfError( errConnect ); |
|
79 User::LeaveIfError( errLaunch ); |
|
80 |
|
81 // Initialize an array for holding the non-descriptor parameters that are |
|
82 // passed along asyncronous methods to the server. (Inter-thread reads/writes |
|
83 // are possible only on desc data.) |
|
84 if ( iPtrArray.Count() == 0 ) |
|
85 { |
|
86 TPtr8 ptr( reinterpret_cast<TUint8*>( NULL ), 0 ); |
|
87 |
|
88 for ( TInt i = 0; i < KNumPtrs; i++ ) |
|
89 { |
|
90 User::LeaveIfError( iPtrArray.Append( ptr ) ); |
|
91 } |
|
92 } |
|
93 |
|
94 #ifdef _DEBUG |
|
95 TName processName = RProcess().Name(); |
|
96 if ( processName.Length() < KMaxName ) |
|
97 { |
|
98 LOGIT2("Client [%d]: process name [%s]", this, processName.PtrZ()) |
|
99 } |
|
100 #endif // _DEBUG |
|
101 |
|
102 //LOGEXITFN("RConnectionMonitor::ConnectL()") |
|
103 return KErrNone; |
|
104 } |
|
105 |
|
106 // ----------------------------------------------------------------------------- |
|
107 // RConnectionMonitor::Close |
|
108 // ----------------------------------------------------------------------------- |
|
109 // |
|
110 EXPORT_C void RConnectionMonitor::Close() |
|
111 { |
|
112 //LOGENTRFN("RConnectionMonitor::Close()") |
|
113 // Destroy pointer array |
|
114 iPtrArray.Close(); |
|
115 |
|
116 // Destroy notification handler |
|
117 delete iHandler; |
|
118 iHandler = NULL; |
|
119 |
|
120 // Destroy server session |
|
121 RSessionBase::Close(); |
|
122 |
|
123 LOGIT1("Client [%d]: closed!", this) |
|
124 //LOGEXITFN("RConnectionMonitor::Close()") |
|
125 } |
|
126 |
|
127 // ----------------------------------------------------------------------------- |
|
128 // RConnectionMonitor::GetConnectionCount |
|
129 // ----------------------------------------------------------------------------- |
|
130 // |
|
131 EXPORT_C void RConnectionMonitor::GetConnectionCount( |
|
132 TUint& aConnectionCount, |
|
133 TRequestStatus& aStatus ) |
|
134 { |
|
135 LOGIT1("Client [%d]: GetConnectionCount()", this) |
|
136 |
|
137 TPtr8& pckg = NextPtr(); |
|
138 pckg.Set( |
|
139 reinterpret_cast<TUint8*>( &aConnectionCount ), |
|
140 sizeof( aConnectionCount ), |
|
141 sizeof( aConnectionCount ) ); |
|
142 |
|
143 TIpcArgs args( &pckg ); |
|
144 |
|
145 SendReceive( EReqGetConnectionCount, args, aStatus ); |
|
146 } |
|
147 |
|
148 // ----------------------------------------------------------------------------- |
|
149 // RConnectionMonitor::GetConnectionInfo |
|
150 // ----------------------------------------------------------------------------- |
|
151 // |
|
152 EXPORT_C TInt RConnectionMonitor::GetConnectionInfo( |
|
153 const TUint aIndex, |
|
154 TUint& aConnectionId, |
|
155 TUint& aSubConnectionCount ) const |
|
156 { |
|
157 LOGIT2("Client [%d]: GetConnectionInfo(), index %d", this, aIndex) |
|
158 |
|
159 TPtr8 n( reinterpret_cast<TUint8*>( &aConnectionId ), sizeof( aConnectionId ) ); |
|
160 TPtr8 m( reinterpret_cast<TUint8*>( &aSubConnectionCount ), sizeof( aSubConnectionCount ) ); |
|
161 |
|
162 TIpcArgs args( aIndex, &n, &m ); |
|
163 |
|
164 return( SendReceive( EReqGetConnectionInfo, args ) ); |
|
165 } |
|
166 |
|
167 // ----------------------------------------------------------------------------- |
|
168 // RConnectionMonitor::GetSubConnectionInfo |
|
169 // ----------------------------------------------------------------------------- |
|
170 // |
|
171 EXPORT_C TInt RConnectionMonitor::GetSubConnectionInfo( |
|
172 const TUint aConnectionId, |
|
173 const TUint aIndex, |
|
174 TUint& aSubConnectionId ) const |
|
175 { |
|
176 LOGIT3("Client [%d]: GetSubConnectionInfo(), conn.id %d, index %d", this, aConnectionId, aIndex) |
|
177 |
|
178 TPtr8 n( reinterpret_cast<TUint8*>( &aSubConnectionId ), sizeof( aSubConnectionId ) ); |
|
179 |
|
180 TIpcArgs args( aConnectionId, aIndex, &n ); |
|
181 |
|
182 return( SendReceive( EReqGetSubConnectionInfo, args ) ); |
|
183 } |
|
184 |
|
185 // ----------------------------------------------------------------------------- |
|
186 // RConnectionMonitor::GetIntAttribute |
|
187 // ----------------------------------------------------------------------------- |
|
188 // |
|
189 EXPORT_C void RConnectionMonitor::GetIntAttribute( |
|
190 const TUint aConnectionId, |
|
191 const TUint aSubConnectionId, |
|
192 const TUint aAttribute, |
|
193 TInt& aValue, |
|
194 TRequestStatus& aStatus ) |
|
195 { |
|
196 LOGIT4("Client [%d]: GetIntAttribute(), conn.id %d, sub.conn.id %d, attribute %d", |
|
197 this, aConnectionId, aSubConnectionId, aAttribute) |
|
198 |
|
199 TPtr8& pckg = NextPtr(); |
|
200 pckg.Set( reinterpret_cast<TUint8*>( &aValue ), sizeof( aValue ), sizeof( aValue ) ); |
|
201 |
|
202 TIpcArgs args( aConnectionId, aSubConnectionId, aAttribute, &pckg ); |
|
203 |
|
204 SendReceive( EReqGetIntAttribute, args, aStatus ); |
|
205 } |
|
206 |
|
207 // ----------------------------------------------------------------------------- |
|
208 // RConnectionMonitor::GetUintAttribute |
|
209 // ----------------------------------------------------------------------------- |
|
210 // |
|
211 EXPORT_C void RConnectionMonitor::GetUintAttribute( |
|
212 const TUint aConnectionId, |
|
213 const TUint aSubConnectionId, |
|
214 const TUint aAttribute, |
|
215 TUint& aValue, |
|
216 TRequestStatus& aStatus ) |
|
217 { |
|
218 LOGIT4("Client [%d]: GetUintAttribute(), conn.id %d, sub.conn.id %d, attribute %d", |
|
219 this, aConnectionId, aSubConnectionId, aAttribute) |
|
220 |
|
221 TPtr8& pckg = NextPtr(); |
|
222 pckg.Set( reinterpret_cast<TUint8*>( &aValue ), sizeof( aValue ), sizeof( aValue ) ); |
|
223 |
|
224 TIpcArgs args( aConnectionId, aSubConnectionId, aAttribute, &pckg ); |
|
225 |
|
226 SendReceive( EReqGetUintAttribute, args, aStatus ); |
|
227 } |
|
228 |
|
229 // ----------------------------------------------------------------------------- |
|
230 // RConnectionMonitor::GetBoolAttribute |
|
231 // ----------------------------------------------------------------------------- |
|
232 // |
|
233 EXPORT_C void RConnectionMonitor::GetBoolAttribute( |
|
234 const TUint aConnectionId, |
|
235 const TUint aSubConnectionId, |
|
236 const TUint aAttribute, |
|
237 TBool& aValue, |
|
238 TRequestStatus& aStatus ) |
|
239 { |
|
240 LOGIT4("Client [%d]: GetBoolAttribute(), conn.id %d, sub.conn.id %d, attribute %d", |
|
241 this, aConnectionId, aSubConnectionId, aAttribute) |
|
242 |
|
243 TPtr8& pckg = NextPtr(); |
|
244 pckg.Set( reinterpret_cast<TUint8*>( &aValue ), sizeof( aValue ), sizeof( aValue ) ); |
|
245 |
|
246 TIpcArgs args( aConnectionId, aSubConnectionId, aAttribute, &pckg ); |
|
247 |
|
248 SendReceive( EReqGetBoolAttribute, args, aStatus ); |
|
249 } |
|
250 |
|
251 // ----------------------------------------------------------------------------- |
|
252 // RConnectionMonitor::GetStringAttribute |
|
253 // ----------------------------------------------------------------------------- |
|
254 // |
|
255 EXPORT_C void RConnectionMonitor::GetStringAttribute( |
|
256 const TUint aConnectionId, |
|
257 const TUint aSubConnectionId, |
|
258 const TUint aAttribute, |
|
259 TDes& aValue, |
|
260 TRequestStatus& aStatus ) const |
|
261 { |
|
262 LOGIT4("Client [%d]: GetStringAttribute(), conn.id %d, sub.conn.id %d, attribute %d", |
|
263 this, aConnectionId, aSubConnectionId, aAttribute) |
|
264 |
|
265 TIpcArgs args( aConnectionId, aSubConnectionId, aAttribute, &aValue ); |
|
266 |
|
267 SendReceive( EReqGetStringAttribute, args, aStatus ); |
|
268 } |
|
269 |
|
270 // ----------------------------------------------------------------------------- |
|
271 // RConnectionMonitor::GetPckgAttribute |
|
272 // ----------------------------------------------------------------------------- |
|
273 // |
|
274 EXPORT_C void RConnectionMonitor::GetPckgAttribute( |
|
275 const TUint aConnectionId, |
|
276 const TUint aSubConnectionId, |
|
277 const TUint aAttribute, |
|
278 TDes8& aValue, |
|
279 TRequestStatus& aStatus ) const |
|
280 { |
|
281 LOGIT4("Client [%d]: 8GetPckgAttribute(), conn.id %d, sub.conn.id %d, attribute %d", |
|
282 this, aConnectionId, aSubConnectionId, aAttribute) |
|
283 |
|
284 TIpcArgs args( aConnectionId, aSubConnectionId, aAttribute, &aValue ); |
|
285 |
|
286 SendReceive( EReqGetPckgAttribute, args, aStatus ); |
|
287 } |
|
288 |
|
289 // ----------------------------------------------------------------------------- |
|
290 // RConnectionMonitor::GetPckgAttribute |
|
291 // ----------------------------------------------------------------------------- |
|
292 // |
|
293 EXPORT_C void RConnectionMonitor::GetPckgAttribute( |
|
294 const TUint aConnectionId, |
|
295 const TUint aSubConnectionId, |
|
296 const TUint aAttribute, |
|
297 TDes16& aValue, |
|
298 TRequestStatus& aStatus ) const |
|
299 { |
|
300 LOGIT4("Client [%d]: 16GetPckgAttribute(), conn.id %d, sub.conn.id %d, attribute %d", |
|
301 this, aConnectionId, aSubConnectionId, aAttribute) |
|
302 |
|
303 TIpcArgs args( aConnectionId, aSubConnectionId, aAttribute, &aValue ); |
|
304 |
|
305 SendReceive( EReqGetPckgAttribute, args, aStatus ); |
|
306 } |
|
307 |
|
308 // ----------------------------------------------------------------------------- |
|
309 // RConnectionMonitor::SetIntAttribute |
|
310 // ----------------------------------------------------------------------------- |
|
311 // |
|
312 EXPORT_C TInt RConnectionMonitor::SetIntAttribute( |
|
313 const TUint aConnectionId, |
|
314 const TUint aSubConnectionId, |
|
315 const TUint aAttribute, |
|
316 const TInt aValue ) const |
|
317 { |
|
318 LOGIT5("Client [%d]: SetIntAttribute(), conn.id %d, sub.conn.id %d, attribute %d, value %d", |
|
319 this, aConnectionId, aSubConnectionId, aAttribute, aValue) |
|
320 |
|
321 TIpcArgs args( aConnectionId, aSubConnectionId, aAttribute, aValue ); |
|
322 |
|
323 return( SendReceive( EReqSetIntAttribute, args ) ); |
|
324 } |
|
325 |
|
326 // ----------------------------------------------------------------------------- |
|
327 // RConnectionMonitor::SetUintAttribute |
|
328 // ----------------------------------------------------------------------------- |
|
329 // |
|
330 EXPORT_C TInt RConnectionMonitor::SetUintAttribute( |
|
331 const TUint aConnectionId, |
|
332 const TUint aSubConnectionId, |
|
333 const TUint aAttribute, |
|
334 const TUint aValue ) const |
|
335 { |
|
336 LOGIT5("Client [%d]: SetUintAttribute(), conn.id %d, sub.conn.id %d, attribute %d, value %d", |
|
337 this, aConnectionId, aSubConnectionId, aAttribute, aValue) |
|
338 |
|
339 TIpcArgs args( aConnectionId, aSubConnectionId, aAttribute, aValue ); |
|
340 |
|
341 return( SendReceive( EReqSetUintAttribute, args ) ); |
|
342 } |
|
343 |
|
344 // ----------------------------------------------------------------------------- |
|
345 // RConnectionMonitor::SetBoolAttribute |
|
346 // ----------------------------------------------------------------------------- |
|
347 // |
|
348 EXPORT_C TInt RConnectionMonitor::SetBoolAttribute( |
|
349 const TUint aConnectionId, |
|
350 const TUint aSubConnectionId, |
|
351 const TUint aAttribute, |
|
352 const TBool aValue ) const |
|
353 { |
|
354 LOGIT5("Client [%d]: SetBoolAttribute(), conn.id %d, sub.conn.id %d, attribute %d, value %d", |
|
355 this, aConnectionId, aSubConnectionId, aAttribute, aValue) |
|
356 |
|
357 TIpcArgs args( aConnectionId, aSubConnectionId, aAttribute, aValue ); |
|
358 |
|
359 return( SendReceive( EReqSetBoolAttribute, args ) ); |
|
360 } |
|
361 |
|
362 // ----------------------------------------------------------------------------- |
|
363 // RConnectionMonitor::SetStringAttribute |
|
364 // ----------------------------------------------------------------------------- |
|
365 // |
|
366 EXPORT_C TInt RConnectionMonitor::SetStringAttribute( |
|
367 const TUint aConnectionId, |
|
368 const TUint aSubConnectionId, |
|
369 const TUint aAttribute, |
|
370 const TDes& aValue ) const |
|
371 { |
|
372 LOGIT4("Client [%d]: SetStringAttribute(), conn.id %d, sub.conn.id %d, attribute %d", |
|
373 this, aConnectionId, aSubConnectionId, aAttribute) |
|
374 |
|
375 TIpcArgs args( aConnectionId, aSubConnectionId, aAttribute, &aValue ); |
|
376 |
|
377 return( SendReceive( EReqSetStringAttribute, args ) ); |
|
378 } |
|
379 |
|
380 // ----------------------------------------------------------------------------- |
|
381 // RConnectionMonitor::SetPckgAttribute |
|
382 // ----------------------------------------------------------------------------- |
|
383 // |
|
384 EXPORT_C TInt RConnectionMonitor::SetPckgAttribute( |
|
385 const TUint aConnectionId, |
|
386 const TUint aSubConnectionId, |
|
387 const TUint aAttribute, |
|
388 const TDes8& aValue ) const |
|
389 { |
|
390 LOGIT4("Client [%d]: SetPckgAttribute(), conn.id %d, sub.conn.id %d, attribute %d", |
|
391 this, aConnectionId, aSubConnectionId, aAttribute) |
|
392 |
|
393 TIpcArgs args( aConnectionId, aSubConnectionId, aAttribute, &aValue ); |
|
394 |
|
395 return( SendReceive( EReqSetPckgAttribute, args ) ); |
|
396 } |
|
397 |
|
398 // ----------------------------------------------------------------------------- |
|
399 // RConnectionMonitor::CancelAsyncRequest |
|
400 // ----------------------------------------------------------------------------- |
|
401 // |
|
402 EXPORT_C void RConnectionMonitor::CancelAsyncRequest( TInt aReqToCancel ) |
|
403 { |
|
404 LOGIT2("Client [%d]: CancelAsyncRequest(), request to cancel: %d", this, aReqToCancel) |
|
405 |
|
406 TIpcArgs args( aReqToCancel ); |
|
407 |
|
408 SendReceive( EReqCancelAsyncRequest, args ); |
|
409 } |
|
410 |
|
411 // ----------------------------------------------------------------------------- |
|
412 // RConnectionMonitor::NotifyEventL |
|
413 // ----------------------------------------------------------------------------- |
|
414 // |
|
415 EXPORT_C TInt RConnectionMonitor::NotifyEventL( MConnectionMonitorObserver& aObserver ) |
|
416 { |
|
417 LOGIT1("Client [%d]: NotifyEventL()", this) |
|
418 |
|
419 if ( iHandler == 0) |
|
420 { |
|
421 // Create active object to receive events and add it to scheduler |
|
422 iHandler = new( ELeave ) CConnMonEventHandler( &aObserver, *this ); |
|
423 iHandler->Construct(); |
|
424 |
|
425 // Kick off receive handler active object to start listening and start a receive |
|
426 iHandler->ReceiveNotification(); |
|
427 } |
|
428 else |
|
429 { |
|
430 // Continue paused event handler. |
|
431 iHandler->Continue( &aObserver ); |
|
432 } |
|
433 |
|
434 return KErrNone; |
|
435 } |
|
436 |
|
437 // ----------------------------------------------------------------------------- |
|
438 // RConnectionMonitor::CancelNotifications |
|
439 // ----------------------------------------------------------------------------- |
|
440 // |
|
441 EXPORT_C void RConnectionMonitor::CancelNotifications() |
|
442 { |
|
443 LOGIT1("Client [%d]: CancelNotifications()", this) |
|
444 |
|
445 if ( iHandler != 0 ) |
|
446 { |
|
447 if ( iHandler->IsActive() ) |
|
448 { |
|
449 // Cancel event receiver |
|
450 iHandler->Cancel(); |
|
451 |
|
452 // Delete and remove from active scheduler |
|
453 //iHandler->Deque; |
|
454 delete iHandler; |
|
455 iHandler = NULL; |
|
456 } |
|
457 else |
|
458 { |
|
459 // Client has cancelled notifications from |
|
460 // EventL() method. -> can't delete the iHandler object. |
|
461 // CancelReceiveEvent() needs to be called to set |
|
462 // iListening flag of this session in the server to 'false'. |
|
463 CancelReceiveEvent(); |
|
464 iHandler->Pause(); |
|
465 } |
|
466 } |
|
467 } |
|
468 |
|
469 |
|
470 // Private methods in conjunction with CConnMonEventHandler |
|
471 |
|
472 // ----------------------------------------------------------------------------- |
|
473 // RConnectionMonitor::ReceiveEvent |
|
474 // ----------------------------------------------------------------------------- |
|
475 // |
|
476 void RConnectionMonitor::ReceiveEvent( |
|
477 TDes8& aBuffer, |
|
478 TDes8& aExtraBuf, |
|
479 TRequestStatus& aStatus ) |
|
480 { |
|
481 //LOGIT1("Client [%d]: waiting for next event", this) |
|
482 |
|
483 TIpcArgs args( &aBuffer, &aExtraBuf ); |
|
484 |
|
485 SendReceive( EReqReceiveEvent, args, aStatus ); |
|
486 } |
|
487 |
|
488 // ----------------------------------------------------------------------------- |
|
489 // RConnectionMonitor::CancelReceiveEvent |
|
490 // ----------------------------------------------------------------------------- |
|
491 // |
|
492 void RConnectionMonitor::CancelReceiveEvent() |
|
493 { |
|
494 LOGIT1("Client [%d]: CancelReceiveEvent()", this) |
|
495 |
|
496 SendReceive( EReqCancelReceiveEvent, TIpcArgs( TIpcArgs::ENothing ) ); |
|
497 } |
|
498 |
|
499 // Private internal methods |
|
500 |
|
501 // ----------------------------------------------------------------------------- |
|
502 // RConnectionMonitor::IsConnected |
|
503 // ----------------------------------------------------------------------------- |
|
504 // |
|
505 TBool RConnectionMonitor::IsConnected() const |
|
506 { |
|
507 if ( iPtrArray.Count() > 0 ) |
|
508 { |
|
509 return ETrue; |
|
510 } |
|
511 else |
|
512 { |
|
513 return EFalse; |
|
514 } |
|
515 } |
|
516 |
|
517 // ----------------------------------------------------------------------------- |
|
518 // RConnectionMonitor::NextPtr |
|
519 // ----------------------------------------------------------------------------- |
|
520 // |
|
521 TPtr8& RConnectionMonitor::NextPtr() |
|
522 { |
|
523 __ASSERT_ALWAYS( IsConnected(), Panic( EConnMonPanicClientNotConnected ) ); |
|
524 |
|
525 if ( iIndex >= iPtrArray.Count() ) |
|
526 { |
|
527 iIndex = 0; |
|
528 } |
|
529 |
|
530 return iPtrArray[iIndex++]; |
|
531 } |
|
532 |
|
533 // ============================ MEMBER FUNCTIONS =============================== |
|
534 |
|
535 // ----------------------------------------------------------------------------- |
|
536 // CConnMonEventBase::CConnMonEventBase |
|
537 // ----------------------------------------------------------------------------- |
|
538 // |
|
539 CConnMonEventBase::CConnMonEventBase( |
|
540 const TInt aEventType, |
|
541 const TUint aConnectionId ) |
|
542 { |
|
543 iEventType = aEventType; |
|
544 iConnectionId = aConnectionId; |
|
545 } |
|
546 |
|
547 // Destructor |
|
548 CConnMonEventBase::~CConnMonEventBase() |
|
549 { |
|
550 } |
|
551 |
|
552 // ----------------------------------------------------------------------------- |
|
553 // CConnMonEventBase::EventType |
|
554 // ----------------------------------------------------------------------------- |
|
555 // |
|
556 EXPORT_C TInt CConnMonEventBase::EventType() const |
|
557 { |
|
558 return iEventType; |
|
559 } |
|
560 |
|
561 // ----------------------------------------------------------------------------- |
|
562 // CConnMonEventBase::ConnectionId |
|
563 // ----------------------------------------------------------------------------- |
|
564 // |
|
565 EXPORT_C TUint CConnMonEventBase::ConnectionId() const |
|
566 { |
|
567 return iConnectionId; |
|
568 } |
|
569 |
|
570 // ============================ MEMBER FUNCTIONS =============================== |
|
571 |
|
572 // ----------------------------------------------------------------------------- |
|
573 // CConnMonCreateConnection::CConnMonCreateConnection |
|
574 // ----------------------------------------------------------------------------- |
|
575 // |
|
576 CConnMonCreateConnection::CConnMonCreateConnection( |
|
577 const TUint aConnectionId ) |
|
578 : |
|
579 CConnMonEventBase( EConnMonCreateConnection, aConnectionId ) |
|
580 { |
|
581 } |
|
582 |
|
583 // Destructor |
|
584 CConnMonCreateConnection::~CConnMonCreateConnection() |
|
585 { |
|
586 } |
|
587 |
|
588 // ============================ MEMBER FUNCTIONS =============================== |
|
589 |
|
590 // ----------------------------------------------------------------------------- |
|
591 // CConnMonDeleteConnection::CConnMonDeleteConnection |
|
592 // ----------------------------------------------------------------------------- |
|
593 // |
|
594 CConnMonDeleteConnection::CConnMonDeleteConnection( |
|
595 const TUint aConnectionId, |
|
596 const TUint aDownlinkData, |
|
597 const TUint aUplinkData, |
|
598 const TBool aAuthDelete ) |
|
599 : |
|
600 CConnMonEventBase( EConnMonDeleteConnection, aConnectionId ) |
|
601 { |
|
602 iDownlinkData = aDownlinkData; |
|
603 iUplinkData = aUplinkData; |
|
604 iAuthDelete = aAuthDelete; |
|
605 } |
|
606 |
|
607 // Destructor |
|
608 CConnMonDeleteConnection::~CConnMonDeleteConnection() |
|
609 { |
|
610 } |
|
611 |
|
612 // ----------------------------------------------------------------------------- |
|
613 // CConnMonDeleteConnection::DownlinkData |
|
614 // ----------------------------------------------------------------------------- |
|
615 // |
|
616 EXPORT_C TUint CConnMonDeleteConnection::DownlinkData() const |
|
617 { |
|
618 return iDownlinkData; |
|
619 } |
|
620 |
|
621 // ----------------------------------------------------------------------------- |
|
622 // CConnMonDeleteConnection::UplinkData |
|
623 // ----------------------------------------------------------------------------- |
|
624 // |
|
625 EXPORT_C TUint CConnMonDeleteConnection::UplinkData() const |
|
626 { |
|
627 return iUplinkData; |
|
628 } |
|
629 |
|
630 // ----------------------------------------------------------------------------- |
|
631 // CConnMonDeleteConnection::AuthoritativeDelete |
|
632 // ----------------------------------------------------------------------------- |
|
633 // |
|
634 EXPORT_C TBool CConnMonDeleteConnection::AuthoritativeDelete() const |
|
635 { |
|
636 return iAuthDelete; |
|
637 } |
|
638 |
|
639 // ============================ MEMBER FUNCTIONS =============================== |
|
640 |
|
641 // ----------------------------------------------------------------------------- |
|
642 // CConnMonCreateSubConnection::CConnMonCreateSubConnection |
|
643 // ----------------------------------------------------------------------------- |
|
644 // |
|
645 CConnMonCreateSubConnection::CConnMonCreateSubConnection( |
|
646 const TUint aConnectionId, |
|
647 const TUint aSubConnectionId ) |
|
648 : |
|
649 CConnMonEventBase( EConnMonCreateSubConnection, aConnectionId ) |
|
650 { |
|
651 iSubConnectionId = aSubConnectionId; |
|
652 } |
|
653 |
|
654 // Destructor |
|
655 CConnMonCreateSubConnection::~CConnMonCreateSubConnection() |
|
656 { |
|
657 } |
|
658 |
|
659 // ----------------------------------------------------------------------------- |
|
660 // CConnMonCreateSubConnection::SubConnectionId |
|
661 // ----------------------------------------------------------------------------- |
|
662 // |
|
663 EXPORT_C TUint CConnMonCreateSubConnection::SubConnectionId() const |
|
664 { |
|
665 return iSubConnectionId; |
|
666 } |
|
667 |
|
668 // ============================ MEMBER FUNCTIONS =============================== |
|
669 |
|
670 // ----------------------------------------------------------------------------- |
|
671 // CConnMonDeleteSubConnection::CConnMonDeleteSubConnection |
|
672 // ----------------------------------------------------------------------------- |
|
673 // |
|
674 CConnMonDeleteSubConnection::CConnMonDeleteSubConnection( |
|
675 const TUint aConnectionId, |
|
676 const TUint aSubConnectionId, |
|
677 const TUint aDownlinkData, |
|
678 const TUint aUplinkData, |
|
679 const TBool aAuthDelete ) |
|
680 : |
|
681 CConnMonEventBase( EConnMonDeleteSubConnection, aConnectionId ) |
|
682 { |
|
683 iSubConnectionId = aSubConnectionId; |
|
684 iDownlinkData = aDownlinkData; |
|
685 iUplinkData = aUplinkData; |
|
686 iAuthDelete = aAuthDelete; |
|
687 } |
|
688 |
|
689 // Destructor |
|
690 CConnMonDeleteSubConnection::~CConnMonDeleteSubConnection() |
|
691 { |
|
692 } |
|
693 |
|
694 // ----------------------------------------------------------------------------- |
|
695 // CConnMonDeleteSubConnection::SubConnectionId |
|
696 // ----------------------------------------------------------------------------- |
|
697 // |
|
698 EXPORT_C TUint CConnMonDeleteSubConnection::SubConnectionId() const |
|
699 { |
|
700 return iSubConnectionId; |
|
701 } |
|
702 |
|
703 // ----------------------------------------------------------------------------- |
|
704 // CConnMonDeleteSubConnection::DownlinkData |
|
705 // ----------------------------------------------------------------------------- |
|
706 // |
|
707 EXPORT_C TUint CConnMonDeleteSubConnection::DownlinkData() const |
|
708 { |
|
709 return iDownlinkData; |
|
710 } |
|
711 |
|
712 // ----------------------------------------------------------------------------- |
|
713 // CConnMonDeleteSubConnection::UplinkData |
|
714 // ----------------------------------------------------------------------------- |
|
715 // |
|
716 EXPORT_C TUint CConnMonDeleteSubConnection::UplinkData() const |
|
717 { |
|
718 return iUplinkData; |
|
719 } |
|
720 |
|
721 // ----------------------------------------------------------------------------- |
|
722 // CConnMonDeleteSubConnection::AuthoritativeDelete |
|
723 // ----------------------------------------------------------------------------- |
|
724 // |
|
725 EXPORT_C TBool CConnMonDeleteSubConnection::AuthoritativeDelete() const |
|
726 { |
|
727 return iAuthDelete; |
|
728 } |
|
729 |
|
730 // ============================ MEMBER FUNCTIONS =============================== |
|
731 |
|
732 // ----------------------------------------------------------------------------- |
|
733 // CConnMonDownlinkDataThreshold::CConnMonDownlinkDataThreshold |
|
734 // ----------------------------------------------------------------------------- |
|
735 // |
|
736 CConnMonDownlinkDataThreshold::CConnMonDownlinkDataThreshold( |
|
737 const TUint aConnectionId, |
|
738 const TUint aSubConnectionId, |
|
739 const TUint aDownlinkData ) |
|
740 : |
|
741 CConnMonEventBase( EConnMonDownlinkDataThreshold, aConnectionId ) |
|
742 { |
|
743 iSubConnectionId = aSubConnectionId; |
|
744 iDownlinkData = aDownlinkData; |
|
745 } |
|
746 |
|
747 // Destructor |
|
748 CConnMonDownlinkDataThreshold::~CConnMonDownlinkDataThreshold() |
|
749 { |
|
750 } |
|
751 |
|
752 // ----------------------------------------------------------------------------- |
|
753 // CConnMonDownlinkDataThreshold::SubConnectionId |
|
754 // ----------------------------------------------------------------------------- |
|
755 // |
|
756 EXPORT_C TUint CConnMonDownlinkDataThreshold::SubConnectionId() const |
|
757 { |
|
758 return iSubConnectionId; |
|
759 } |
|
760 |
|
761 // ----------------------------------------------------------------------------- |
|
762 // CConnMonDownlinkDataThreshold::DownlinkData |
|
763 // ----------------------------------------------------------------------------- |
|
764 // |
|
765 EXPORT_C TUint CConnMonDownlinkDataThreshold::DownlinkData() const |
|
766 { |
|
767 return iDownlinkData; |
|
768 } |
|
769 |
|
770 // ============================ MEMBER FUNCTIONS =============================== |
|
771 |
|
772 // ----------------------------------------------------------------------------- |
|
773 // CConnMonUplinkDataThreshold::CConnMonUplinkDataThreshold |
|
774 // ----------------------------------------------------------------------------- |
|
775 // |
|
776 CConnMonUplinkDataThreshold::CConnMonUplinkDataThreshold( |
|
777 const TUint aConnectionId, |
|
778 const TUint aSubConnectionId, |
|
779 const TUint aUplinkData ) |
|
780 : |
|
781 CConnMonEventBase( EConnMonUplinkDataThreshold, aConnectionId ) |
|
782 { |
|
783 iSubConnectionId = aSubConnectionId; |
|
784 iUplinkData = aUplinkData; |
|
785 } |
|
786 |
|
787 // Destructor |
|
788 CConnMonUplinkDataThreshold::~CConnMonUplinkDataThreshold() |
|
789 { |
|
790 } |
|
791 |
|
792 // ----------------------------------------------------------------------------- |
|
793 // CConnMonUplinkDataThreshold::SubConnectionId |
|
794 // ----------------------------------------------------------------------------- |
|
795 // |
|
796 EXPORT_C TUint CConnMonUplinkDataThreshold::SubConnectionId() const |
|
797 { |
|
798 return iSubConnectionId; |
|
799 } |
|
800 |
|
801 // ----------------------------------------------------------------------------- |
|
802 // CConnMonUplinkDataThreshold::UplinkData |
|
803 // ----------------------------------------------------------------------------- |
|
804 // |
|
805 EXPORT_C TUint CConnMonUplinkDataThreshold::UplinkData() const |
|
806 { |
|
807 return iUplinkData; |
|
808 } |
|
809 |
|
810 // ============================ MEMBER FUNCTIONS =============================== |
|
811 |
|
812 // ----------------------------------------------------------------------------- |
|
813 // CConnMonNetworkStatusChange::CConnMonNetworkStatusChange |
|
814 // ----------------------------------------------------------------------------- |
|
815 // |
|
816 CConnMonNetworkStatusChange::CConnMonNetworkStatusChange( |
|
817 const TUint aConnectionId, |
|
818 const TInt aNetworkStatus ) |
|
819 : |
|
820 CConnMonEventBase( EConnMonNetworkStatusChange, aConnectionId ) |
|
821 { |
|
822 iNetworkStatus = aNetworkStatus; |
|
823 } |
|
824 |
|
825 // Destructor |
|
826 CConnMonNetworkStatusChange::~CConnMonNetworkStatusChange() |
|
827 { |
|
828 } |
|
829 |
|
830 // ----------------------------------------------------------------------------- |
|
831 // CConnMonNetworkStatusChange::NetworkStatus |
|
832 // ----------------------------------------------------------------------------- |
|
833 // |
|
834 EXPORT_C TInt CConnMonNetworkStatusChange::NetworkStatus() const |
|
835 { |
|
836 return iNetworkStatus; |
|
837 } |
|
838 |
|
839 // ============================ MEMBER FUNCTIONS =============================== |
|
840 |
|
841 // ----------------------------------------------------------------------------- |
|
842 // CConnMonConnectionStatusChange::CConnMonConnectionStatusChange |
|
843 // ----------------------------------------------------------------------------- |
|
844 // |
|
845 CConnMonConnectionStatusChange::CConnMonConnectionStatusChange( |
|
846 const TUint aConnectionId, |
|
847 const TUint aSubConnectionId, |
|
848 const TInt aConnectionStatus ) |
|
849 : |
|
850 CConnMonEventBase( EConnMonConnectionStatusChange, aConnectionId ) |
|
851 { |
|
852 iSubConnectionId = aSubConnectionId; |
|
853 iConnectionStatus = aConnectionStatus; |
|
854 } |
|
855 |
|
856 // Destructor |
|
857 CConnMonConnectionStatusChange::~CConnMonConnectionStatusChange() |
|
858 { |
|
859 } |
|
860 |
|
861 // ----------------------------------------------------------------------------- |
|
862 // CConnMonConnectionStatusChange::SubConnectionId |
|
863 // ----------------------------------------------------------------------------- |
|
864 // |
|
865 EXPORT_C TUint CConnMonConnectionStatusChange::SubConnectionId() const |
|
866 { |
|
867 return iSubConnectionId; |
|
868 } |
|
869 |
|
870 // ----------------------------------------------------------------------------- |
|
871 // CConnMonConnectionStatusChange::ConnectionStatus |
|
872 // ----------------------------------------------------------------------------- |
|
873 // |
|
874 EXPORT_C TInt CConnMonConnectionStatusChange::ConnectionStatus() const |
|
875 { |
|
876 return iConnectionStatus; |
|
877 } |
|
878 |
|
879 // ============================ MEMBER FUNCTIONS =============================== |
|
880 |
|
881 // ----------------------------------------------------------------------------- |
|
882 // CConnMonConnectionActivityChange::CConnMonConnectionActivityChange |
|
883 // ----------------------------------------------------------------------------- |
|
884 // |
|
885 CConnMonConnectionActivityChange::CConnMonConnectionActivityChange( |
|
886 const TUint aConnectionId, |
|
887 const TUint aSubConnectionId, |
|
888 const TBool aActivity ) |
|
889 : |
|
890 CConnMonEventBase( EConnMonConnectionActivityChange, aConnectionId ) |
|
891 { |
|
892 iSubConnectionId = aSubConnectionId; |
|
893 iActivity = aActivity; |
|
894 } |
|
895 |
|
896 // Destructor |
|
897 CConnMonConnectionActivityChange::~CConnMonConnectionActivityChange() |
|
898 { |
|
899 } |
|
900 |
|
901 // ----------------------------------------------------------------------------- |
|
902 // CConnMonConnectionActivityChange::SubConnectionId |
|
903 // ----------------------------------------------------------------------------- |
|
904 // |
|
905 EXPORT_C TUint CConnMonConnectionActivityChange::SubConnectionId() const |
|
906 { |
|
907 return iSubConnectionId; |
|
908 } |
|
909 |
|
910 // ----------------------------------------------------------------------------- |
|
911 // CConnMonConnectionActivityChange::ConnectionActivity |
|
912 // ----------------------------------------------------------------------------- |
|
913 // |
|
914 EXPORT_C TBool CConnMonConnectionActivityChange::ConnectionActivity() const |
|
915 { |
|
916 return iActivity; |
|
917 } |
|
918 |
|
919 // ============================ MEMBER FUNCTIONS =============================== |
|
920 |
|
921 // ----------------------------------------------------------------------------- |
|
922 // CConnMonNetworkRegistrationChange::CConnMonNetworkRegistrationChange |
|
923 // ----------------------------------------------------------------------------- |
|
924 // |
|
925 CConnMonNetworkRegistrationChange::CConnMonNetworkRegistrationChange( |
|
926 const TUint aConnectionId, |
|
927 const TInt aRegistrationStatus ) |
|
928 : |
|
929 CConnMonEventBase( EConnMonNetworkRegistrationChange, aConnectionId ) |
|
930 { |
|
931 iRegistrationStatus = aRegistrationStatus; |
|
932 } |
|
933 |
|
934 // Destructor |
|
935 CConnMonNetworkRegistrationChange::~CConnMonNetworkRegistrationChange() |
|
936 { |
|
937 } |
|
938 |
|
939 // ----------------------------------------------------------------------------- |
|
940 // CConnMonNetworkRegistrationChange::RegistrationStatus |
|
941 // ----------------------------------------------------------------------------- |
|
942 // |
|
943 EXPORT_C TInt CConnMonNetworkRegistrationChange::RegistrationStatus() const |
|
944 { |
|
945 return iRegistrationStatus; |
|
946 } |
|
947 |
|
948 // ============================ MEMBER FUNCTIONS =============================== |
|
949 |
|
950 // ----------------------------------------------------------------------------- |
|
951 // CConnMonBearerChange::CConnMonBearerChange |
|
952 // ----------------------------------------------------------------------------- |
|
953 // |
|
954 CConnMonBearerChange::CConnMonBearerChange( |
|
955 const TUint aConnectionId, |
|
956 const TInt aBearer ) |
|
957 : |
|
958 CConnMonEventBase( EConnMonBearerChange, aConnectionId ) |
|
959 { |
|
960 iBearer = aBearer; |
|
961 } |
|
962 |
|
963 // Destructor |
|
964 CConnMonBearerChange::~CConnMonBearerChange() |
|
965 { |
|
966 } |
|
967 |
|
968 // ----------------------------------------------------------------------------- |
|
969 // CConnMonBearerChange::RegistrationStatus |
|
970 // ----------------------------------------------------------------------------- |
|
971 // |
|
972 EXPORT_C TInt CConnMonBearerChange::Bearer() const |
|
973 { |
|
974 return iBearer; |
|
975 } |
|
976 |
|
977 // ============================ MEMBER FUNCTIONS =============================== |
|
978 |
|
979 // ----------------------------------------------------------------------------- |
|
980 // CConnMonSignalStrengthChange::CConnMonSignalStrengthChange |
|
981 // ----------------------------------------------------------------------------- |
|
982 // |
|
983 CConnMonSignalStrengthChange::CConnMonSignalStrengthChange( |
|
984 const TUint aConnectionId, |
|
985 const TInt aSignalStrength ) |
|
986 : |
|
987 CConnMonEventBase( EConnMonSignalStrengthChange, aConnectionId ) |
|
988 { |
|
989 iSignalStrength = aSignalStrength; |
|
990 } |
|
991 |
|
992 // Destructor |
|
993 CConnMonSignalStrengthChange::~CConnMonSignalStrengthChange() |
|
994 { |
|
995 } |
|
996 |
|
997 // ----------------------------------------------------------------------------- |
|
998 // CConnMonSignalStrengthChange::SignalStrength |
|
999 // ----------------------------------------------------------------------------- |
|
1000 // |
|
1001 EXPORT_C TInt CConnMonSignalStrengthChange::SignalStrength() const |
|
1002 { |
|
1003 return iSignalStrength; |
|
1004 } |
|
1005 |
|
1006 // ============================ MEMBER FUNCTIONS =============================== |
|
1007 |
|
1008 // ----------------------------------------------------------------------------- |
|
1009 // CConnMonBearerAvailabilityChange::CConnMonBearerAvailabilityChange |
|
1010 // ----------------------------------------------------------------------------- |
|
1011 // |
|
1012 CConnMonBearerAvailabilityChange::CConnMonBearerAvailabilityChange( |
|
1013 const TUint aConnectionId, |
|
1014 const TBool aAvailability ) |
|
1015 : |
|
1016 CConnMonEventBase( EConnMonBearerAvailabilityChange, aConnectionId ) |
|
1017 { |
|
1018 iAvailability = aAvailability; |
|
1019 } |
|
1020 |
|
1021 // Destructor |
|
1022 CConnMonBearerAvailabilityChange::~CConnMonBearerAvailabilityChange() |
|
1023 { |
|
1024 } |
|
1025 |
|
1026 // ----------------------------------------------------------------------------- |
|
1027 // CConnMonBearerAvailabilityChange::Availability |
|
1028 // ----------------------------------------------------------------------------- |
|
1029 // |
|
1030 EXPORT_C TBool CConnMonBearerAvailabilityChange::Availability() const |
|
1031 { |
|
1032 return iAvailability; |
|
1033 } |
|
1034 |
|
1035 // ============================ MEMBER FUNCTIONS =============================== |
|
1036 |
|
1037 // ----------------------------------------------------------------------------- |
|
1038 // CConnMonGenericEvent::CConnMonGenericEvent |
|
1039 // ----------------------------------------------------------------------------- |
|
1040 // |
|
1041 CConnMonGenericEvent::CConnMonGenericEvent( |
|
1042 const TUint aType, |
|
1043 const TUint aConnectionId, |
|
1044 TAny* aData ) |
|
1045 : |
|
1046 CConnMonEventBase( aType, aConnectionId ) |
|
1047 { |
|
1048 iData = aData; |
|
1049 } |
|
1050 |
|
1051 // Destructor |
|
1052 CConnMonGenericEvent::~CConnMonGenericEvent() |
|
1053 { |
|
1054 iData = 0; |
|
1055 } |
|
1056 |
|
1057 // ----------------------------------------------------------------------------- |
|
1058 // CConnMonGenericEvent::Data |
|
1059 // ----------------------------------------------------------------------------- |
|
1060 // |
|
1061 EXPORT_C TAny* CConnMonGenericEvent::Data() const |
|
1062 { |
|
1063 return iData; |
|
1064 } |
|
1065 |
|
1066 // ============================ MEMBER FUNCTIONS =============================== |
|
1067 |
|
1068 // ----------------------------------------------------------------------------- |
|
1069 // CConnMonIapAvailabilityChange::CConnMonIapAvailabilityChange |
|
1070 // ----------------------------------------------------------------------------- |
|
1071 // |
|
1072 CConnMonIapAvailabilityChange::CConnMonIapAvailabilityChange( |
|
1073 const TUint aConnectionId, |
|
1074 const TConnMonIapInfo* aIapInfoPtr ) |
|
1075 : |
|
1076 CConnMonEventBase( EConnMonIapAvailabilityChange, aConnectionId ) |
|
1077 { |
|
1078 iIapInfo.iCount = 0; |
|
1079 |
|
1080 if ( aIapInfoPtr ) |
|
1081 { |
|
1082 iIapInfo = *aIapInfoPtr; |
|
1083 } |
|
1084 } |
|
1085 |
|
1086 // Destructor |
|
1087 CConnMonIapAvailabilityChange::~CConnMonIapAvailabilityChange() |
|
1088 { |
|
1089 } |
|
1090 |
|
1091 // ----------------------------------------------------------------------------- |
|
1092 // CConnMonIapAvailabilityChange::IapAvailability |
|
1093 // ----------------------------------------------------------------------------- |
|
1094 // |
|
1095 EXPORT_C TConnMonIapInfo CConnMonIapAvailabilityChange::IapAvailability() const |
|
1096 { |
|
1097 return iIapInfo; |
|
1098 } |
|
1099 |
|
1100 // ============================ MEMBER FUNCTIONS =============================== |
|
1101 |
|
1102 // ----------------------------------------------------------------------------- |
|
1103 // CConnMonTransmitPowerChange::CConnMonTransmitPowerChange |
|
1104 // ----------------------------------------------------------------------------- |
|
1105 // |
|
1106 CConnMonTransmitPowerChange::CConnMonTransmitPowerChange( |
|
1107 const TUint aConnectionId, |
|
1108 const TUint aTransmitPower ) |
|
1109 : |
|
1110 CConnMonEventBase( EConnMonTransmitPowerChange, aConnectionId ) |
|
1111 { |
|
1112 iTransmitPower = aTransmitPower; |
|
1113 } |
|
1114 |
|
1115 // Destructor |
|
1116 CConnMonTransmitPowerChange::~CConnMonTransmitPowerChange() |
|
1117 { |
|
1118 } |
|
1119 |
|
1120 // ----------------------------------------------------------------------------- |
|
1121 // CConnMonTransmitPowerChange::TransmitPower |
|
1122 // ----------------------------------------------------------------------------- |
|
1123 // |
|
1124 EXPORT_C TUint CConnMonTransmitPowerChange::TransmitPower() const |
|
1125 { |
|
1126 return iTransmitPower; |
|
1127 } |
|
1128 |
|
1129 // ============================ MEMBER FUNCTIONS =============================== |
|
1130 |
|
1131 // ----------------------------------------------------------------------------- |
|
1132 // CConnMonSNAPAvailabilityChange::CConnMonSNAPAvailabilityChange |
|
1133 // ----------------------------------------------------------------------------- |
|
1134 // |
|
1135 CConnMonSNAPsAvailabilityChange::CConnMonSNAPsAvailabilityChange( |
|
1136 const TUint aConnectionId, |
|
1137 const TUint aSNAPsAvailable, |
|
1138 const TConnMonSNAPInfo* aSNAPInfoPtr ) |
|
1139 : |
|
1140 CConnMonEventBase( EConnMonSNAPsAvailabilityChange, aConnectionId ) |
|
1141 { |
|
1142 |
|
1143 iSNAPInfo.iCount = 0; |
|
1144 iSNAPsAvailable = aSNAPsAvailable; |
|
1145 |
|
1146 if ( aSNAPInfoPtr ) |
|
1147 { |
|
1148 iSNAPInfo = *aSNAPInfoPtr; |
|
1149 } |
|
1150 } |
|
1151 |
|
1152 // Destructor |
|
1153 CConnMonSNAPsAvailabilityChange::~CConnMonSNAPsAvailabilityChange() |
|
1154 { |
|
1155 } |
|
1156 |
|
1157 // ----------------------------------------------------------------------------- |
|
1158 // CConnMonSNAPAvailabilityChange::SNAPAvailability |
|
1159 // ----------------------------------------------------------------------------- |
|
1160 // |
|
1161 EXPORT_C TConnMonSNAPInfo CConnMonSNAPsAvailabilityChange::SNAPAvailability() const |
|
1162 { |
|
1163 return iSNAPInfo; |
|
1164 } |
|
1165 |
|
1166 // ----------------------------------------------------------------------------- |
|
1167 // CConnMonSNAPAvailabilityChange::SNAPsAvailable |
|
1168 // ----------------------------------------------------------------------------- |
|
1169 // |
|
1170 EXPORT_C TUint CConnMonSNAPsAvailabilityChange::SNAPsAvailabile() const |
|
1171 { |
|
1172 return iSNAPsAvailable; |
|
1173 } |
|
1174 |
|
1175 // ----------------------------------------------------------------------------- |
|
1176 // CConnMonNewWLANNetworkDetected::CConnMonNewWLANNetworkDetected |
|
1177 // ----------------------------------------------------------------------------- |
|
1178 // |
|
1179 |
|
1180 CConnMonNewWLANNetworkDetected::CConnMonNewWLANNetworkDetected( |
|
1181 const TUint aConnectionId ) |
|
1182 : |
|
1183 CConnMonEventBase( EConnMonNewWLANNetworkDetected, aConnectionId ) |
|
1184 { |
|
1185 } |
|
1186 |
|
1187 // Destructor |
|
1188 CConnMonNewWLANNetworkDetected::~CConnMonNewWLANNetworkDetected() |
|
1189 { |
|
1190 } |
|
1191 |
|
1192 // ----------------------------------------------------------------------------- |
|
1193 // CConnMonNewWLANNetworkDetected::CConnMonNewWLANNetworkDetected |
|
1194 // ----------------------------------------------------------------------------- |
|
1195 // |
|
1196 CConnMonOldWLANNetworkLost::CConnMonOldWLANNetworkLost( |
|
1197 const TUint aConnectionId ) |
|
1198 : |
|
1199 CConnMonEventBase( EConnMonOldWLANNetworkLost, aConnectionId ) |
|
1200 { |
|
1201 } |
|
1202 |
|
1203 // Destructor |
|
1204 CConnMonOldWLANNetworkLost::~CConnMonOldWLANNetworkLost() |
|
1205 { |
|
1206 } |
|
1207 |
|
1208 |
|
1209 // ----------------------------------------------------------------------------- |
|
1210 // CConnMonPacketDataUnavailable::CConnMonPacketDataUnavailable |
|
1211 // ----------------------------------------------------------------------------- |
|
1212 // |
|
1213 CConnMonPacketDataUnavailable::CConnMonPacketDataUnavailable( |
|
1214 const TUint aConnectionId ) |
|
1215 : |
|
1216 CConnMonEventBase( EConnMonPacketDataUnavailable, aConnectionId ) |
|
1217 { |
|
1218 } |
|
1219 |
|
1220 // ----------------------------------------------------------------------------- |
|
1221 // CConnMonPacketDataUnavailable::~CConnMonPacketDataUnavailable |
|
1222 // ----------------------------------------------------------------------------- |
|
1223 // |
|
1224 CConnMonPacketDataUnavailable::~CConnMonPacketDataUnavailable() |
|
1225 { |
|
1226 } |
|
1227 |
|
1228 // ----------------------------------------------------------------------------- |
|
1229 // CConnMonPacketDataAvailable::CConnMonPacketDataAvailable |
|
1230 // ----------------------------------------------------------------------------- |
|
1231 // |
|
1232 CConnMonPacketDataAvailable::CConnMonPacketDataAvailable( |
|
1233 const TUint aConnectionId ) |
|
1234 : |
|
1235 CConnMonEventBase( EConnMonPacketDataAvailable, aConnectionId ) |
|
1236 { |
|
1237 } |
|
1238 |
|
1239 // ----------------------------------------------------------------------------- |
|
1240 // CConnMonPacketDataAvailable::~CConnMonPacketDataAvailable |
|
1241 // ----------------------------------------------------------------------------- |
|
1242 // |
|
1243 CConnMonPacketDataAvailable::~CConnMonPacketDataAvailable() |
|
1244 { |
|
1245 } |
|
1246 |
|
1247 // ----------------------------------------------------------------------------- |
|
1248 // CConnMonBearerGroupChange::CConnMonBearerInfoChange |
|
1249 // ----------------------------------------------------------------------------- |
|
1250 // |
|
1251 CConnMonBearerInfoChange::CConnMonBearerInfoChange( |
|
1252 const TUint aConnectionId, |
|
1253 const TInt aBearerInfo ) |
|
1254 : |
|
1255 CConnMonEventBase( EConnMonBearerInfoChange, aConnectionId ) |
|
1256 { |
|
1257 iBearerInfo = aBearerInfo; |
|
1258 } |
|
1259 |
|
1260 // ----------------------------------------------------------------------------- |
|
1261 // CConnMonBearerGroupChange::~CConnMonBearerInfoChange |
|
1262 // ----------------------------------------------------------------------------- |
|
1263 // |
|
1264 CConnMonBearerInfoChange::~CConnMonBearerInfoChange() |
|
1265 { |
|
1266 } |
|
1267 |
|
1268 // ----------------------------------------------------------------------------- |
|
1269 // CConnMonBearerGroupChange::BearerGroups |
|
1270 // ----------------------------------------------------------------------------- |
|
1271 // |
|
1272 EXPORT_C TInt CConnMonBearerInfoChange::BearerInfo() const |
|
1273 { |
|
1274 return iBearerInfo; |
|
1275 } |
|
1276 |
|
1277 // ----------------------------------------------------------------------------- |
|
1278 // CConnMonBearerGroupChange::CConnMonBearerGroupChange |
|
1279 // ----------------------------------------------------------------------------- |
|
1280 // |
|
1281 CConnMonBearerGroupChange::CConnMonBearerGroupChange( |
|
1282 const TUint aConnectionId, |
|
1283 const TUint aBearerGroups1, |
|
1284 const TUint aBearerGroups2, |
|
1285 const TBool aInternal ) |
|
1286 : |
|
1287 CConnMonEventBase( EConnMonBearerGroupChange, aConnectionId ) |
|
1288 { |
|
1289 iInternal = aInternal; |
|
1290 iBearerGroups1 = aBearerGroups1; |
|
1291 iBearerGroups2 = aBearerGroups2; |
|
1292 } |
|
1293 |
|
1294 // ----------------------------------------------------------------------------- |
|
1295 // CConnMonBearerGroupChange::~CConnMonBearerGroupChange |
|
1296 // ----------------------------------------------------------------------------- |
|
1297 // |
|
1298 CConnMonBearerGroupChange::~CConnMonBearerGroupChange() |
|
1299 { |
|
1300 } |
|
1301 |
|
1302 // ----------------------------------------------------------------------------- |
|
1303 // CConnMonBearerGroupChange::BearerGroups |
|
1304 // ----------------------------------------------------------------------------- |
|
1305 // |
|
1306 EXPORT_C TBool CConnMonBearerGroupChange::Internal() const |
|
1307 { |
|
1308 return iInternal; |
|
1309 } |
|
1310 |
|
1311 // ----------------------------------------------------------------------------- |
|
1312 // CConnMonBearerGroupChange::BearerGroups |
|
1313 // ----------------------------------------------------------------------------- |
|
1314 // |
|
1315 EXPORT_C void CConnMonBearerGroupChange::BearerGroups( |
|
1316 TUint& aBearerGroups1, |
|
1317 TUint& aBearerGroups2 ) const |
|
1318 { |
|
1319 aBearerGroups1 = iBearerGroups1; |
|
1320 aBearerGroups2 = iBearerGroups2; |
|
1321 } |
|
1322 |
|
1323 // End-of-file |