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 
8 inline bool IsActionable(const QString& Action, const QStringList& Actions)
9 {
10  return std::find(Actions.cbegin(), Actions.cend(), Action) != Actions.cend();
11 }
12 
13 inline 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 {
23  return kStereoscopicModeAuto;
24 }
25 
26 #endif
IsActionable
bool IsActionable(const QString &Action, const QStringList &Actions)
Definition: mythtvactionutils.h:8
ACTION_3DIGNORE
#define ACTION_3DIGNORE
Definition: tv_actions.h:126
Action
An action (for this plugin) consists of a description, and a set of key sequences.
Definition: action.h:40
ACTION_3DTOPANDBOTTOMDISCARD
#define ACTION_3DTOPANDBOTTOMDISCARD
Definition: tv_actions.h:128
videoouttypes.h
tv_actions.h
kStereoscopicModeIgnore3D
@ kStereoscopicModeIgnore3D
Definition: videoouttypes.h:137
kStereoscopicModeTopAndBottomDiscard
@ kStereoscopicModeTopAndBottomDiscard
Definition: videoouttypes.h:139
kStereoscopicModeAuto
@ kStereoscopicModeAuto
Definition: videoouttypes.h:136
StereoscopicMode
StereoscopicMode
Definition: videoouttypes.h:134
ACTION_3DSIDEBYSIDEDISCARD
#define ACTION_3DSIDEBYSIDEDISCARD
Definition: tv_actions.h:127
ActionToStereoscopic
StereoscopicMode ActionToStereoscopic(const QString &Action)
Definition: mythtvactionutils.h:18
kStereoscopicModeSideBySideDiscard
@ kStereoscopicModeSideBySideDiscard
Definition: videoouttypes.h:138
find
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)
Definition: dvbstreamhandler.cpp:363