MythTV  master
mythpreviewgen_commandlineparser.cpp
Go to the documentation of this file.
1 #include <QString>
2 
5 
9 
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