843 } |
843 } |
844 aOutMapParam->InsertL(KStringList,stringlist); |
844 aOutMapParam->InsertL(KStringList,stringlist); |
845 CleanupStack::PopAndDestroy(stringlist); |
845 CleanupStack::PopAndDestroy(stringlist); |
846 } |
846 } |
847 break; |
847 break; |
|
848 case CSysData::ECameraInfo: |
|
849 { |
|
850 CLiwList* camResList = CLiwDefaultList::NewL(); |
|
851 CleanupClosePushL( *camResList ); |
|
852 CLiwList* camMimeTypesList = CLiwDefaultList::NewL(); |
|
853 CleanupClosePushL( *camMimeTypesList ); |
|
854 const CCameraInfo* camInfo = ((CCameraInfo*) aInSysData); |
|
855 count = camInfo->ResolutionList()->Count(); |
|
856 |
|
857 for ( int index=0; index<count; index++ ) |
|
858 { |
|
859 TInt val = 0; |
|
860 CLiwMap* resMap = CLiwDefaultMap::NewL(); |
|
861 CleanupStack::PushL( resMap ); |
|
862 camInfo->ResolutionList()->At( index, 0, val ); |
|
863 resMap->InsertL( KXPixels, (TInt32)val ); |
|
864 camInfo->ResolutionList()->At( index, 1, val ); |
|
865 resMap->InsertL( KYPixels, (TInt32)val ); |
|
866 camResList->AppendL( resMap ); |
|
867 CleanupStack::Pop( resMap ); |
|
868 resMap->Close(); |
|
869 TPtrC string; |
|
870 camInfo->MimeTypesList()->At( index, string ); |
|
871 camMimeTypesList->AppendL( string ); |
|
872 } |
|
873 aOutMapParam->InsertL( KCamResList, camResList ); |
|
874 aOutMapParam->InsertL( KCamMimeTypesList, camMimeTypesList ); |
|
875 CleanupStack::PopAndDestroy( camMimeTypesList ); |
|
876 CleanupStack::PopAndDestroy( camResList ); |
|
877 } |
|
878 break; |
848 |
879 |
849 default: |
880 default: |
850 User::Leave(KErrArgument); |
881 User::Leave(KErrArgument); |
851 } |
882 } |
852 CleanupStack::Pop(aOutMapParam); |
883 CleanupStack::Pop(aOutMapParam); |