sysstatemgmt/systemstatemgr/sus/src/susmiscadaptation.cpp
branchRCL_3
changeset 21 ccb4f6b3db21
parent 0 4e1aa6a622a0
child 22 8cb079868133
equal deleted inserted replaced
20:1ddbe54d0645 21:ccb4f6b3db21
     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".
   126 	}
   126 	}
   127 
   127 
   128 void CMiscAdaptation::DoGetSimLanguagesArrayL(const RMessage2& aMessage)
   128 void CMiscAdaptation::DoGetSimLanguagesArrayL(const RMessage2& aMessage)
   129 	{
   129 	{
   130 	const TInt simLanguageCount = aMessage.Int1();
   130 	const TInt simLanguageCount = aMessage.Int1();
   131 	CBufFlat* const buf=CBufFlat::NewL(simLanguageCount * sizeof(TInt32));
   131 	CBufFlat* const buf=CBufFlat::NewL(simLanguageCount * sizeof(TInt));
   132 	CleanupStack::PushL(buf);
   132 	CleanupStack::PushL(buf);
   133 
   133 
   134 	iMiscAdaptation.GetSimLanguagesL(buf, simLanguageCount);
   134 	iMiscAdaptation.GetSimLanguagesL(buf, simLanguageCount);
   135 
   135 
   136 	aMessage.WriteL(0, buf->Ptr(0));
   136 	aMessage.WriteL(0, buf->Ptr(0));