MythTV  master
mythtv-setup/commandlineparser.cpp
Go to the documentation of this file.
1 #include <QString>
2 
3 #include "mythcorecontext.h"
4 #include "commandlineparser.h"
5 
9 
11 {
12  return "Mythtv-setup is the setup application for the backend server. It is \n"
13  "used to configure the backend, and manage tuner cards and storage. \n"
14  "Most settings will require a restart of the backend before they take \n"
15  "effect.";
16 }
17 
19 {
20  addHelp();
22  addVersion();
23  addWindowed();
24  addMouse();
25  addGeometry();
26  addDisplay();
27  addLogging();
28  addPlatform();
29 
30  add("--expert", "expert", false, "", "Expert mode.");
31  add("--scan-list", "scanlist", false, "", "no help");
32  add("--scan-save-only", "savescan", false, "", "no help");
33  add("--scan-non-interactive", "scannoninteractive", false, "", "no help");
34 
35  add("--freq-std", "freqstd", "atsc", "",
36  "Specify the frequency standard to be used with command "
37  "line channel scanner")
38  ->SetParentOf("modulation")
39  ->SetParentOf("region");
40  add("--modulation", "modulation", "vsb8", "",
41  "Specify the frequency modulation to be used with command "
42  "line channel scanner");
43  add("--region", "region", "us", "",
44  "Specify the region for the frequency standard to be used with command "
45  "line channel scanner");
46 
47  add("--input-name", "inputname", "", "",
48  "Specify which input to scan for, if specified card "
49  "supports multiple.");
50  add("--FTAonly", "ftaonly", false, "", "Only import 'Free To Air' channels.");
51  add("--add-full-ts", "addfullts", false, "",
52  "Create addition Transport Stream channels, "
53  "which allow recording of the full, unaltered, transport stream.");
54  add("--service-type", "servicetype", "all", "",
55  "To be used with channel scanning or importing, specify "
56  "the type of services to import. Select from the following, "
57  "multiple can be added with '+':\n"
58  " all, tv, radio");
59 
60  add("--scan", "scan", 0U, "",
61  "Run the command line channel scanner on a specified card ID.")
62  ->SetParentOf("freqstd")
63  ->SetParentOf("inputname")
64  ->SetParentOf("ftaonly")
65  ->SetParentOf("servicetype")
66  ->SetParentOf("addfullts")
67  ->SetBlocks("importscan");
68 
69 
70  add("--scan-import", "importscan", 0U, "",
71  "Import an existing scan from the database. Use --scan-list "
72  "to enumerate scans available for import.")
73  ->SetParentOf("ftaonly")
74  ->SetParentOf("servicetype");
75 }
MythCommandLineParser::addDisplay
void addDisplay(void)
Canned argument definition for -display.
Definition: mythcommandlineparser.cpp:2482
MythCommandLineParser::addGeometry
void addGeometry(void)
Canned argument definition for –geometry.
Definition: mythcommandlineparser.cpp:2368
commandlineparser.h
MythCommandLineParser
Parent class for defining application command line parsers.
Definition: mythcommandlineparser.h:116
MythCommandLineParser::addPlatform
void addPlatform(void)
Pass through the platform argument to Qt for GUI applications.
Definition: mythcommandlineparser.cpp:2493
MYTH_APPNAME_MYTHTV_SETUP
#define MYTH_APPNAME_MYTHTV_SETUP
Definition: mythcorecontext.h:22
MythCommandLineParser::addVersion
void addVersion(void)
Canned argument definition for –version.
Definition: mythcommandlineparser.cpp:2288
MythCommandLineParser::addWindowed
void addWindowed(void)
Canned argument definition for –windowed and -no-windowed.
Definition: mythcommandlineparser.cpp:2298
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:2385
CommandLineArg::SetParentOf
CommandLineArg * SetParentOf(const QString &opt)
Set argument as parent of given child.
Definition: mythcommandlineparser.cpp:556
MythTVSetupCommandLineParser::GetHelpHeader
QString GetHelpHeader(void) const override
Definition: mythtv-setup/commandlineparser.cpp:10
MythCommandLineParser::addMouse
void addMouse(void)
Canned argument definition for –mouse-cursor and –no-mouse-cursor.
Definition: mythcommandlineparser.cpp:2313
MythTVSetupCommandLineParser::MythTVSetupCommandLineParser
MythTVSetupCommandLineParser()
Definition: mythtv-setup/commandlineparser.cpp:6
CommandLineArg::SetBlocks
CommandLineArg * SetBlocks(const QString &opt)
Set argument as incompatible with given option.
Definition: mythcommandlineparser.cpp:683
MythCommandLineParser::add
CommandLineArg * add(const QString &arg, const QString &name, bool def, QString help, QString longhelp)
Definition: mythcommandlineparser.h:145
mythcorecontext.h
MythCommandLineParser::addHelp
void addHelp(void)
Canned argument definition for –help.
Definition: mythcommandlineparser.cpp:2275
MythCommandLineParser::addSettingsOverride
void addSettingsOverride(void)
Canned argument definition for –override-setting and –override-settings-file.
Definition: mythcommandlineparser.cpp:2339
MythTVSetupCommandLineParser::LoadArguments
void LoadArguments(void) override
Definition: mythtv-setup/commandlineparser.cpp:18