MythTV  master
mythfrontend/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  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 
51 {
52  return "MythFrontend is the primary playback application for MythTV. It \n"
53  "is used for playback of scheduled and live recordings, and management \n"
54  "of recording rules.";
55 }
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
MythFrontendCommandLineParser::LoadArguments
void LoadArguments(void) override
Definition: mythfrontend/commandlineparser.cpp:10
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
MythCommandLineParser::addVersion
void addVersion(void)
Canned argument definition for –version.
Definition: mythcommandlineparser.cpp:2288
MythFrontendCommandLineParser::GetHelpHeader
QString GetHelpHeader(void) const override
Definition: mythfrontend/commandlineparser.cpp:50
MYTH_APPNAME_MYTHFRONTEND
#define MYTH_APPNAME_MYTHFRONTEND
Definition: mythcorecontext.h:21
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
MythCommandLineParser::addMouse
void addMouse(void)
Canned argument definition for –mouse-cursor and –no-mouse-cursor.
Definition: mythcommandlineparser.cpp:2313
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: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
CommandLineArg::SetGroup
CommandLineArg * SetGroup(const QString &group)
Definition: mythcommandlineparser.h:29
MythCommandLineParser::addSettingsOverride
void addSettingsOverride(void)
Canned argument definition for –override-setting and –override-settings-file.
Definition: mythcommandlineparser.cpp:2339
MythCommandLineParser::addUPnP
void addUPnP(void)
Canned argument definition for –noupnp.
Definition: mythcommandlineparser.cpp:2377