bluetoothappprofiles/avrcp/playerinformation/inc/eventsmask.h
changeset 70 f5508c13dfe0
parent 67 16e4b9007960
child 71 083fd884d7dd
equal deleted inserted replaced
67:16e4b9007960 70:f5508c13dfe0
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19  @released
       
    20 */
       
    21 
       
    22 #ifndef EVENTSMASK_H
       
    23 #define EVENTSMASK_H
       
    24 
       
    25 // INCLUDES
       
    26 #include <e32base.h>
       
    27 #include <remcon/avrcpspec.h>
       
    28 
       
    29 /**
       
    30 This class stores the supported events list in a bitmask. 
       
    31 The event ids are numbers from 0x01 to 0x09 (from specs).
       
    32 A 1 in the 0xXX position means that the XX eventid event is supported, a 0 in 
       
    33 the same position means that it's not supported.
       
    34  */
       
    35 NONSHARABLE_CLASS(TEventsMask) 
       
    36 	{
       
    37 public:
       
    38 	TEventsMask();
       
    39 	void Reset();
       
    40 	TBool Find(TRegisterNotificationEvent aEvent) const; 
       
    41 	void Append(TRegisterNotificationEvent aEvent);
       
    42 	void Remove(TRegisterNotificationEvent aEvent);
       
    43 	void Begin();
       
    44 	TBool Next();
       
    45 	TRegisterNotificationEvent Get() const;
       
    46 private:
       
    47 	TUint16							iMask;
       
    48 	TUint8							iNextSupportedEvent;
       
    49 	};
       
    50 
       
    51 #endif // EVENTSMASK_H