diff -r a0713522ab97 -r b276298d5729 contentcontrolsrv/hsccclient/hsccproviderclient/src/hsccproviderclient.cpp --- a/contentcontrolsrv/hsccclient/hsccproviderclient/src/hsccproviderclient.cpp Wed Apr 14 16:16:44 2010 +0300 +++ b/contentcontrolsrv/hsccclient/hsccproviderclient/src/hsccproviderclient.cpp Tue Apr 27 16:57:49 2010 +0300 @@ -457,11 +457,33 @@ TUint32 aReceiver, CCcSrvMsg& aMessage ) { + TInt err( KErrNone ); // Get view list CHsContentInfoArray* views = CHsContentInfoArray::NewL(); CleanupStack::PushL( views ); - TInt err = iController.ViewListL( *views ); + + if ( aMessage.DataSize() ) + { + // Internalize message data + RDesReadStream dataStream( aMessage.Data() ); + CleanupClosePushL( dataStream ); + CHsContentInfo* info = CHsContentInfo::NewL( dataStream ); + CleanupStack::PopAndDestroy( &dataStream ); + CleanupStack::PushL( info ); + // Get list of views included in the defined + // application configuration + err = iController.ViewListL( *info, *views ); + + CleanupStack::PopAndDestroy( info ); + } + else + { + // Get list of available views + err = iController.ViewListL( *views ); + } + + // Create and send ViewListResp CCcSrvMsg* message = CCcSrvMsg::NewL(); CleanupStack::PushL( message );