// ------------------------------------------------------------------------------------------------ // CNSmlDPInformation::InternalizeL // ------------------------------------------------------------------------------------------------ EXPORT_C void CNSmlDPInformation::InternalizeL( RReadStream& aStream ) { TPckg<TSmlDataProviderId> id( iInfo->iId ); aStream.ReadL( id ); iInfo->iVersion.iMajor = aStream.ReadInt32L(); iInfo->iVersion.iMinor = aStream.ReadInt32L(); iInfo->iVersion.iBuild = aStream.ReadInt32L(); iInfo->iProtocolVer = static_cast<TSmlProtocolVersion>( aStream.ReadInt32L() ); delete iInfo->iDisplayName; iInfo->iDisplayName = NULL; iInfo->iDisplayName = HBufC::NewL( aStream, aStream.ReadUint32L() ); delete iInfo->iMimeTypes; iInfo->iMimeTypes = NULL; TInt mimetypesCount = aStream.ReadUint32L(); CDesC8Array* mimetypes = new (ELeave) CDesC8ArrayFlat( Max<TInt>( 2, mimetypesCount ) ); CleanupStack::PushL( mimetypes ); for (TInt i = 0 ; i < mimetypesCount; i++ ) { HBufC8* tempBuf8 = HBufC8::NewLC( aStream, aStream.ReadUint32L() ); mimetypes->AppendL( *tempBuf8 ); CleanupStack::PopAndDestroy(); // tempBuf8 } delete iInfo->iMimeVersions; iInfo->iMimeVersions = NULL; TInt mimeversCount = aStream.ReadUint32L(); CDesC8Array* mimevers = new (ELeave) CDesC8ArrayFlat( Max<TInt>( 2, mimeversCount ) ); CleanupStack::PushL( mimevers ); for (TInt i = 0 ; i < mimeversCount; i++ ) { HBufC8* tempBuf8 = HBufC8::NewLC( aStream, aStream.ReadUint32L() ); mimevers->AppendL( *tempBuf8 ); CleanupStack::PopAndDestroy(); // tempBuf8 } iInfo->iMimeTypes = mimetypes; iInfo->iMimeVersions = mimevers; CleanupStack::Pop(2); // mimetypes, mimevers }
// ----------------------------------------------------------------------------- // CCMRVideoCodecs::GetSupportedVideoCodecsL // Get the supported & installed video codecs. // This can be called also when the recorder is not open // (other items were commented in a header). // ----------------------------------------------------------------------------- // void CCMRVideoCodecs::GetSupportedVideoCodecsL(CDesC8Array& aVideoMimeTypes) const { aVideoMimeTypes.Reset(); // copy from iVideoMimeTypes TInt i; for ( i = 0; i < iVideoMimeTypes->Count(); i++ ) { aVideoMimeTypes.AppendL( iVideoMimeTypes->MdcaPoint(i) ); } }
void CSdlAppUi::AddCmdLineParamsL(CDesC8Array& aArgs) { _LIT8(KAddonParam, "--addondir=?:\\uqm-addons"); _LIT16(KTestFolder, "?:\\uqm-addons"); RFs fs; fs.Connect(); for (TInt8 c = 'e'; c < 'z'; ++c) { TBuf16<32> buf(KTestFolder); buf[0] = c; if (BaflUtils::FolderExists(fs, buf)) { TBuf8<32> arg(KAddonParam); arg[11] = c; aArgs.AppendL(arg); break; } } fs.Close(); }
// -------------------------------------------------------------------------- // UPnPDlnaUtility::GetSupportedProfilesL // Returns Supported dlna profiles, Only player mode supported. // -------------------------------------------------------------------------- EXPORT_C CDesC8Array& UPnPDlnaUtility::GetSupportedProfilesL( const TDlnaMode aMode ) { CDesC8Array* array = new (ELeave) CDesC8ArrayFlat( 10 ); CleanupStack::PushL( array ); // At the m switch( aMode ) { case EDMPMode: { // Video profiles that can be played on device array->AppendL( KAvcMp4BlCif15Aac520() ); array->AppendL( KMpeg4H2633gppP3L10Amr() ); array->AppendL( KMpeg4P23gppSpL0bAmr() ); array->AppendL( KMpeg4P2Mp4AspAac() ); array->AppendL( KMpeg4P2Mp4AspHeaac() ); array->AppendL( KMpeg4P2Mp4AspL4SoAac() ); array->AppendL( KMpeg4P2Mp4AspL4SoHeaac() ); array->AppendL( KMpeg4P2Mp4SpVgaAac() ); array->AppendL( KMpeg4P2Mp4AspL4SoHeaac() ); array->AppendL( KMpeg4P2Mp4SpVgaAac() ); array->AppendL( KMpeg4P2Mp4SpVgaHeaac() ); array->AppendL( KMpeg4P2Mp4SpL2Aac() ); array->AppendL( KMpeg4P2Mp4spAac() ); array->AppendL( KMpeg4P23gppSpL0bAac() ); array->AppendL( KAvcMp4BlCif15Aac() ); array->AppendL( KAvcMp4BlCif15AacLtp() ); array->AppendL( KAvcMp4BlCif15AacLtp520() ); array->AppendL( KAvcMp4BlCif30Aac940() ); array->AppendL( KAvcMp4BlL12Cif15Heaac() ); array->AppendL( KAvcTSBlCif15Aac() ); // Audio profiles that can be played on device array->AppendL( KAacIso() ); array->AppendL( KAacIso320() ); array->AppendL( KAacAdts() ); array->AppendL( KAacAdts320() ); array->AppendL( KAacMult5Iso() ); array->AppendL( KHeaacL2Iso() ); array->AppendL( KHeaacL2Iso320() ); array->AppendL( KHeaacL2Adts() ); array->AppendL( KHeaacL2Adts320() ); array->AppendL( KAmr3gpp() ); array->AppendL( KAmrWbplus() ); array->AppendL( KMp3() ); array->AppendL( KMp3x() ); array->AppendL( KWmaBase() ); array->AppendL( KWmaFull() ); // Image profiles that can be played on device array->AppendL( KJpegLrg() ); array->AppendL( KJpegMed() ); array->AppendL( KJpegSm() ); array->AppendL( KPngLrg() ); //fix for EFCG-7E2DKU array->AppendL( KJpegLrgIco() ); array->AppendL( KJpegSmIco() ); array->AppendL( KJpegTn() ); array->AppendL( KPngTn() ); array->AppendL( KPngSmIco() ); array->AppendL( KPngLrgIco() ); break; } case EDMSMode: case EDMUMode: case EDMDMode: default: { User::Leave( KErrNotSupported ); break; } } CleanupStack::Pop( array ); return *array; }
// ----------------------------------------------------------------------------- // TMCETestUIEngineCmdTerminateEvent::ExecuteL // ----------------------------------------------------------------------------- // EXPORT_C void TMCETestUIEngineCmdTerminateEvent::ExecuteL() { TNotifyValues notifyValues; if( iEngine.NotifyValues( notifyValues) ) { CDesC8Array* headers; headers = new (ELeave) CDesC8ArrayFlat( 1 ); CleanupStack::PushL( headers ); CMCETestUIQuestionDataQuery* question = CMCETestUIQuestionDataQuery::NewLC(); question->SetCaptionL( KUserQuestionInputEventHeader ); question->SetDefaultValueL(notifyValues.headers ); question->SetAnswerL( notifyValues.headers ); TBufC8<100> headersbuffer( question->Answer8() ); CleanupStack::PopAndDestroy( question ); headers->AppendL( headersbuffer ); /* CMCETestUIQuestionDataQuery* question2 = CMCETestUIQuestionDataQuery::NewLC(); question2->SetCaptionL( KUserQuestionInputEventContentType ); question2->SetDefaultValueL(notifyValues.contentType ); question2->SetAnswerL( notifyValues.contentType ); HBufC8 *contentType = HBufC8::NewLC( question2->Answer8().Length() ); contentType->Des().Copy( question2->Answer8() ); CleanupStack::PopAndDestroy( question2 ); CMCETestUIQuestionDataQuery* question3 = CMCETestUIQuestionDataQuery::NewLC(); question3->SetCaptionL( KUserQuestionInputEventContent ); question3->SetDefaultValueL(notifyValues.contentType ); question3->SetAnswerL( notifyValues.contentType ); HBufC8 *content = HBufC8::NewLC( question3->Answer8().Length() ); content->Des().Copy( question3->Answer8() ); CleanupStack::PopAndDestroy( question3 ); CleanupStack::Pop( content ); CleanupStack::Pop( contentType ); */ HBufC8 *contentType = HBufC8::NewLC( KNotifyContentType().Length() ); contentType->Des().Copy( KNotifyContentType ); HBufC8 *content = HBufC8::NewLC( KNotifyContent().Length() ); content->Des().Copy( KNotifyContent ); CleanupStack::Pop( content ); CleanupStack::Pop( contentType ); CleanupStack::Pop( headers ); if( headers == 0 ) { MCE_TESTUI_DEBUG1( "Terminate Event with values"); iEvent.Event().TerminateL( headers, contentType, content ); } else { MCE_TESTUI_DEBUG1( "Terminate Event without values"); iEvent.Event().TerminateL( ); } iEngine.EngineStateChangedL(); } }