MythTV master
mythtvactionutils.h
Go to the documentation of this file.
1#ifndef MYTHTVACTIONUTILS_H
2#define MYTHTVACTIONUTILS_H
3
4// MythTV
5#include "tv_actions.h"
6#include "videoouttypes.h"
7
8inline bool IsActionable(const QString& Action, const QStringList& Actions)
9{
10 return std::find(Actions.cbegin(), Actions.cend(), Action) != Actions.cend();
11}
12
13inline bool IsActionable(const QStringList& Action, const QStringList& Actions)
14{
15 return std::any_of(Action.cbegin(), Action.cend(), [&](const QString& A) { return IsActionable(A, Actions); });
16}
17
19{
24}
25
26#endif
An action (for this plugin) consists of a description, and a set of key sequences.
Definition: action.h:41
static pid_list_t::iterator find(const PIDInfoMap &map, pid_list_t &list, pid_list_t::iterator begin, pid_list_t::iterator end, bool find_open)
StereoscopicMode ActionToStereoscopic(const QString &Action)
bool IsActionable(const QString &Action, const QStringList &Actions)
#define ACTION_3DIGNORE
Definition: tv_actions.h:126
#define ACTION_3DTOPANDBOTTOMDISCARD
Definition: tv_actions.h:128
#define ACTION_3DSIDEBYSIDEDISCARD
Definition: tv_actions.h:127
StereoscopicMode
@ kStereoscopicModeAuto
@ kStereoscopicModeTopAndBottomDiscard
@ kStereoscopicModeSideBySideDiscard
@ kStereoscopicModeIgnore3D