MythTV
master
programs
mythpreviewgen
mythpreviewgen_commandlineparser.cpp
Go to the documentation of this file.
1
#include <QString>
2
3
#include "
libmythbase/mythcorecontext.h
"
4
#include "
mythpreviewgen_commandlineparser.h
"
5
6
MythPreviewGeneratorCommandLineParser::MythPreviewGeneratorCommandLineParser
() :
7
MythCommandLineParser
(
MYTH_APPNAME_MYTHPREVIEWGEN
)
8
{
MythPreviewGeneratorCommandLineParser::LoadArguments
(); }
9
10
void
MythPreviewGeneratorCommandLineParser::LoadArguments
(
void
)
11
{
12
addHelp
();
13
addVersion
();
14
addRecording
();
15
addLogging
();
16
17
add
(
"--seconds"
,
"seconds"
, 0LL,
"Number of seconds into video to take preview image."
,
""
);
18
add
(
"--frame"
,
"frame"
, 0LL,
"Number of frames into video to take preview image."
,
""
);
19
add
(
"--size"
,
"size"
, QSize(0,0),
"Dimensions of preview image."
,
""
);
20
add
(
"--infile"
,
"inputfile"
,
""
,
"Input video for preview generation."
,
""
);
21
add
(
"--outfile"
,
"outputfile"
,
""
,
"Optional output file for preview generation."
,
""
);
22
}
23
24
MythCommandLineParser
Parent class for defining application command line parsers.
Definition:
mythcommandlineparser.h:116
MythPreviewGeneratorCommandLineParser::MythPreviewGeneratorCommandLineParser
MythPreviewGeneratorCommandLineParser()
Definition:
mythpreviewgen_commandlineparser.cpp:6
MythCommandLineParser::addVersion
void addVersion(void)
Canned argument definition for –version.
Definition:
mythcommandlineparser.cpp:2534
MythPreviewGeneratorCommandLineParser::LoadArguments
void LoadArguments(void) override
Definition:
mythpreviewgen_commandlineparser.cpp:10
MythCommandLineParser::addRecording
void addRecording(void)
Canned argument definition for –chanid and –starttime.
Definition:
mythcommandlineparser.cpp:2601
MythCommandLineParser::addLogging
void addLogging(const QString &defaultVerbosity="general", LogLevel_t defaultLogLevel=LOG_INFO)
Canned argument definition for all logging options, including –verbose, –logpath, –quiet,...
Definition:
mythcommandlineparser.cpp:2638
MythCommandLineParser::add
CommandLineArg * add(const QString &arg, const QString &name, bool def, QString help, QString longhelp)
Definition:
mythcommandlineparser.cpp:1760
mythpreviewgen_commandlineparser.h
mythcorecontext.h
MythCommandLineParser::addHelp
void addHelp(void)
Canned argument definition for –help.
Definition:
mythcommandlineparser.cpp:2521
MYTH_APPNAME_MYTHPREVIEWGEN
static constexpr const char * MYTH_APPNAME_MYTHPREVIEWGEN
Definition:
mythcorecontext.h:26
Generated on Tue Apr 16 2024 03:18:47 for MythTV by
1.8.17