diff -r 22de2e391156 -r 20ac952a623c remotecontrol/avrcp/remconbeareravrcp/src/playerbitmasks.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/remotecontrol/avrcp/remconbeareravrcp/src/playerbitmasks.cpp Wed Oct 13 16:20:29 2010 +0300 @@ -0,0 +1,337 @@ +// Copyright (c) 2008-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: +// TPlayerFeatureBitmask.cpp +// + +#include +#include "avrcplog.h" +#include "avrcputils.h" +#include "mediabrowse.h" +#include "nowplaying.h" +#include "playerbitmasks.h" +#include "remcongroupnavigation.h" + + +TPlayerFeatureBitmask::TPlayerFeatureBitmask() + { + iFeatureBitmask.FillZ(KFeatureBitmaskLength); + } + +TPlayerFeatureBitmask::TPlayerFeatureBitmask(const TPlayerFeatureBitmask& aFeatureBitmask) + { + iFeatureBitmask.Copy(aFeatureBitmask.FeatureBitmask()); + } + +void TPlayerFeatureBitmask::SetCoreApiFeatures(const RArray& aOperation) + { + if(aOperation.Count() > 0) + { + for(TInt j = 0; j< aOperation.Count() ; j++) + { + switch(aOperation[j]) + { + case ERemConCoreApiSelect: + iFeatureBitmask[ESelectByteOffset] |= (1<& aOperation) + { + if(aOperation.Count()) + { + iFeatureBitmask[EAdvancedControlPlayerByteOffset] |= (1<& aOperation) + { + if(aOperation.Count()) + { + iFeatureBitmask[EVendorUniqueByteOffset] |= (1<& aOperation) + { + if(aOperation.Count()) + { + iFeatureBitmask[EAdvancedControlPlayerByteOffset] |= (1<= 0) + { + iFeatureBitmask[EAddToNowPlayingByteOffset] |= (1<& aOperation) + { + if(aOperation.Count()) + { + iFeatureBitmask[EAdvancedControlPlayerByteOffset] |= (1<= 0) + { + iFeatureBitmask[ESearchByteOffset] |= (1<= 0) + { + iFeatureBitmask[EUidPersistencyByteOffset] |= (1<