1 /* |
1 /* |
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
28 |
29 |
29 _LIT( KComponentLogfile, "upnpavcontrollerclient.txt"); |
30 _LIT( KComponentLogfile, "upnpavcontrollerclient.txt"); |
30 #include "upnplog.h" |
31 #include "upnplog.h" |
31 |
32 |
32 const TInt KPositionInfoSize = 15; |
33 const TInt KPositionInfoSize = 15; |
|
34 static const TInt KSeekTargetMaxLength = 8; // "00:00:20" -> 8 |
33 |
35 |
34 // ======== MEMBER FUNCTIONS ======== |
36 // ======== MEMBER FUNCTIONS ======== |
35 |
37 |
36 // -------------------------------------------------------------------------- |
38 // -------------------------------------------------------------------------- |
37 // CUPnPAVRenderingActive::NewL |
39 // CUPnPAVRenderingActive::NewL |
68 // CUPnPAVRenderingActive::~CUPnPAVRenderingActive |
70 // CUPnPAVRenderingActive::~CUPnPAVRenderingActive |
69 // See upnpavrenderingactive.h |
71 // See upnpavrenderingactive.h |
70 // -------------------------------------------------------------------------- |
72 // -------------------------------------------------------------------------- |
71 CUPnPAVRenderingActive::~CUPnPAVRenderingActive() |
73 CUPnPAVRenderingActive::~CUPnPAVRenderingActive() |
72 { |
74 { |
73 __LOG( "CUPnPAVRenderingActive::~CUPnPAVRenderingActive" ); |
75 __LOG1( "CUPnPAVRenderingActive::~CUPnPAVRenderingActive %d", this ); |
74 |
76 |
75 Cancel(); |
77 Cancel(); |
76 |
78 |
77 delete iBuffer; |
79 delete iBuffer; |
78 delete iBuffer2; |
80 delete iBuffer2; |
79 |
|
80 if( iMediaServerResourceReserved ) |
|
81 { |
|
82 iServer.ReleaseMediaServer( iId ); |
|
83 } |
|
84 } |
81 } |
85 |
82 |
86 // -------------------------------------------------------------------------- |
83 // -------------------------------------------------------------------------- |
87 // CUPnPAVRenderingActive::ConstructL |
84 // CUPnPAVRenderingActive::ConstructL |
88 // See upnpavrenderingactive.h |
85 // See upnpavrenderingactive.h |
89 // -------------------------------------------------------------------------- |
86 // -------------------------------------------------------------------------- |
90 void CUPnPAVRenderingActive::ConstructL() |
87 void CUPnPAVRenderingActive::ConstructL() |
91 { |
88 { |
92 __LOG( "CUPnPAVRenderingActive::ConstructL" ); |
89 __LOG1( "CUPnPAVRenderingActive::ConstructL %d", this ); |
93 } |
90 } |
94 |
91 |
95 // -------------------------------------------------------------------------- |
92 // -------------------------------------------------------------------------- |
96 // CUPnPAVRenderingActive::RunL |
93 // CUPnPAVRenderingActive::RunL |
97 // See upnpavrenderingactive.h |
94 // See upnpavrenderingactive.h |
98 // -------------------------------------------------------------------------- |
95 // -------------------------------------------------------------------------- |
99 void CUPnPAVRenderingActive::RunL() |
96 void CUPnPAVRenderingActive::RunL() |
100 { |
97 { |
101 __LOG( "CUPnPAVRenderingActive::RunL" ); |
98 __LOG1( "CUPnPAVRenderingActive::RunL %d", this ); |
102 |
99 |
103 switch( iPendingOperation ) |
100 switch( iPendingOperation ) |
104 { |
101 { |
105 case ESetURI: |
102 case ESetURI: |
106 { |
103 { |
160 { |
157 { |
161 PositionInfoCompleteL(); |
158 PositionInfoCompleteL(); |
162 } |
159 } |
163 break; |
160 break; |
164 |
161 |
165 case EStartMediaServer: |
162 case ESeekRelTime: |
166 { |
163 { |
167 StartMediaServerCompleteL(); |
164 SeekRelTimeComplete(); |
168 } |
165 } |
169 break; |
166 break; |
170 |
167 |
171 default: |
168 default: |
|
169 { |
172 __PANICD( __FILE__, __LINE__ ); |
170 __PANICD( __FILE__, __LINE__ ); |
|
171 } |
173 break; |
172 break; |
174 } |
173 } |
175 } |
174 } |
176 |
175 |
177 // -------------------------------------------------------------------------- |
176 // -------------------------------------------------------------------------- |
178 // CUPnPAVRenderingActive::DoCancel |
177 // CUPnPAVRenderingActive::DoCancel |
179 // See upnpavrenderingactive.h |
178 // See upnpavrenderingactive.h |
180 // -------------------------------------------------------------------------- |
179 // -------------------------------------------------------------------------- |
181 void CUPnPAVRenderingActive::DoCancel() |
180 void CUPnPAVRenderingActive::DoCancel() |
182 { |
181 { |
183 __LOG( "CUPnPAVRenderingActive::DoCancel" ); |
182 __LOG1( "CUPnPAVRenderingActive::DoCancel %d", this ); |
184 |
183 |
185 switch( iPendingOperation ) |
184 switch( iPendingOperation ) |
186 { |
185 { |
187 case ESetURI: |
186 case ESetURI: |
188 { |
187 { |
298 { |
299 { |
299 iObserver = NULL; |
300 iObserver = NULL; |
300 } |
301 } |
301 |
302 |
302 // -------------------------------------------------------------------------- |
303 // -------------------------------------------------------------------------- |
303 // CUPnPAVRenderingActive::ReserveLocalMSServicesL |
|
304 // See upnpavrenderingactive.h |
|
305 // -------------------------------------------------------------------------- |
|
306 void CUPnPAVRenderingActive::ReserveLocalMSServicesL() |
|
307 { |
|
308 __LOG( "CUPnPAVRenderingActive::ReserveLocalMSServicesL" ); |
|
309 |
|
310 ResetL(); |
|
311 |
|
312 if( iMediaServerResourceReserved ) |
|
313 { |
|
314 if( iObserver ) |
|
315 { |
|
316 iObserver->ReserveLocalMSServicesCompleted( KErrNone ); |
|
317 } |
|
318 } |
|
319 else |
|
320 { |
|
321 iPendingOperation = EStartMediaServer; |
|
322 iServer.ReserveMediaServer( iId, iStatus ); |
|
323 SetActive(); |
|
324 |
|
325 } |
|
326 } |
|
327 |
|
328 // -------------------------------------------------------------------------- |
|
329 // CUPnPAVRenderingActive::CancelReserveLocalMSServicesL |
|
330 // See upnpavrenderingactive.h |
|
331 // -------------------------------------------------------------------------- |
|
332 void CUPnPAVRenderingActive::CancelReserveLocalMSServicesL() |
|
333 { |
|
334 __LOG( "CUPnPAVRenderingActive::CancelReserveLocalMSServicesL" ); |
|
335 |
|
336 if( iPendingOperation == EStartMediaServer ) |
|
337 { |
|
338 Cancel(); |
|
339 } |
|
340 } |
|
341 |
|
342 // -------------------------------------------------------------------------- |
|
343 // CUPnPAVRenderingActive::ReleaseLocalMSServicesL |
|
344 // See upnpavrenderingactive.h |
|
345 // -------------------------------------------------------------------------- |
|
346 void CUPnPAVRenderingActive::ReleaseLocalMSServicesL() |
|
347 { |
|
348 __LOG( "CUPnPAVRenderingActive::ReleaseLocalMSServicesL" ); |
|
349 |
|
350 ResetL(); |
|
351 |
|
352 if( iMediaServerResourceReserved ) |
|
353 { |
|
354 iMediaServerResourceReserved = EFalse; |
|
355 |
|
356 User::LeaveIfError( iServer.ReleaseMediaServer( iId ) ); |
|
357 } |
|
358 } |
|
359 |
|
360 // -------------------------------------------------------------------------- |
|
361 // CUPnPAVRenderingActive::SetURIL |
304 // CUPnPAVRenderingActive::SetURIL |
362 // See upnpavrenderingactive.h |
305 // See upnpavrenderingactive.h |
363 // -------------------------------------------------------------------------- |
306 // -------------------------------------------------------------------------- |
364 void CUPnPAVRenderingActive::SetURIL( const TDesC8& aURI, |
307 void CUPnPAVRenderingActive::SetURIL( const TDesC8& aURI, |
365 const CUpnpItem& aItem ) |
308 const CUpnpItem& aItem ) |
366 { |
309 { |
367 __LOG( "CUPnPAVRenderingActive::SetURIL" ); |
310 __LOG1( "CUPnPAVRenderingActive::SetURIL %d", this ); |
368 |
311 |
369 ResetL(); |
312 ResetL(); |
370 |
313 |
371 CUpnpAVRequest* tempRequest = CUpnpAVRequest::NewLC(); |
314 CUpnpAVRequest* tempRequest = CUpnpAVRequest::NewLC(); |
372 tempRequest->SetURIL( aURI ); |
315 tempRequest->SetURIL( aURI ); |
390 // See upnpavrenderingactive.h |
333 // See upnpavrenderingactive.h |
391 // -------------------------------------------------------------------------- |
334 // -------------------------------------------------------------------------- |
392 void CUPnPAVRenderingActive::SetNextURIL( const TDesC8& aURI, |
335 void CUPnPAVRenderingActive::SetNextURIL( const TDesC8& aURI, |
393 const CUpnpItem& aItem ) |
336 const CUpnpItem& aItem ) |
394 { |
337 { |
395 __LOG( "CUPnPAVRenderingActive::SetNextURIL" ); |
338 __LOG1( "CUPnPAVRenderingActive::SetNextURIL %d", this ); |
396 |
339 |
397 ResetL(); |
340 ResetL(); |
398 |
341 |
399 CUpnpAVRequest* tempRequest = CUpnpAVRequest::NewLC(); |
342 CUpnpAVRequest* tempRequest = CUpnpAVRequest::NewLC(); |
400 tempRequest->SetURIL( aURI ); |
343 tempRequest->SetURIL( aURI ); |
418 // CUPnPAVRenderingActive::PlayL |
361 // CUPnPAVRenderingActive::PlayL |
419 // See upnpavrenderingactive.h |
362 // See upnpavrenderingactive.h |
420 // -------------------------------------------------------------------------- |
363 // -------------------------------------------------------------------------- |
421 void CUPnPAVRenderingActive::PlayL() |
364 void CUPnPAVRenderingActive::PlayL() |
422 { |
365 { |
423 __LOG( "CUPnPAVRenderingActive::PlayL" ); |
366 __LOG1( "CUPnPAVRenderingActive::PlayL %d", this ); |
424 |
367 |
425 ResetL(); |
368 ResetL(); |
426 iPendingOperation = EPlay; |
369 iPendingOperation = EPlay; |
427 iServer.Play( iId, iStatus ); |
370 iServer.Play( iId, iStatus ); |
428 SetActive(); |
371 SetActive(); |
432 // CUPnPAVRenderingActive::StopL |
375 // CUPnPAVRenderingActive::StopL |
433 // See upnpavrenderingactive.h |
376 // See upnpavrenderingactive.h |
434 // -------------------------------------------------------------------------- |
377 // -------------------------------------------------------------------------- |
435 void CUPnPAVRenderingActive::StopL() |
378 void CUPnPAVRenderingActive::StopL() |
436 { |
379 { |
437 __LOG( "CUPnPAVRenderingActive::StopL" ); |
380 __LOG1( "CUPnPAVRenderingActive::StopL %d", this ); |
438 |
381 |
439 ResetL(); |
382 ResetL(); |
440 iPendingOperation = EStop; |
383 iPendingOperation = EStop; |
441 iServer.Stop( iId, iStatus ); |
384 iServer.Stop( iId, iStatus ); |
442 SetActive(); |
385 SetActive(); |
446 // CUPnPAVRenderingActive::PauseL |
389 // CUPnPAVRenderingActive::PauseL |
447 // See upnpavrenderingactive.h |
390 // See upnpavrenderingactive.h |
448 // -------------------------------------------------------------------------- |
391 // -------------------------------------------------------------------------- |
449 void CUPnPAVRenderingActive::PauseL() |
392 void CUPnPAVRenderingActive::PauseL() |
450 { |
393 { |
451 __LOG( "CUPnPAVRenderingActive::PauseL" ); |
394 __LOG1( "CUPnPAVRenderingActive::PauseL %d", this ); |
452 |
395 |
453 ResetL(); |
396 ResetL(); |
454 iPendingOperation = EPause; |
397 iPendingOperation = EPause; |
455 iServer.Pause( iId, iStatus ); |
398 iServer.Pause( iId, iStatus ); |
456 SetActive(); |
399 SetActive(); |
460 // CUPnPAVRenderingActive::SetVolumeL |
403 // CUPnPAVRenderingActive::SetVolumeL |
461 // See upnpavrenderingactive.h |
404 // See upnpavrenderingactive.h |
462 // -------------------------------------------------------------------------- |
405 // -------------------------------------------------------------------------- |
463 void CUPnPAVRenderingActive::SetVolumeL( TInt aVolumeLevel ) |
406 void CUPnPAVRenderingActive::SetVolumeL( TInt aVolumeLevel ) |
464 { |
407 { |
465 __LOG( "CUPnPAVRenderingActive::SetVolumeL" ); |
408 __LOG1( "CUPnPAVRenderingActive::SetVolumeL %d", this ); |
466 |
409 |
467 ResetL(); |
410 ResetL(); |
468 iPendingOperation = ESetVolume; |
411 iPendingOperation = ESetVolume; |
469 iServer.SetVolume( iId, aVolumeLevel, iRespBufSizePkg, iStatus ); |
412 iServer.SetVolume( iId, aVolumeLevel, iRespBufSizePkg, iStatus ); |
470 SetActive(); |
413 SetActive(); |
474 // CUPnPAVRenderingActive::GetVolumeL |
417 // CUPnPAVRenderingActive::GetVolumeL |
475 // See upnpavrenderingactive.h |
418 // See upnpavrenderingactive.h |
476 // -------------------------------------------------------------------------- |
419 // -------------------------------------------------------------------------- |
477 void CUPnPAVRenderingActive::GetVolumeL() |
420 void CUPnPAVRenderingActive::GetVolumeL() |
478 { |
421 { |
479 __LOG( "CUPnPAVRenderingActive::GetVolumeL" ); |
422 __LOG1( "CUPnPAVRenderingActive::GetVolumeL %d", this ); |
480 |
423 |
481 ResetL(); |
424 ResetL(); |
482 iPendingOperation = EGetVolume; |
425 iPendingOperation = EGetVolume; |
483 iServer.GetVolume( iId, iRespBufSizePkg, iStatus ); |
426 iServer.GetVolume( iId, iRespBufSizePkg, iStatus ); |
484 SetActive(); |
427 SetActive(); |
488 // CUPnPAVRenderingActive::SetMuteL |
431 // CUPnPAVRenderingActive::SetMuteL |
489 // See upnpavrenderingactive.h |
432 // See upnpavrenderingactive.h |
490 // -------------------------------------------------------------------------- |
433 // -------------------------------------------------------------------------- |
491 void CUPnPAVRenderingActive::SetMuteL( TBool aMute ) |
434 void CUPnPAVRenderingActive::SetMuteL( TBool aMute ) |
492 { |
435 { |
493 __LOG( "CUPnPAVRenderingActive::SetMuteL" ); |
436 __LOG1( "CUPnPAVRenderingActive::SetMuteL %d", this ); |
494 |
437 |
495 ResetL(); |
438 ResetL(); |
496 iPendingOperation = ESetMute; |
439 iPendingOperation = ESetMute; |
497 iServer.SetMute( iId, aMute, iRespBufSizePkg, iStatus ); |
440 iServer.SetMute( iId, aMute, iRespBufSizePkg, iStatus ); |
498 SetActive(); |
441 SetActive(); |
502 // CUPnPAVRenderingActive::NewL |
445 // CUPnPAVRenderingActive::NewL |
503 // See upnpavrenderingactive.h |
446 // See upnpavrenderingactive.h |
504 // -------------------------------------------------------------------------- |
447 // -------------------------------------------------------------------------- |
505 void CUPnPAVRenderingActive::GetMuteL() |
448 void CUPnPAVRenderingActive::GetMuteL() |
506 { |
449 { |
507 __LOG( "CUPnPAVRenderingActive::GetMuteL" ); |
450 __LOG1( "CUPnPAVRenderingActive::GetMuteL %d", this ); |
508 |
451 |
509 ResetL(); |
452 ResetL(); |
510 iPendingOperation = EGetMute; |
453 iPendingOperation = EGetMute; |
511 iServer.GetMute( iId, iRespBufSizePkg, iStatus ); |
454 iServer.GetMute( iId, iRespBufSizePkg, iStatus ); |
512 SetActive(); |
455 SetActive(); |
516 // CUPnPAVRenderingActive::GetPositionInfoL |
459 // CUPnPAVRenderingActive::GetPositionInfoL |
517 // See upnpavrenderingactive.h |
460 // See upnpavrenderingactive.h |
518 // -------------------------------------------------------------------------- |
461 // -------------------------------------------------------------------------- |
519 void CUPnPAVRenderingActive::GetPositionInfoL() |
462 void CUPnPAVRenderingActive::GetPositionInfoL() |
520 { |
463 { |
521 __LOG( "CUPnPAVRenderingActive::GetPositionInfoL" ); |
464 __LOG1( "CUPnPAVRenderingActive::GetPositionInfoL %d", this ); |
522 |
465 |
523 ResetL(); |
466 ResetL(); |
524 |
467 |
525 iBuffer = HBufC8::NewL( KPositionInfoSize ); |
468 iBuffer = HBufC8::NewL( KPositionInfoSize ); |
526 iBufferPtr.Set( iBuffer->Des() ); |
469 iBufferPtr.Set( iBuffer->Des() ); |
530 iServer.GetPositionInfo( iId, iBufferPtr, iBufferPtr2, iStatus ); |
473 iServer.GetPositionInfo( iId, iBufferPtr, iBufferPtr2, iStatus ); |
531 SetActive(); |
474 SetActive(); |
532 } |
475 } |
533 |
476 |
534 // -------------------------------------------------------------------------- |
477 // -------------------------------------------------------------------------- |
|
478 // CUPnPAVRenderingActive::SeekRelTimeL |
|
479 // See upnpavrenderingactive.h |
|
480 // -------------------------------------------------------------------------- |
|
481 void CUPnPAVRenderingActive::SeekRelTimeL( const TTime& aDesiredTime ) |
|
482 { |
|
483 __LOG1( "CUPnPAVRenderingActive::SeekRelTimeL %d", this ); |
|
484 |
|
485 ResetL(); |
|
486 |
|
487 _LIT16( KHourMinSecFormatString, "%:0%*H%:1%T%:2%S%:3" ); //Current value equals to R_QTN_TIME_DURAT_LONG. |
|
488 TBuf<KSeekTargetMaxLength> desiredTimeString; |
|
489 aDesiredTime.FormatL( desiredTimeString, KHourMinSecFormatString ); |
|
490 |
|
491 iBuffer = CnvUtfConverter::ConvertFromUnicodeToUtf8L( desiredTimeString ); |
|
492 iBufferPtr.Set( iBuffer->Des() ); |
|
493 iPendingOperation = ESeekRelTime; |
|
494 iServer.SeekRelTime( iId, iBufferPtr, iStatus ); |
|
495 SetActive(); |
|
496 } |
|
497 |
|
498 // -------------------------------------------------------------------------- |
535 // CUPnPAVRenderingActive::ResetL |
499 // CUPnPAVRenderingActive::ResetL |
536 // See upnpavrenderingactive.h |
500 // See upnpavrenderingactive.h |
537 // -------------------------------------------------------------------------- |
501 // -------------------------------------------------------------------------- |
538 void CUPnPAVRenderingActive::ResetL() |
502 void CUPnPAVRenderingActive::ResetL() |
539 { |
503 { |
540 __LOG( "CUPnPAVRenderingActive::ResetL" ); |
504 __LOG1( "CUPnPAVRenderingActive::ResetL %d", this ); |
541 |
505 |
542 if( IsActive() ) |
506 if( IsActive() ) |
543 { |
507 { |
544 User::Leave( KErrServerBusy ); |
508 User::Leave( KErrServerBusy ); |
545 } |
509 } |
553 // CUPnPAVRenderingActive::SetURICompleteL |
517 // CUPnPAVRenderingActive::SetURICompleteL |
554 // See upnpavrenderingactive.h |
518 // See upnpavrenderingactive.h |
555 // -------------------------------------------------------------------------- |
519 // -------------------------------------------------------------------------- |
556 void CUPnPAVRenderingActive::SetURICompleteL() |
520 void CUPnPAVRenderingActive::SetURICompleteL() |
557 { |
521 { |
558 __LOG( "CUPnPAVRenderingActive::SetURICompleteL" ); |
522 __LOG1( "CUPnPAVRenderingActive::SetURICompleteL %d", this ); |
559 |
523 |
560 if( iObserver ) |
524 if( iObserver ) |
561 { |
525 { |
562 if( iStatus.Int() == EAVControllerSetURICompleted ) |
526 if( iStatus.Int() == EAVControllerSetURICompleted ) |
563 { |
527 { |
574 // CUPnPAVRenderingActive::SetNextURICompleteL |
538 // CUPnPAVRenderingActive::SetNextURICompleteL |
575 // See upnpavrenderingactive.h |
539 // See upnpavrenderingactive.h |
576 // -------------------------------------------------------------------------- |
540 // -------------------------------------------------------------------------- |
577 void CUPnPAVRenderingActive::SetNextURICompleteL() |
541 void CUPnPAVRenderingActive::SetNextURICompleteL() |
578 { |
542 { |
579 __LOG( "CUPnPAVRenderingActive::SetNextURICompleteL" ); |
543 __LOG1( "CUPnPAVRenderingActive::SetNextURICompleteL %d", this ); |
580 |
544 |
581 if( iObserver ) |
545 if( iObserver ) |
582 { |
546 { |
583 if( iStatus.Int() == EAVControllerSetNextURICompleted ) |
547 if( iStatus.Int() == EAVControllerSetNextURICompleted ) |
584 { |
548 { |
595 // CUPnPAVRenderingActive::PlayCompleteL |
559 // CUPnPAVRenderingActive::PlayCompleteL |
596 // See upnpavrenderingactive.h |
560 // See upnpavrenderingactive.h |
597 // -------------------------------------------------------------------------- |
561 // -------------------------------------------------------------------------- |
598 void CUPnPAVRenderingActive::PlayCompleteL() |
562 void CUPnPAVRenderingActive::PlayCompleteL() |
599 { |
563 { |
600 __LOG( "CUPnPAVRenderingActive::PlayCompleteL" ); |
564 __LOG1( "CUPnPAVRenderingActive::PlayCompleteL %d", this ); |
601 |
565 |
602 if( iObserver ) |
566 if( iObserver ) |
603 { |
567 { |
604 if( iStatus.Int() == EAVControllerPlayCompleted ) |
568 if( iStatus.Int() == EAVControllerPlayCompleted ) |
605 { |
569 { |
617 // CUPnPAVRenderingActive::StopCompleteL |
581 // CUPnPAVRenderingActive::StopCompleteL |
618 // See upnpavrenderingactive.h |
582 // See upnpavrenderingactive.h |
619 // -------------------------------------------------------------------------- |
583 // -------------------------------------------------------------------------- |
620 void CUPnPAVRenderingActive::StopCompleteL() |
584 void CUPnPAVRenderingActive::StopCompleteL() |
621 { |
585 { |
622 __LOG( "CUPnPAVRenderingActive::StopCompleteL" ); |
586 __LOG1( "CUPnPAVRenderingActive::StopCompleteL %d", this ); |
623 |
587 |
624 if( iObserver ) |
588 if( iObserver ) |
625 { |
589 { |
626 if( iStatus.Int() == EAVControllerStopCompleted ) |
590 if( iStatus.Int() == EAVControllerStopCompleted ) |
627 { |
591 { |
639 // CUPnPAVRenderingActive::PauseCompleteL |
603 // CUPnPAVRenderingActive::PauseCompleteL |
640 // See upnpavrenderingactive.h |
604 // See upnpavrenderingactive.h |
641 // -------------------------------------------------------------------------- |
605 // -------------------------------------------------------------------------- |
642 void CUPnPAVRenderingActive::PauseCompleteL() |
606 void CUPnPAVRenderingActive::PauseCompleteL() |
643 { |
607 { |
644 __LOG( "CUPnPAVRenderingActive::PauseCompleteL" ); |
608 __LOG1( "CUPnPAVRenderingActive::PauseCompleteL %d", this ); |
645 |
609 |
646 if( iObserver ) |
610 if( iObserver ) |
647 { |
611 { |
648 if( iStatus.Int() == EAVControllerPauseCompleted ) |
612 if( iStatus.Int() == EAVControllerPauseCompleted ) |
649 { |
613 { |
662 // CUPnPAVRenderingActive::SetVolumeCompleteL |
626 // CUPnPAVRenderingActive::SetVolumeCompleteL |
663 // See upnpavrenderingactive.h |
627 // See upnpavrenderingactive.h |
664 // -------------------------------------------------------------------------- |
628 // -------------------------------------------------------------------------- |
665 void CUPnPAVRenderingActive::SetVolumeCompleteL() |
629 void CUPnPAVRenderingActive::SetVolumeCompleteL() |
666 { |
630 { |
667 __LOG( "CUPnPAVRenderingActive::SetVolumeCompleteL" ); |
631 __LOG1( "CUPnPAVRenderingActive::SetVolumeCompleteL %d", this ); |
668 |
632 |
669 if( iObserver ) |
633 if( iObserver ) |
670 { |
634 { |
671 if( iStatus.Int() == EAVControllerSetVolumeCompleted ) |
635 if( iStatus.Int() == EAVControllerSetVolumeCompleted ) |
672 { |
636 { |
683 // CUPnPAVRenderingActive::GetVolumeCompleteL |
647 // CUPnPAVRenderingActive::GetVolumeCompleteL |
684 // See upnpavrenderingactive.h |
648 // See upnpavrenderingactive.h |
685 // -------------------------------------------------------------------------- |
649 // -------------------------------------------------------------------------- |
686 void CUPnPAVRenderingActive::GetVolumeCompleteL() |
650 void CUPnPAVRenderingActive::GetVolumeCompleteL() |
687 { |
651 { |
688 __LOG( "CUPnPAVRenderingActive::GetVolumeCompleteL" ); |
652 __LOG1( "CUPnPAVRenderingActive::GetVolumeCompleteL %d", this ); |
689 |
653 |
690 if( iObserver ) |
654 if( iObserver ) |
691 { |
655 { |
692 if( iStatus.Int() == EAVControllerGetVolumeCompleted ) |
656 if( iStatus.Int() == EAVControllerGetVolumeCompleted ) |
693 { |
657 { |
704 // CUPnPAVRenderingActive::SetMuteCompleteL |
668 // CUPnPAVRenderingActive::SetMuteCompleteL |
705 // See upnpavrenderingactive.h |
669 // See upnpavrenderingactive.h |
706 // -------------------------------------------------------------------------- |
670 // -------------------------------------------------------------------------- |
707 void CUPnPAVRenderingActive::SetMuteCompleteL() |
671 void CUPnPAVRenderingActive::SetMuteCompleteL() |
708 { |
672 { |
709 __LOG( "CUPnPAVRenderingActive::SetMuteCompleteL" ); |
673 __LOG1( "CUPnPAVRenderingActive::SetMuteCompleteL %d", this ); |
710 |
674 |
711 if( iObserver ) |
675 if( iObserver ) |
712 { |
676 { |
713 if( iStatus.Int() == EAVControllerSetMuteCompleted ) |
677 if( iStatus.Int() == EAVControllerSetMuteCompleted ) |
714 { |
678 { |
725 // CUPnPAVRenderingActive::GetMuteCompleteL |
689 // CUPnPAVRenderingActive::GetMuteCompleteL |
726 // See upnpavrenderingactive.h |
690 // See upnpavrenderingactive.h |
727 // -------------------------------------------------------------------------- |
691 // -------------------------------------------------------------------------- |
728 void CUPnPAVRenderingActive::GetMuteCompleteL() |
692 void CUPnPAVRenderingActive::GetMuteCompleteL() |
729 { |
693 { |
730 __LOG( "CUPnPAVRenderingActive::GetMuteCompleteL" ); |
694 __LOG1( "CUPnPAVRenderingActive::GetMuteCompleteL %d", this ); |
731 |
695 |
732 if( iObserver ) |
696 if( iObserver ) |
733 { |
697 { |
734 if( iStatus.Int() == EAVControllerGetMuteCompleted ) |
698 if( iStatus.Int() == EAVControllerGetMuteCompleted ) |
735 { |
699 { |
746 // CUPnPAVRenderingActive::PositionInfoCompleteL |
710 // CUPnPAVRenderingActive::PositionInfoCompleteL |
747 // See upnpavrenderingactive.h |
711 // See upnpavrenderingactive.h |
748 // -------------------------------------------------------------------------- |
712 // -------------------------------------------------------------------------- |
749 void CUPnPAVRenderingActive::PositionInfoCompleteL() |
713 void CUPnPAVRenderingActive::PositionInfoCompleteL() |
750 { |
714 { |
751 __LOG( "CUPnPAVRenderingActive::PositionInfoCompleteL" ); |
715 __LOG1( "CUPnPAVRenderingActive::PositionInfoCompleteL %d", this ); |
752 |
716 |
753 if( iObserver ) |
717 if( iObserver ) |
754 { |
718 { |
755 if( iStatus.Int() == EAVControllerPositionInfoCompleted ) |
719 if( iStatus.Int() == EAVControllerPositionInfoCompleted ) |
756 { |
720 { |
762 KNullDesC8, |
726 KNullDesC8, |
763 KNullDesC8 ); |
727 KNullDesC8 ); |
764 } |
728 } |
765 } |
729 } |
766 } |
730 } |
767 |
731 |
768 // -------------------------------------------------------------------------- |
732 // -------------------------------------------------------------------------- |
769 // CUPnPAVRenderingActive::StartMediaServerCompleteL |
733 // CUPnPAVRenderingActive::SeekRelTimeComplete |
770 // See upnpavrenderingactive.h |
734 // See upnpavrenderingactive.h |
771 // -------------------------------------------------------------------------- |
735 // -------------------------------------------------------------------------- |
772 void CUPnPAVRenderingActive::StartMediaServerCompleteL() |
736 void CUPnPAVRenderingActive::SeekRelTimeComplete() |
773 { |
737 { |
774 __LOG( "CUPnPAVRenderingActive::StartMediaServerCompleteL" ); |
738 __LOG1( "CUPnPAVRenderingActive::SeekRelTimeCompleteL %d", this ); |
775 |
739 |
776 if( iObserver ) |
740 if( iObserver ) |
777 { |
741 { |
778 |
742 if( iStatus.Int() == EAVControllerSeekCompleted ) |
779 if( iStatus.Int() == EAVControllerStartMediaServerCompleted ) |
743 { |
780 { |
744 iObserver->InteractOperationComplete( KErrNone, EUPnPAVSeek ); |
781 iMediaServerResourceReserved = ETrue; |
745 } |
782 iObserver->ReserveLocalMSServicesCompleted( KErrNone ); |
746 else |
783 } |
747 { |
784 else |
748 iObserver->InteractOperationComplete( iStatus.Int(),EUPnPAVSeek); |
785 { |
749 } |
786 iObserver->ReserveLocalMSServicesCompleted( iStatus.Int() ); |
|
787 } |
|
788 |
|
789 } |
750 } |
790 } |
751 } |
|
752 |
791 // end of file |
753 // end of file |