MythTV
master
mythtv
libs
libmythtv
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
18
inline
StereoscopicMode
ActionToStereoscopic
(
const
QString&
Action
)
19
{
20
if
(
ACTION_3DSIDEBYSIDEDISCARD
==
Action
)
return
kStereoscopicModeSideBySideDiscard
;
21
if
(
ACTION_3DTOPANDBOTTOMDISCARD
==
Action
)
return
kStereoscopicModeTopAndBottomDiscard
;
22
if
(
ACTION_3DIGNORE
==
Action
)
return
kStereoscopicModeIgnore3D
;
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
ACTION_3DSIDEBYSIDEDISCARD
#define ACTION_3DSIDEBYSIDEDISCARD
Definition:
tv_actions.h:127
ActionToStereoscopic
StereoscopicMode ActionToStereoscopic(const QString &Action)
Definition:
mythtvactionutils.h:18
kStereoscopicModeTopAndBottomDiscard
@ kStereoscopicModeTopAndBottomDiscard
Definition:
videoouttypes.h:139
kStereoscopicModeSideBySideDiscard
@ kStereoscopicModeSideBySideDiscard
Definition:
videoouttypes.h:138
StereoscopicMode
StereoscopicMode
Definition:
videoouttypes.h:134
kStereoscopicModeAuto
@ kStereoscopicModeAuto
Definition:
videoouttypes.h:136
kStereoscopicModeIgnore3D
@ kStereoscopicModeIgnore3D
Definition:
videoouttypes.h:137
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
Generated on Sat Jan 4 2025 03:16:42 for MythTV by
1.8.17