diff -r 16e4b9007960 -r f5508c13dfe0 bluetoothappprofiles/avrcp/playerinformation/src/playerapplicationsetting.h --- a/bluetoothappprofiles/avrcp/playerinformation/src/playerapplicationsetting.h Wed Oct 13 13:15:31 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,89 +0,0 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -/** - @file - @internalComponent - @released -*/ - -#ifndef PLAYERAPPLICATIONSETTING_H -#define PLAYERAPPLICATIONSETTING_H - - -/** -Class containing all the information for one attribute. -All the attributes for a player are contained in a RHashMap -of CPlayerApplicationSettings in CPlayerInfoTarget -*/ -NONSHARABLE_CLASS(CPlayerApplicationSettings) : public CBase - { -public: - /** - Factory function. - @param aAttributeID The ID value - @param aAttributeText A text description of the attribute - @param aValues A list of valid values - @param aValueTexts A list of descriptions of the possible values - @param aInitialValue The starting value - @return A new CPlayerApplicationSettings - */ - static CPlayerApplicationSettings* NewL( TUint aAttributeID, - TDesC8& aAttributeText, - const RArray& aValues, - RArray& aValueTexts, - TUint aInitialValue ); - - /** Destructor */ - ~CPlayerApplicationSettings(); - - TUint GetAttributeID(); - TUint GetCurrentValue(); - TPtrC8 GetAttributeText(); - RArray* GetValues(); - RPointerArray* GetValuesTexts(); - TInt SetCurrentValue(TUint aValue); - -private: - /** - Constructor. - @param aInterfaceSelector The interface selector. - */ - CPlayerApplicationSettings( ); - - void ConstructL(TUint aAttributeID, - TDesC8& aAttributeText, - const RArray& aValues, - RArray& aValueText, - TUint aInitialValue ); - -private: - /* attribute ID */ - TUint iAttributeID; - - /* text description of the attribute */ - HBufC8* iAttributeText; - - /* array of allowed values */ - RArray iValues; - - /* array of text descriptions of allowed values */ - RPointerArray iValueText; - - /* the current value */ - TUint iCurrentValue; - }; - -#endif // PLAYERAPPLICATIONSETTING_H