#include <MenuIterator.h>
A specialisation of the MenuItemPredicate that matches on a given remote number.
◆ RemoteNoMenuItemPredicate()
RemoteNoMenuItemPredicate::RemoteNoMenuItemPredicate |
( |
int |
remoteNo | ) |
|
|
inlineexplicit |
Constructs the predicate with the remote number we are interested in.
- Parameters
-
the | number of the remote we want to check for. |
◆ 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
-
item | the 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
-
newRemoteNum | the remote to filter on |
The documentation for this class was generated from the following files: