tcMenu
Public Member Functions | List of all members
RemoteNoMenuItemPredicate Class Reference

#include <MenuIterator.h>

Inheritance diagram for RemoteNoMenuItemPredicate:
MenuItemPredicate

Public Member Functions

 RemoteNoMenuItemPredicate (int remoteNo)
 
bool matches (MenuItem *item) override
 
void setRemoteNo (uint8_t newRemoteNum)
 

Detailed Description

A specialisation of the MenuItemPredicate that matches on a given remote number.

Constructor & Destructor Documentation

◆ RemoteNoMenuItemPredicate()

RemoteNoMenuItemPredicate::RemoteNoMenuItemPredicate ( int  remoteNo)
inlineexplicit

Constructs the predicate with the remote number we are interested in.

Parameters
thenumber of the remote we want to check for.

Member Function Documentation

◆ matches()

bool RemoteNoMenuItemPredicate::matches ( MenuItem item)
overridevirtual

Matches if the remote number is marked as changed on the item. Remote number from the constructor.

Parameters
itemthe menu item to be checked
Returns
true if the remote has changed, false otherwise

Implements MenuItemPredicate.

◆ setRemoteNo()

void RemoteNoMenuItemPredicate::setRemoteNo ( uint8_t  newRemoteNum)
inline

Sets the remote number that we should filter on

Parameters
newRemoteNumthe remote to filter on

The documentation for this class was generated from the following files: