equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
387 void CSWInstInstallRequest::GetMIMETypeL( const ContentAccess::CContent& aContent, |
387 void CSWInstInstallRequest::GetMIMETypeL( const ContentAccess::CContent& aContent, |
388 TDes8& aMIME ) |
388 TDes8& aMIME ) |
389 { |
389 { |
390 HBufC* tmpMIME = HBufC::NewLC( KMaxDataTypeLength ); |
390 HBufC* tmpMIME = HBufC::NewLC( KMaxDataTypeLength ); |
391 TPtr mimePtr( tmpMIME->Des() ); |
391 TPtr mimePtr( tmpMIME->Des() ); |
392 aContent.GetStringAttribute( ContentAccess::EMimeType, mimePtr ); |
392 User::LeaveIfError( aContent.GetStringAttribute( ContentAccess::EMimeType, mimePtr ) ); |
393 aMIME.Copy( *tmpMIME ); |
393 aMIME.Copy( *tmpMIME ); |
394 CleanupStack::PopAndDestroy( tmpMIME ); |
394 CleanupStack::PopAndDestroy( tmpMIME ); |
395 } |
395 } |
396 |
396 |
397 // ----------------------------------------------------------------------------- |
397 // ----------------------------------------------------------------------------- |