bluetoothappprofiles/avrcp/playerinformation/src/playerapplicationsetting.cpp
changeset 19 43824b19ee35
parent 0 f63038272f30
equal deleted inserted replaced
17:f05641c183ff 19:43824b19ee35
     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".
    28 #include "playerapplicationsetting.h"
    28 #include "playerapplicationsetting.h"
    29 #include "playerinformation.h"
    29 #include "playerinformation.h"
    30 
    30 
    31 CPlayerApplicationSettings* CPlayerApplicationSettings::NewL( TUint aAttributeID,
    31 CPlayerApplicationSettings* CPlayerApplicationSettings::NewL( TUint aAttributeID,
    32 		TDesC8& 						aAttributeText,
    32 		TDesC8& 						aAttributeText,
    33 		RArray<TUint> 					aValues,
    33 		const RArray<TUint>& 			aValues,
    34 		RArray<TPtrC8>&					aValueTexts,
    34 		RArray<TPtrC8>&					aValueTexts,
    35 		TUint 							aInitialValue )
    35 		TUint 							aInitialValue )
    36 	{
    36 	{
    37 	CPlayerApplicationSettings* self = new(ELeave) CPlayerApplicationSettings();
    37 	CPlayerApplicationSettings* self = new(ELeave) CPlayerApplicationSettings();
    38 	CleanupStack::PushL(self);
    38 	CleanupStack::PushL(self);
    53 	{
    53 	{
    54 	}
    54 	}
    55 
    55 
    56 void CPlayerApplicationSettings::ConstructL(TUint aAttributeID,
    56 void CPlayerApplicationSettings::ConstructL(TUint aAttributeID,
    57 		TDesC8& 						aAttributeText,
    57 		TDesC8& 						aAttributeText,
    58 		RArray<TUint> 					aValues,
    58 		const RArray<TUint>& 			aValues,
    59 		RArray<TPtrC8>&					aValueText,
    59 		RArray<TPtrC8>&					aValueText,
    60 		TUint 							aInitialValue )
    60 		TUint 							aInitialValue )
    61 	{
    61 	{
    62 	iAttributeID = aAttributeID;
    62 	iAttributeID = aAttributeID;
    63 
    63