MythTV  master
mythfrontend_commandlineparser.cpp
Go to the documentation of this file.
1 #include <QString>
2 
5 
9 
11 {
12  addHelp();
13  addVersion();
14  addWindowed();
15  addMouse();
17  addGeometry();
18  addDisplay();
19  addUPnP();
20  addLogging();
21  addPlatform();
22 
23  add(QStringList{"-r", "--reset"}, "reset", false,
24  "Resets appearance settings and language.", "");
25  add(QStringList{"-p", "--prompt"}, "prompt", false,
26  "Always prompt for backend selection.", "");
27  add(QStringList{"-d", "--disable-autodiscovery"},
28  "noautodiscovery", false,
29  "Prevent frontend from using UPnP autodiscovery.", "");
30 
31  add("--jumppoint", "jumppoint", "",
32  "Start the frontend at specified jump point.", "")
33  ->SetGroup("Startup Behavior");
34  add("--runplugin", "runplugin", "",
35  "Start the frontend within specified plugin.", "")
36  ->SetGroup("Startup Behavior")
37  ->SetBlocks("jumppoint");
38 
39  add(QStringList{"-G", "--get-setting"},
40  "getsetting", "", "", "")
41  ->SetRemoved("Use the Services API instead.", "0.25");
42  add(QStringList{"-u", "--upgrade-schema"},
43  "upgradeschema", "", "", "")
44  ->SetRemoved("The frontend is no longer allowed to update\n"
45  " the primary database schema. Use mythtv-setup\n"
46  " or restart your primary backend to have it\n"
47  " perform the task automatically.", "0.25");
48 
49  add(QStringList{"-vrr", "--vrr"}, "vrr", 0U,
50  "Try to enable (1) or disable (0) variable refresh rate (FreeSync or GSync)","");
51 }
52 
54 {
55  return "MythFrontend is the primary playback application for MythTV. It \n"
56  "is used for playback of scheduled and live recordings, and management \n"
57  "of recording rules.";
58 }
MythCommandLineParser::addDisplay
void addDisplay(void)
Canned argument definition for -display.
Definition: mythcommandlineparser.cpp:2736
MythCommandLineParser::addGeometry
void addGeometry(void)
Canned argument definition for –geometry.
Definition: mythcommandlineparser.cpp:2614
MythFrontendCommandLineParser::LoadArguments
void LoadArguments(void) override
Definition: mythfrontend_commandlineparser.cpp:10
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:2747
MythCommandLineParser::addVersion
void addVersion(void)
Canned argument definition for –version.
Definition: mythcommandlineparser.cpp:2534
MythFrontendCommandLineParser::GetHelpHeader
QString GetHelpHeader(void) const override
Definition: mythfrontend_commandlineparser.cpp:53
MythCommandLineParser::addWindowed
void addWindowed(void)
Canned argument definition for –windowed and -no-windowed.
Definition: mythcommandlineparser.cpp:2544
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
MythCommandLineParser::addMouse
void addMouse(void)
Canned argument definition for –mouse-cursor and –no-mouse-cursor.
Definition: mythcommandlineparser.cpp:2559
MythFrontendCommandLineParser::MythFrontendCommandLineParser
MythFrontendCommandLineParser()
Definition: mythfrontend_commandlineparser.cpp:6
CommandLineArg::SetBlocks
CommandLineArg * SetBlocks(const QString &opt)
Set argument as incompatible with given option.
Definition: mythcommandlineparser.cpp:782
MYTH_APPNAME_MYTHFRONTEND
static constexpr const char * MYTH_APPNAME_MYTHFRONTEND
Definition: mythcorecontext.h:21
mythcorecontext.h
MythCommandLineParser::addHelp
void addHelp(void)
Canned argument definition for –help.
Definition: mythcommandlineparser.cpp:2521
mythfrontend_commandlineparser.h
CommandLineArg::SetGroup
CommandLineArg * SetGroup(const QString &group)
Definition: mythcommandlineparser.h:30
MythCommandLineParser::addSettingsOverride
void addSettingsOverride(void)
Canned argument definition for –override-setting and –override-settings-file.
Definition: mythcommandlineparser.cpp:2585
MythCommandLineParser::addUPnP
void addUPnP(void)
Canned argument definition for –noupnp.
Definition: mythcommandlineparser.cpp:2623