MythTV
master
mythtv
programs
mythfrontend
mythfrontend_commandlineparser.cpp
Go to the documentation of this file.
1
#include <QString>
2
3
#include "
libmythbase/mythcorecontext.h
"
4
#include "
mythfrontend_commandlineparser.h
"
5
6
MythFrontendCommandLineParser::MythFrontendCommandLineParser
() :
7
MythCommandLineParser
(
MYTH_APPNAME_MYTHFRONTEND
)
8
{
MythFrontendCommandLineParser::LoadArguments
(); }
9
10
void
MythFrontendCommandLineParser::LoadArguments
(
void
)
11
{
12
addHelp
();
13
addVersion
();
14
addWindowed
();
15
addMouse
();
16
addSettingsOverride
();
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{
"-vrr"
,
"--vrr"
},
"vrr"
, 0U,
40
"Try to enable (1) or disable (0) variable refresh rate (FreeSync or GSync)"
,
""
);
41
}
42
43
QString
MythFrontendCommandLineParser::GetHelpHeader
(
void
)
const
44
{
45
return
"MythFrontend is the primary playback application for MythTV. It \n"
46
"is used for playback of scheduled and live recordings, and management \n"
47
"of recording rules."
;
48
}
MythCommandLineParser::addDisplay
void addDisplay(void)
Canned argument definition for -display.
Definition:
mythcommandlineparser.cpp:2757
MythCommandLineParser::addGeometry
void addGeometry(void)
Canned argument definition for –geometry.
Definition:
mythcommandlineparser.cpp:2632
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:2768
MythCommandLineParser::addVersion
void addVersion(void)
Canned argument definition for –version.
Definition:
mythcommandlineparser.cpp:2552
MythFrontendCommandLineParser::GetHelpHeader
QString GetHelpHeader(void) const override
Definition:
mythfrontend_commandlineparser.cpp:43
MythCommandLineParser::addWindowed
void addWindowed(void)
Canned argument definition for –windowed and -no-windowed.
Definition:
mythcommandlineparser.cpp:2562
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:2656
MythCommandLineParser::add
CommandLineArg * add(const QString &arg, const QString &name, bool def, QString help, QString longhelp)
Definition:
mythcommandlineparser.cpp:1770
MythCommandLineParser::addMouse
void addMouse(void)
Canned argument definition for –mouse-cursor and –no-mouse-cursor.
Definition:
mythcommandlineparser.cpp:2577
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:788
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:2539
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:2603
MythCommandLineParser::addUPnP
void addUPnP(void)
Canned argument definition for –noupnp.
Definition:
mythcommandlineparser.cpp:2641
Generated on Thu Feb 6 2025 03:17:24 for MythTV by
1.8.17