equal
deleted
inserted
replaced
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
901 // check if this has mime |
901 // check if this has mime |
902 |
902 |
903 RArray<TMsvId> mimeIdArray; |
903 RArray<TMsvId> mimeIdArray; |
904 CleanupClosePushL(mimeIdArray); |
904 CleanupClosePushL(mimeIdArray); |
905 |
905 |
906 mimeIdArray.Append(iDArray[i]); |
906 mimeIdArray.AppendL(iDArray[i]); |
907 iDBAdapter.GetAllMimeIdsL(iDArray[i],mimeIdArray); |
907 iDBAdapter.GetAllMimeIdsL(iDArray[i],mimeIdArray); |
908 |
908 |
909 if(mimeIdArray.Count()) |
909 if(mimeIdArray.Count()) |
910 { |
910 { |
911 for(TInt index = 0; index < mimeIdArray.Count();index++) |
911 for(TInt index = 0; index < mimeIdArray.Count();index++) |
1799 HMsvReadBuffer *buf = new (ELeave) HMsvReadBuffer(*buffer); |
1799 HMsvReadBuffer *buf = new (ELeave) HMsvReadBuffer(*buffer); |
1800 |
1800 |
1801 RReadStream infoMimeHeader(buf); |
1801 RReadStream infoMimeHeader(buf); |
1802 |
1802 |
1803 RBuf8 mimeStr; |
1803 RBuf8 mimeStr; |
1804 mimeStr.Create(KMaxBufferLength); |
1804 mimeStr.CreateL(KMaxBufferLength); |
1805 CleanupClosePushL(mimeStr); |
1805 CleanupClosePushL(mimeStr); |
1806 |
1806 |
1807 TInt version = infoMimeHeader.ReadUint16L(); |
1807 TInt version = infoMimeHeader.ReadUint16L(); |
1808 mimeStr.AppendNum(version); |
1808 mimeStr.AppendNum(version); |
1809 mimeStr.Append(KSeparator); |
1809 mimeStr.Append(KSeparator); |