installationservices/swi/source/sisregistry/common/sisregistryhelperclient.cpp
branchRCL_3
changeset 34 741e5bba2bd1
parent 0 ba25891c3a9e
equal deleted inserted replaced
28:98a43fae6e2b 34:741e5bba2bd1
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-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 the License "Eclipse Public License v1.0"
     5 * under the terms of the License "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".
    40 	RScsClientBase::Close();
    40 	RScsClientBase::Close();
    41 	}
    41 	}
    42 
    42 
    43 EXPORT_C void RSisRegistryHelper::GetEquivalentLanguagesL(TLanguage aLangId,RArray<TLanguage>& aEquivLangs)
    43 EXPORT_C void RSisRegistryHelper::GetEquivalentLanguagesL(TLanguage aLangId,RArray<TLanguage>& aEquivLangs)
    44 	{
    44 	{
       
    45 	CleanupClosePushL(aEquivLangs);
    45 	// calculate the likely size of the data transfer buffer
    46 	// calculate the likely size of the data transfer buffer
    46 	const TInt KMaxBufSize=
    47 	const TInt KMaxBufSize=
    47 		sizeof(TInt)+                 // number of entries
    48 		sizeof(TInt)+                 // number of entries
    48 		KMaxEquivalentLanguages*sizeof(TLanguage);  // Languages IDs stored as TLanguage
    49 		KMaxEquivalentLanguages*sizeof(TLanguage);  // Languages IDs stored as TLanguage
    49 	
    50 	
    67 		TLanguage langId=(TLanguage)ins.ReadInt32L();
    68 		TLanguage langId=(TLanguage)ins.ReadInt32L();
    68 		aEquivLangs.AppendL(langId);
    69 		aEquivLangs.AppendL(langId);
    69 		}
    70 		}
    70 	// cleanup
    71 	// cleanup
    71 	CleanupStack::PopAndDestroy(2, buf); // buf
    72 	CleanupStack::PopAndDestroy(2, buf); // buf
       
    73 	CleanupStack::Pop(&aEquivLangs);
    72 	}
    74 	}