1 /* |
|
2 * Copyright (c) 2002-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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "rconnmon.h" |
|
21 /*#include "ConnMonDef.h" |
|
22 #include "ConnMonCli.h" |
|
23 #include "ConnMonServ.h"*/ |
|
24 #include "CSipSseTestTls.h" |
|
25 #include "musavatimer.h" |
|
26 |
|
27 #include "musunittesting.h" |
|
28 |
|
29 #include <e32std.h> |
|
30 |
|
31 // ============================ MEMBER FUNCTIONS =============================== |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // RConnectionMonitor::ConnectL |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 EXPORT_C TInt RConnectionMonitor::ConnectL() |
|
38 { |
|
39 |
|
40 iMusAvaTimer = CMusAvaTimer::NewL(); |
|
41 return KErrNone; |
|
42 } |
|
43 |
|
44 // ----------------------------------------------------------------------------- |
|
45 // RConnectionMonitor::Close |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 EXPORT_C void RConnectionMonitor::Close() |
|
49 { |
|
50 delete iEmptyHbufC; |
|
51 iEmptyHbufC = NULL; |
|
52 delete iMusAvaTimer; |
|
53 iMusAvaTimer = NULL; |
|
54 iPtrArray.Close(); |
|
55 } |
|
56 |
|
57 // ----------------------------------------------------------------------------- |
|
58 // RConnectionMonitor::GetConnectionCount |
|
59 // ----------------------------------------------------------------------------- |
|
60 // |
|
61 EXPORT_C void RConnectionMonitor::GetConnectionCount( TUint& aConnectionCount, |
|
62 TRequestStatus& aStatus ) |
|
63 { |
|
64 aConnectionCount = iConnectionCounter; |
|
65 aStatus = KErrNone; |
|
66 } |
|
67 |
|
68 // ----------------------------------------------------------------------------- |
|
69 // RConnectionMonitor::GetConnectionInfo |
|
70 // ----------------------------------------------------------------------------- |
|
71 // |
|
72 EXPORT_C TInt RConnectionMonitor::GetConnectionInfo( const TUint aIndex, |
|
73 TUint& aConnectionId, |
|
74 TUint& iConnectionCounterer ) const |
|
75 { |
|
76 aConnectionId = iConnectionId; |
|
77 iConnectionCounterer = iSubConnectionCount; |
|
78 return iConnectionInfoError; |
|
79 } |
|
80 |
|
81 // ----------------------------------------------------------------------------- |
|
82 // RConnectionMonitor::GetSubConnectionInfo |
|
83 // ----------------------------------------------------------------------------- |
|
84 // |
|
85 EXPORT_C TInt RConnectionMonitor::GetSubConnectionInfo( const TUint aConnectionId, |
|
86 const TUint aIndex, |
|
87 TUint& aSubConnectionId ) const |
|
88 { |
|
89 return KErrNone; |
|
90 } |
|
91 |
|
92 // ----------------------------------------------------------------------------- |
|
93 // RConnectionMonitor::GetIntAttribute |
|
94 // ----------------------------------------------------------------------------- |
|
95 // |
|
96 EXPORT_C void RConnectionMonitor::GetIntAttribute( const TUint aConnectionId, |
|
97 const TUint aSubConnectionId, |
|
98 const TUint aAttribute, |
|
99 TInt& aValue, |
|
100 TRequestStatus& aStatus ) |
|
101 { |
|
102 CSipSseTestTls* tls = CSipSseTestTls::Storage(); |
|
103 if ( tls ) |
|
104 { |
|
105 tls->GetIntAttribute( aConnectionId, |
|
106 aSubConnectionId, |
|
107 aAttribute, |
|
108 aValue, |
|
109 aStatus ); |
|
110 //iMusAvaTimer->StopActiveSchedulerAfter( 10, &aStatus); |
|
111 } |
|
112 } |
|
113 |
|
114 // ----------------------------------------------------------------------------- |
|
115 // RConnectionMonitor::GetUintAttribute |
|
116 // ----------------------------------------------------------------------------- |
|
117 // |
|
118 EXPORT_C void RConnectionMonitor::GetUintAttribute( const TUint aConnectionId, |
|
119 const TUint aSubConnectionId, |
|
120 const TUint aAttribute, |
|
121 TUint& aValue, |
|
122 TRequestStatus& aStatus ) |
|
123 { |
|
124 aValue = iUintAttributeValue; |
|
125 aStatus = iStatus; |
|
126 } |
|
127 |
|
128 // ----------------------------------------------------------------------------- |
|
129 // RConnectionMonitor::GetBoolAttribute |
|
130 // ----------------------------------------------------------------------------- |
|
131 // |
|
132 EXPORT_C void RConnectionMonitor::GetBoolAttribute( const TUint aConnectionId, |
|
133 const TUint aSubConnectionId, |
|
134 const TUint aAttribute, |
|
135 TBool& aValue, |
|
136 TRequestStatus& aStatus ) |
|
137 { |
|
138 ; |
|
139 } |
|
140 |
|
141 // ----------------------------------------------------------------------------- |
|
142 // RConnectionMonitor::GetStringAttribute |
|
143 // ----------------------------------------------------------------------------- |
|
144 // |
|
145 EXPORT_C void RConnectionMonitor::GetStringAttribute( const TUint aConnectionId, |
|
146 const TUint aSubConnectionId, |
|
147 const TUint aAttribute, |
|
148 TDes& aValue, |
|
149 TRequestStatus& aStatus ) const |
|
150 { |
|
151 |
|
152 } |
|
153 |
|
154 // ----------------------------------------------------------------------------- |
|
155 // RConnectionMonitor::GetPckgAttribute |
|
156 // ----------------------------------------------------------------------------- |
|
157 // |
|
158 EXPORT_C void RConnectionMonitor::GetPckgAttribute( const TUint aConnectionId, |
|
159 const TUint aSubConnectionId, |
|
160 const TUint aAttribute, |
|
161 TDes8& aValue, |
|
162 TRequestStatus& aStatus ) const |
|
163 { |
|
164 |
|
165 } |
|
166 |
|
167 // ----------------------------------------------------------------------------- |
|
168 // RConnectionMonitor::GetPckgAttribute |
|
169 // ----------------------------------------------------------------------------- |
|
170 // |
|
171 EXPORT_C void RConnectionMonitor::GetPckgAttribute( const TUint aConnectionId, |
|
172 const TUint aSubConnectionId, |
|
173 const TUint aAttribute, |
|
174 TDes16& aValue, |
|
175 TRequestStatus& aStatus ) const |
|
176 { |
|
177 |
|
178 } |
|
179 |
|
180 // ----------------------------------------------------------------------------- |
|
181 // RConnectionMonitor::SetIntAttribute |
|
182 // ----------------------------------------------------------------------------- |
|
183 // |
|
184 EXPORT_C TInt RConnectionMonitor::SetIntAttribute( const TUint aConnectionId, |
|
185 const TUint aSubConnectionId, |
|
186 const TUint aAttribute, |
|
187 const TInt aValue ) const |
|
188 { |
|
189 return KErrNone; |
|
190 } |
|
191 |
|
192 // ----------------------------------------------------------------------------- |
|
193 // RConnectionMonitor::SetUintAttribute |
|
194 // ----------------------------------------------------------------------------- |
|
195 // |
|
196 EXPORT_C TInt RConnectionMonitor::SetUintAttribute( const TUint aConnectionId, |
|
197 const TUint aSubConnectionId, |
|
198 const TUint aAttribute, |
|
199 const TUint aValue ) const |
|
200 { |
|
201 return KErrNone; |
|
202 } |
|
203 |
|
204 // ----------------------------------------------------------------------------- |
|
205 // RConnectionMonitor::SetBoolAttribute |
|
206 // ----------------------------------------------------------------------------- |
|
207 // |
|
208 EXPORT_C TInt RConnectionMonitor::SetBoolAttribute( const TUint aConnectionId, |
|
209 const TUint aSubConnectionId, |
|
210 const TUint aAttribute, |
|
211 const TBool aValue ) const |
|
212 { |
|
213 return KErrNone; |
|
214 } |
|
215 |
|
216 // ----------------------------------------------------------------------------- |
|
217 // RConnectionMonitor::SetStringAttribute |
|
218 // ----------------------------------------------------------------------------- |
|
219 // |
|
220 EXPORT_C TInt RConnectionMonitor::SetStringAttribute( const TUint aConnectionId, |
|
221 const TUint aSubConnectionId, |
|
222 const TUint aAttribute, |
|
223 const TDes& aValue ) const |
|
224 { |
|
225 return KErrNone; |
|
226 } |
|
227 |
|
228 // ----------------------------------------------------------------------------- |
|
229 // RConnectionMonitor::SetPckgAttribute |
|
230 // ----------------------------------------------------------------------------- |
|
231 // |
|
232 EXPORT_C TInt RConnectionMonitor::SetPckgAttribute( const TUint aConnectionId, |
|
233 const TUint aSubConnectionId, |
|
234 const TUint aAttribute, |
|
235 const TDes8& aValue ) const |
|
236 { |
|
237 return KErrNone; |
|
238 } |
|
239 |
|
240 // ----------------------------------------------------------------------------- |
|
241 // RConnectionMonitor::CancelAsyncRequest |
|
242 // ----------------------------------------------------------------------------- |
|
243 // |
|
244 EXPORT_C void RConnectionMonitor::CancelAsyncRequest( TInt aReqToCancel ) |
|
245 { |
|
246 |
|
247 } |
|
248 |
|
249 // ----------------------------------------------------------------------------- |
|
250 // RConnectionMonitor::NotifyEventL |
|
251 // ----------------------------------------------------------------------------- |
|
252 // |
|
253 EXPORT_C TInt RConnectionMonitor::NotifyEventL( MConnectionMonitorObserver& aObserver ) |
|
254 { |
|
255 return KErrNone; |
|
256 } |
|
257 |
|
258 // ----------------------------------------------------------------------------- |
|
259 // RConnectionMonitor::CancelNotifications |
|
260 // ----------------------------------------------------------------------------- |
|
261 // |
|
262 EXPORT_C void RConnectionMonitor::CancelNotifications() |
|
263 { |
|
264 |
|
265 } |
|
266 |
|
267 |
|
268 // private methods in conjunction with CConnMonEventHandler |
|
269 |
|
270 // ----------------------------------------------------------------------------- |
|
271 // RConnectionMonitor::ReceiveEvent |
|
272 // ----------------------------------------------------------------------------- |
|
273 // |
|
274 void RConnectionMonitor::ReceiveEvent( TDes8& aBuffer, |
|
275 TDes8& aExtraBuf, |
|
276 TRequestStatus& aStatus ) |
|
277 { |
|
278 |
|
279 } |
|
280 |
|
281 // ----------------------------------------------------------------------------- |
|
282 // RConnectionMonitor::CancelReceiveEvent |
|
283 // ----------------------------------------------------------------------------- |
|
284 // |
|
285 void RConnectionMonitor::CancelReceiveEvent() |
|
286 { |
|
287 |
|
288 } |
|
289 |
|
290 // private internal methods |
|
291 |
|
292 // ----------------------------------------------------------------------------- |
|
293 // RConnectionMonitor::IsConnected |
|
294 // ----------------------------------------------------------------------------- |
|
295 // |
|
296 TBool RConnectionMonitor::IsConnected() const |
|
297 { |
|
298 return ETrue; |
|
299 } |
|
300 |
|
301 // ----------------------------------------------------------------------------- |
|
302 // RConnectionMonitor::NextPtr |
|
303 // ----------------------------------------------------------------------------- |
|
304 // |
|
305 TPtr8& RConnectionMonitor::NextPtr() |
|
306 { |
|
307 iEmptyHbufC = HBufC8::NewL( 0 ); |
|
308 TPtr8 ptr = iEmptyHbufC->Des(); |
|
309 iPtrArray.Append( ptr ); |
|
310 return iPtrArray[0]; |
|
311 |
|
312 } |
|
313 |
|
314 // ============================ MEMBER FUNCTIONS =============================== |
|
315 |
|
316 // ----------------------------------------------------------------------------- |
|
317 // CConnMonEventBase::CConnMonEventBase |
|
318 // ----------------------------------------------------------------------------- |
|
319 // |
|
320 CConnMonEventBase::CConnMonEventBase( const TInt aEventType, const TUint aConnectionId ) |
|
321 { |
|
322 iEventType = aEventType ; |
|
323 iConnectionId = aConnectionId ; |
|
324 } |
|
325 |
|
326 // Destructor |
|
327 CConnMonEventBase::~CConnMonEventBase() |
|
328 { |
|
329 } |
|
330 |
|
331 // ----------------------------------------------------------------------------- |
|
332 // CConnMonEventBase::EventType |
|
333 // ----------------------------------------------------------------------------- |
|
334 // |
|
335 EXPORT_C TInt CConnMonEventBase::EventType() const |
|
336 { |
|
337 return iEventType; |
|
338 } |
|
339 |
|
340 // ----------------------------------------------------------------------------- |
|
341 // CConnMonEventBase::ConnectionId |
|
342 // ----------------------------------------------------------------------------- |
|
343 // |
|
344 EXPORT_C TUint CConnMonEventBase::ConnectionId() const |
|
345 { |
|
346 return iConnectionId; |
|
347 } |
|
348 |
|
349 // ============================ MEMBER FUNCTIONS =============================== |
|
350 |
|
351 // ----------------------------------------------------------------------------- |
|
352 // CConnMonCreateConnection::CConnMonCreateConnection |
|
353 // ----------------------------------------------------------------------------- |
|
354 // |
|
355 CConnMonCreateConnection::CConnMonCreateConnection( const TUint aConnectionId ) |
|
356 :CConnMonEventBase( EConnMonCreateConnection, aConnectionId ) |
|
357 { |
|
358 } |
|
359 |
|
360 // Destructor |
|
361 CConnMonCreateConnection::~CConnMonCreateConnection() |
|
362 { |
|
363 |
|
364 } |
|
365 |
|
366 // ============================ MEMBER FUNCTIONS =============================== |
|
367 |
|
368 // ----------------------------------------------------------------------------- |
|
369 // CConnMonDeleteConnection::CConnMonDeleteConnection |
|
370 // ----------------------------------------------------------------------------- |
|
371 // |
|
372 CConnMonDeleteConnection::CConnMonDeleteConnection( const TUint aConnectionId, |
|
373 const TUint aDownlinkData, |
|
374 const TUint aUplinkData, |
|
375 const TBool aAuthDelete ) |
|
376 :CConnMonEventBase( EConnMonDeleteConnection, aConnectionId ) |
|
377 { |
|
378 iDownlinkData = aDownlinkData ; |
|
379 iUplinkData = aUplinkData ; |
|
380 iAuthDelete = aAuthDelete ; |
|
381 } |
|
382 |
|
383 // Destructor |
|
384 CConnMonDeleteConnection::~CConnMonDeleteConnection() |
|
385 { |
|
386 } |
|
387 |
|
388 // ----------------------------------------------------------------------------- |
|
389 // CConnMonDeleteConnection::DownlinkData |
|
390 // ----------------------------------------------------------------------------- |
|
391 // |
|
392 EXPORT_C TUint CConnMonDeleteConnection::DownlinkData() const |
|
393 { |
|
394 return KErrNone; |
|
395 } |
|
396 |
|
397 // ----------------------------------------------------------------------------- |
|
398 // CConnMonDeleteConnection::UplinkData |
|
399 // ----------------------------------------------------------------------------- |
|
400 // |
|
401 EXPORT_C TUint CConnMonDeleteConnection::UplinkData() const |
|
402 { |
|
403 return KErrNone; |
|
404 } |
|
405 |
|
406 // ----------------------------------------------------------------------------- |
|
407 // CConnMonDeleteConnection::AuthoritativeDelete |
|
408 // ----------------------------------------------------------------------------- |
|
409 // |
|
410 EXPORT_C TBool CConnMonDeleteConnection::AuthoritativeDelete() const |
|
411 { |
|
412 return KErrNone; |
|
413 } |
|
414 |
|
415 // ============================ MEMBER FUNCTIONS =============================== |
|
416 |
|
417 // ----------------------------------------------------------------------------- |
|
418 // CConnMonCreateSubConnection::CConnMonCreateSubConnection |
|
419 // ----------------------------------------------------------------------------- |
|
420 // |
|
421 CConnMonCreateSubConnection::CConnMonCreateSubConnection( const TUint aConnectionId, |
|
422 const TUint aSubConnectionId ) |
|
423 :CConnMonEventBase( EConnMonCreateSubConnection, aConnectionId ) |
|
424 { |
|
425 |
|
426 } |
|
427 |
|
428 // Destructor |
|
429 CConnMonCreateSubConnection::~CConnMonCreateSubConnection() |
|
430 { |
|
431 } |
|
432 |
|
433 // ----------------------------------------------------------------------------- |
|
434 // CConnMonCreateSubConnection::SubConnectionId |
|
435 // ----------------------------------------------------------------------------- |
|
436 // |
|
437 EXPORT_C TUint CConnMonCreateSubConnection::SubConnectionId() const |
|
438 { |
|
439 return KErrNone; |
|
440 } |
|
441 |
|
442 // ============================ MEMBER FUNCTIONS =============================== |
|
443 |
|
444 // ----------------------------------------------------------------------------- |
|
445 // CConnMonDeleteSubConnection::CConnMonDeleteSubConnection |
|
446 // ----------------------------------------------------------------------------- |
|
447 // |
|
448 CConnMonDeleteSubConnection::CConnMonDeleteSubConnection( const TUint aConnectionId, |
|
449 const TUint aSubConnectionId, |
|
450 const TUint aDownlinkData, |
|
451 const TUint aUplinkData, |
|
452 const TBool aAuthDelete ) |
|
453 :CConnMonEventBase( EConnMonDeleteSubConnection, aConnectionId ) |
|
454 { |
|
455 iSubConnectionId = aSubConnectionId ; |
|
456 iDownlinkData = aDownlinkData ; |
|
457 iUplinkData = aUplinkData ; |
|
458 iAuthDelete = aAuthDelete ; |
|
459 } |
|
460 |
|
461 // Destructor |
|
462 CConnMonDeleteSubConnection::~CConnMonDeleteSubConnection() |
|
463 { |
|
464 } |
|
465 |
|
466 // ----------------------------------------------------------------------------- |
|
467 // CConnMonDeleteSubConnection::SubConnectionId |
|
468 // ----------------------------------------------------------------------------- |
|
469 // |
|
470 EXPORT_C TUint CConnMonDeleteSubConnection::SubConnectionId() const |
|
471 { |
|
472 return KErrNone; |
|
473 } |
|
474 |
|
475 // ----------------------------------------------------------------------------- |
|
476 // CConnMonDeleteSubConnection::DownlinkData |
|
477 // ----------------------------------------------------------------------------- |
|
478 // |
|
479 EXPORT_C TUint CConnMonDeleteSubConnection::DownlinkData() const |
|
480 { |
|
481 return KErrNone; |
|
482 } |
|
483 |
|
484 // ----------------------------------------------------------------------------- |
|
485 // CConnMonDeleteSubConnection::UplinkData |
|
486 // ----------------------------------------------------------------------------- |
|
487 // |
|
488 EXPORT_C TUint CConnMonDeleteSubConnection::UplinkData() const |
|
489 { |
|
490 return KErrNone; |
|
491 } |
|
492 |
|
493 // ----------------------------------------------------------------------------- |
|
494 // CConnMonDeleteSubConnection::AuthoritativeDelete |
|
495 // ----------------------------------------------------------------------------- |
|
496 // |
|
497 EXPORT_C TBool CConnMonDeleteSubConnection::AuthoritativeDelete() const |
|
498 { |
|
499 return ETrue; |
|
500 } |
|
501 |
|
502 // ============================ MEMBER FUNCTIONS =============================== |
|
503 |
|
504 // ----------------------------------------------------------------------------- |
|
505 // CConnMonDownlinkDataThreshold::CConnMonDownlinkDataThreshold |
|
506 // ----------------------------------------------------------------------------- |
|
507 // |
|
508 CConnMonDownlinkDataThreshold::CConnMonDownlinkDataThreshold( const TUint aConnectionId, |
|
509 const TUint aSubConnectionId, |
|
510 const TUint aDownlinkData ) |
|
511 :CConnMonEventBase( EConnMonDownlinkDataThreshold, aConnectionId ) |
|
512 { |
|
513 iSubConnectionId = aSubConnectionId ; |
|
514 iDownlinkData = aDownlinkData ; |
|
515 } |
|
516 |
|
517 // Destructor |
|
518 CConnMonDownlinkDataThreshold::~CConnMonDownlinkDataThreshold() |
|
519 { |
|
520 } |
|
521 |
|
522 // ----------------------------------------------------------------------------- |
|
523 // CConnMonDownlinkDataThreshold::SubConnectionId |
|
524 // ----------------------------------------------------------------------------- |
|
525 // |
|
526 EXPORT_C TUint CConnMonDownlinkDataThreshold::SubConnectionId() const |
|
527 { |
|
528 return KErrNone; |
|
529 } |
|
530 |
|
531 // ----------------------------------------------------------------------------- |
|
532 // CConnMonDownlinkDataThreshold::DownlinkData |
|
533 // ----------------------------------------------------------------------------- |
|
534 // |
|
535 EXPORT_C TUint CConnMonDownlinkDataThreshold::DownlinkData() const |
|
536 { |
|
537 return KErrNone; |
|
538 } |
|
539 |
|
540 // ============================ MEMBER FUNCTIONS =============================== |
|
541 |
|
542 // ----------------------------------------------------------------------------- |
|
543 // CConnMonUplinkDataThreshold::CConnMonUplinkDataThreshold |
|
544 // ----------------------------------------------------------------------------- |
|
545 // |
|
546 CConnMonUplinkDataThreshold::CConnMonUplinkDataThreshold( const TUint aConnectionId, |
|
547 const TUint aSubConnectionId, |
|
548 const TUint aUplinkData ) |
|
549 :CConnMonEventBase( EConnMonUplinkDataThreshold, aConnectionId ) |
|
550 { |
|
551 iSubConnectionId = aSubConnectionId ; |
|
552 iUplinkData = aUplinkData ; |
|
553 } |
|
554 |
|
555 // Destructor |
|
556 CConnMonUplinkDataThreshold::~CConnMonUplinkDataThreshold() |
|
557 { |
|
558 } |
|
559 |
|
560 // ----------------------------------------------------------------------------- |
|
561 // CConnMonUplinkDataThreshold::SubConnectionId |
|
562 // ----------------------------------------------------------------------------- |
|
563 // |
|
564 EXPORT_C TUint CConnMonUplinkDataThreshold::SubConnectionId() const |
|
565 { |
|
566 return KErrNone; |
|
567 } |
|
568 |
|
569 // ----------------------------------------------------------------------------- |
|
570 // CConnMonUplinkDataThreshold::UplinkData |
|
571 // ----------------------------------------------------------------------------- |
|
572 // |
|
573 EXPORT_C TUint CConnMonUplinkDataThreshold::UplinkData() const |
|
574 { |
|
575 return KErrNone; |
|
576 } |
|
577 |
|
578 // ============================ MEMBER FUNCTIONS =============================== |
|
579 |
|
580 // ----------------------------------------------------------------------------- |
|
581 // CConnMonNetworkStatusChange::CConnMonNetworkStatusChange |
|
582 // ----------------------------------------------------------------------------- |
|
583 // |
|
584 CConnMonNetworkStatusChange::CConnMonNetworkStatusChange( const TUint aConnectionId, |
|
585 const TInt aNetworkStatus ) |
|
586 :CConnMonEventBase( EConnMonNetworkStatusChange, aConnectionId ) |
|
587 { |
|
588 iNetworkStatus = aNetworkStatus; |
|
589 } |
|
590 |
|
591 // Destructor |
|
592 CConnMonNetworkStatusChange::~CConnMonNetworkStatusChange() |
|
593 { |
|
594 } |
|
595 |
|
596 // ----------------------------------------------------------------------------- |
|
597 // CConnMonNetworkStatusChange::NetworkStatus |
|
598 // ----------------------------------------------------------------------------- |
|
599 // |
|
600 EXPORT_C TInt CConnMonNetworkStatusChange::NetworkStatus() const |
|
601 { |
|
602 return iNetworkStatus; |
|
603 } |
|
604 |
|
605 // ============================ MEMBER FUNCTIONS =============================== |
|
606 |
|
607 // ----------------------------------------------------------------------------- |
|
608 // CConnMonConnectionStatusChange::CConnMonConnectionStatusChange |
|
609 // ----------------------------------------------------------------------------- |
|
610 // |
|
611 CConnMonConnectionStatusChange::CConnMonConnectionStatusChange( const TUint aConnectionId, |
|
612 const TUint aSubConnectionId, |
|
613 const TInt aConnectionStatus ) |
|
614 :CConnMonEventBase( EConnMonConnectionStatusChange, aConnectionId ) |
|
615 { |
|
616 iSubConnectionId = aSubConnectionId; |
|
617 iConnectionStatus = aConnectionStatus; |
|
618 } |
|
619 |
|
620 // Destructor |
|
621 CConnMonConnectionStatusChange::~CConnMonConnectionStatusChange() |
|
622 { |
|
623 } |
|
624 |
|
625 // ----------------------------------------------------------------------------- |
|
626 // CConnMonConnectionStatusChange::SubConnectionId |
|
627 // ----------------------------------------------------------------------------- |
|
628 // |
|
629 EXPORT_C TUint CConnMonConnectionStatusChange::SubConnectionId() const |
|
630 { |
|
631 return KErrNone; |
|
632 } |
|
633 |
|
634 // ----------------------------------------------------------------------------- |
|
635 // CConnMonConnectionStatusChange::ConnectionStatus |
|
636 // ----------------------------------------------------------------------------- |
|
637 // |
|
638 EXPORT_C TInt CConnMonConnectionStatusChange::ConnectionStatus() const |
|
639 { |
|
640 return iConnectionStatus; |
|
641 } |
|
642 |
|
643 // ============================ MEMBER FUNCTIONS =============================== |
|
644 |
|
645 // ----------------------------------------------------------------------------- |
|
646 // CConnMonConnectionActivityChange::CConnMonConnectionActivityChange |
|
647 // ----------------------------------------------------------------------------- |
|
648 // |
|
649 CConnMonConnectionActivityChange::CConnMonConnectionActivityChange( const TUint aConnectionId, |
|
650 const TUint aSubConnectionId, |
|
651 const TBool aActivity ) |
|
652 :CConnMonEventBase( EConnMonConnectionActivityChange, aConnectionId ) |
|
653 { |
|
654 iSubConnectionId = aSubConnectionId; |
|
655 iActivity = aActivity; |
|
656 } |
|
657 |
|
658 // Destructor |
|
659 CConnMonConnectionActivityChange::~CConnMonConnectionActivityChange() |
|
660 { |
|
661 } |
|
662 |
|
663 // ----------------------------------------------------------------------------- |
|
664 // CConnMonConnectionActivityChange::SubConnectionId |
|
665 // ----------------------------------------------------------------------------- |
|
666 // |
|
667 EXPORT_C TUint CConnMonConnectionActivityChange::SubConnectionId() const |
|
668 { |
|
669 return KErrNone; |
|
670 } |
|
671 |
|
672 // ----------------------------------------------------------------------------- |
|
673 // CConnMonConnectionActivityChange::ConnectionActivity |
|
674 // ----------------------------------------------------------------------------- |
|
675 // |
|
676 EXPORT_C TBool CConnMonConnectionActivityChange::ConnectionActivity() const |
|
677 { |
|
678 return ETrue ; |
|
679 } |
|
680 |
|
681 // ============================ MEMBER FUNCTIONS =============================== |
|
682 |
|
683 // ----------------------------------------------------------------------------- |
|
684 // CConnMonNetworkRegistrationChange::CConnMonNetworkRegistrationChange |
|
685 // ----------------------------------------------------------------------------- |
|
686 // |
|
687 CConnMonNetworkRegistrationChange::CConnMonNetworkRegistrationChange |
|
688 ( const TUint aConnectionId, |
|
689 const TInt aRegistrationStatus ) |
|
690 :CConnMonEventBase( EConnMonNetworkRegistrationChange, aConnectionId ) |
|
691 { |
|
692 iRegistrationStatus = aRegistrationStatus; |
|
693 } |
|
694 |
|
695 // Destructor |
|
696 CConnMonNetworkRegistrationChange::~CConnMonNetworkRegistrationChange() |
|
697 { |
|
698 } |
|
699 |
|
700 // ----------------------------------------------------------------------------- |
|
701 // CConnMonNetworkRegistrationChange::RegistrationStatus |
|
702 // ----------------------------------------------------------------------------- |
|
703 // |
|
704 EXPORT_C TInt CConnMonNetworkRegistrationChange::RegistrationStatus() const |
|
705 { |
|
706 return iRegistrationStatus; |
|
707 } |
|
708 |
|
709 // ============================ MEMBER FUNCTIONS =============================== |
|
710 |
|
711 // ----------------------------------------------------------------------------- |
|
712 // CConnMonBearerChange::CConnMonBearerChange |
|
713 // ----------------------------------------------------------------------------- |
|
714 // |
|
715 CConnMonBearerChange::CConnMonBearerChange( const TUint aConnectionId, const TInt aBearer ) |
|
716 :CConnMonEventBase( EConnMonBearerChange, aConnectionId ) |
|
717 { |
|
718 iBearer = aBearer; |
|
719 } |
|
720 |
|
721 // Destructor |
|
722 CConnMonBearerChange::~CConnMonBearerChange() |
|
723 { |
|
724 } |
|
725 |
|
726 // ----------------------------------------------------------------------------- |
|
727 // CConnMonBearerChange::RegistrationStatus |
|
728 // ----------------------------------------------------------------------------- |
|
729 // |
|
730 EXPORT_C TInt CConnMonBearerChange::Bearer() const |
|
731 { |
|
732 return iBearer; |
|
733 } |
|
734 |
|
735 // ============================ MEMBER FUNCTIONS =============================== |
|
736 |
|
737 // ----------------------------------------------------------------------------- |
|
738 // CConnMonSignalStrengthChange::CConnMonSignalStrengthChange |
|
739 // ----------------------------------------------------------------------------- |
|
740 // |
|
741 CConnMonSignalStrengthChange::CConnMonSignalStrengthChange( const TUint aConnectionId, |
|
742 const TInt aSignalStrength ) |
|
743 :CConnMonEventBase( EConnMonSignalStrengthChange, aConnectionId ) |
|
744 { |
|
745 iSignalStrength = aSignalStrength; |
|
746 } |
|
747 |
|
748 // Destructor |
|
749 CConnMonSignalStrengthChange::~CConnMonSignalStrengthChange() |
|
750 { |
|
751 } |
|
752 |
|
753 // ----------------------------------------------------------------------------- |
|
754 // CConnMonSignalStrengthChange::SignalStrength |
|
755 // ----------------------------------------------------------------------------- |
|
756 // |
|
757 EXPORT_C TInt CConnMonSignalStrengthChange::SignalStrength() const |
|
758 { |
|
759 return KErrNone; |
|
760 } |
|
761 |
|
762 // ============================ MEMBER FUNCTIONS =============================== |
|
763 |
|
764 // ----------------------------------------------------------------------------- |
|
765 // CConnMonBearerAvailabilityChange::CConnMonBearerAvailabilityChange |
|
766 // ----------------------------------------------------------------------------- |
|
767 // |
|
768 CConnMonBearerAvailabilityChange::CConnMonBearerAvailabilityChange( const TUint aConnectionId, |
|
769 const TBool aAvailability ) |
|
770 :CConnMonEventBase( EConnMonBearerAvailabilityChange, aConnectionId ) |
|
771 { |
|
772 iAvailability = aAvailability; |
|
773 } |
|
774 |
|
775 // Destructor |
|
776 CConnMonBearerAvailabilityChange::~CConnMonBearerAvailabilityChange() |
|
777 { |
|
778 } |
|
779 |
|
780 // ----------------------------------------------------------------------------- |
|
781 // CConnMonBearerAvailabilityChange::Availability |
|
782 // ----------------------------------------------------------------------------- |
|
783 // |
|
784 EXPORT_C TBool CConnMonBearerAvailabilityChange::Availability() const |
|
785 { |
|
786 return iAvailability; |
|
787 } |
|
788 |
|
789 // ============================ MEMBER FUNCTIONS =============================== |
|
790 |
|
791 // ----------------------------------------------------------------------------- |
|
792 // CConnMonGenericEvent::CConnMonGenericEvent |
|
793 // ----------------------------------------------------------------------------- |
|
794 // |
|
795 CConnMonGenericEvent::CConnMonGenericEvent( const TUint aType, |
|
796 const TUint aConnectionId, |
|
797 TAny* aData ) |
|
798 :CConnMonEventBase( aType, aConnectionId ) |
|
799 { |
|
800 iData = aData; |
|
801 } |
|
802 |
|
803 // Destructor |
|
804 CConnMonGenericEvent::~CConnMonGenericEvent() |
|
805 { |
|
806 iData = 0; |
|
807 } |
|
808 |
|
809 // ----------------------------------------------------------------------------- |
|
810 // CConnMonGenericEvent::Data |
|
811 // ----------------------------------------------------------------------------- |
|
812 // |
|
813 EXPORT_C TAny* CConnMonGenericEvent::Data() const |
|
814 { |
|
815 return iData; |
|
816 } |
|
817 |
|
818 // ============================ MEMBER FUNCTIONS =============================== |
|
819 |
|
820 // ----------------------------------------------------------------------------- |
|
821 // CConnMonIapAvailabilityChange::CConnMonIapAvailabilityChange |
|
822 // ----------------------------------------------------------------------------- |
|
823 // |
|
824 CConnMonIapAvailabilityChange::CConnMonIapAvailabilityChange( const TUint aConnectionId, |
|
825 const TConnMonIapInfo* aIapInfoPtr ) |
|
826 :CConnMonEventBase( EConnMonIapAvailabilityChange, aConnectionId ) |
|
827 { |
|
828 iIapInfo.iCount = 0; |
|
829 |
|
830 if ( aIapInfoPtr != NULL ) |
|
831 { |
|
832 iIapInfo = *aIapInfoPtr; |
|
833 } |
|
834 } |
|
835 |
|
836 // Destructor |
|
837 CConnMonIapAvailabilityChange::~CConnMonIapAvailabilityChange() |
|
838 { |
|
839 } |
|
840 |
|
841 // ----------------------------------------------------------------------------- |
|
842 // CConnMonIapAvailabilityChange::IapAvailability |
|
843 // ----------------------------------------------------------------------------- |
|
844 // |
|
845 EXPORT_C TConnMonIapInfo CConnMonIapAvailabilityChange::IapAvailability() const |
|
846 { |
|
847 return iIapInfo; |
|
848 } |
|
849 |
|
850 // ============================ MEMBER FUNCTIONS =============================== |
|
851 |
|
852 // ----------------------------------------------------------------------------- |
|
853 // CConnMonTransmitPowerChange::CConnMonTransmitPowerChange |
|
854 // ----------------------------------------------------------------------------- |
|
855 // |
|
856 CConnMonTransmitPowerChange::CConnMonTransmitPowerChange( const TUint aConnectionId, |
|
857 const TUint aTransmitPower ) |
|
858 :CConnMonEventBase( EConnMonTransmitPowerChange, aConnectionId ) |
|
859 { |
|
860 iTransmitPower = aTransmitPower; |
|
861 } |
|
862 |
|
863 // Destructor |
|
864 CConnMonTransmitPowerChange::~CConnMonTransmitPowerChange() |
|
865 { |
|
866 } |
|
867 |
|
868 // ----------------------------------------------------------------------------- |
|
869 // CConnMonTransmitPowerChange::TransmitPower |
|
870 // ----------------------------------------------------------------------------- |
|
871 // |
|
872 EXPORT_C TUint CConnMonTransmitPowerChange::TransmitPower() const |
|
873 { |
|
874 return iTransmitPower; |
|
875 } |
|
876 |
|
877 // End-of-file |
|