MythTV master
mythtvactionutils.h
Go to the documentation of this file.
1#ifndef MYTHTVACTIONUTILS_H
2#define MYTHTVACTIONUTILS_H
3
4// C++ headers
5#include <algorithm>
6
7// MythTV
8#include "tv_actions.h"
9#include "videoouttypes.h"
10
11inline bool IsActionable(const QString& Action, const QStringList& Actions)
12{
13 return Actions.contains(Action);
14}
15
16inline bool IsActionable(const QStringList& Action, const QStringList& Actions)
17{
18 return std::ranges::any_of(std::as_const(Action),
19 [&](const QString& A) { return Actions.contains(A); });
20}
21
23{
28}
29
30#endif
An action (for this plugin) consists of a description, and a set of key sequences.
Definition: action.h:41
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