79 __LOG( "[UpnpCommand]\t CUpnpNoteHandler::Destructor" ); |
79 __LOG( "[UpnpCommand]\t CUpnpNoteHandler::Destructor" ); |
80 |
80 |
81 // If wait note is running, finish it |
81 // If wait note is running, finish it |
82 if( iWaitNote ) |
82 if( iWaitNote ) |
83 { |
83 { |
|
84 __LOG( "[UpnpCommand]\t CUpnpNoteHandler::Destructor\ |
|
85 iWaitNote->ProcessFinishedL " ); |
84 TRAP_IGNORE( iWaitNote->ProcessFinishedL() ); |
86 TRAP_IGNORE( iWaitNote->ProcessFinishedL() ); |
85 } |
87 } |
86 |
88 |
87 // Un-load resource file |
89 // Un-load resource file |
88 if ( iResFileOffset ) |
90 if ( iResFileOffset ) |
89 { |
91 { |
|
92 __LOG( "[UpnpCommand]\t CUpnpNoteHandler::Destructor\ |
|
93 Un-load resource file " ); |
90 CEikonEnv::Static()->DeleteResourceFile( iResFileOffset ); |
94 CEikonEnv::Static()->DeleteResourceFile( iResFileOffset ); |
91 iResFileOffset = 0; |
95 iResFileOffset = 0; |
92 } |
96 } |
|
97 |
|
98 __LOG( "[UpnpCommand]\t CUpnpNoteHandler::Destructor - end" ); |
93 } |
99 } |
94 |
100 |
95 // -------------------------------------------------------------------------- |
101 // -------------------------------------------------------------------------- |
96 // CUpnpNoteHandler::ConstructL |
102 // CUpnpNoteHandler::ConstructL |
97 // Perform the second phase of two phase construction. Reserves the Upnp Fw |
103 // Perform the second phase of two phase construction. Reserves the Upnp Fw |
319 { |
325 { |
320 __LOG( "[UpnpCommand]\t CUpnpNoteHandler::ShowPlaybackFailedNoteL" ); |
326 __LOG( "[UpnpCommand]\t CUpnpNoteHandler::ShowPlaybackFailedNoteL" ); |
321 |
327 |
322 ShowErrorNoteL( R_COMMAND_ERR_RENDERING_FAILED_UNKNOWN_TEXT ); |
328 ShowErrorNoteL( R_COMMAND_ERR_RENDERING_FAILED_UNKNOWN_TEXT ); |
323 } |
329 } |
|
330 |
|
331 |
|
332 // -------------------------------------------------------------------------- |
|
333 // CUpnpNoteHandler::ShowRendererInUseNoteL |
|
334 // Show "%U is already in use. Please try again later." - note. |
|
335 // -------------------------------------------------------------------------- |
|
336 // |
|
337 void CUpnpNoteHandler::ShowRendererInUseNoteL( const TDesC& aDeviceName ) |
|
338 { |
|
339 __LOG( "[UpnpCommand]\t CUpnpNoteHandler::ShowRendererInUseNoteL" ); |
|
340 |
|
341 // Load note text |
|
342 HBufC* textFormat = StringLoader::LoadLC( |
|
343 R_COMMAND_RENDERER_IN_USE_TEXT ); |
|
344 HBufC* noteText = HBufC::NewLC( textFormat->Length() |
|
345 + aDeviceName.Length() ); |
|
346 noteText->Des().Format( textFormat->Des() , &aDeviceName ); |
|
347 // Create and launch the error note |
|
348 CAknErrorNote* errorNote = new( ELeave ) CAknErrorNote; |
|
349 errorNote->ExecuteLD( *noteText ); |
|
350 CleanupStack::PopAndDestroy( noteText ); |
|
351 CleanupStack::PopAndDestroy( textFormat ); |
|
352 } |
|
353 |
324 |
354 |
325 // -------------------------------------------------------------------------- |
355 // -------------------------------------------------------------------------- |
326 // CUpnpNoteHandler::RunWaitNote |
356 // CUpnpNoteHandler::RunWaitNote |
327 // Launches the wait note. |
357 // Launches the wait note. |
328 // -------------------------------------------------------------------------- |
358 // -------------------------------------------------------------------------- |