MythTV  master
Public Member Functions | List of all members
MythShutdownCommandLineParser Class Reference

#include <commandlineparser.h>

Inheritance diagram for MythShutdownCommandLineParser:
Inheritance graph
[legend]
Collaboration diagram for MythShutdownCommandLineParser:
Collaboration graph
[legend]

Public Member Functions

 MythShutdownCommandLineParser ()
 
void LoadArguments (void) override
 
- Public Member Functions inherited from MythCommandLineParser
 MythCommandLineParser (QString)
 Default constructor for MythCommandLineArg class. More...
 
 ~MythCommandLineParser ()
 
void PrintHelp (void) const
 Print command line option help. More...
 
QString GetHelpString (void) const
 Generate command line option help text. More...
 
virtual QString GetHelpHeader (void) const
 
virtual bool Parse (int argc, const char *const *argv)
 Loop through argv and populate arguments with values. More...
 
CommandLineArgadd (QString arg, QString name, bool def, QString help, QString longhelp)
 
CommandLineArgadd (QString arg, QString name, int def, QString help, QString longhelp)
 
CommandLineArgadd (QString arg, QString name, uint def, QString help, QString longhelp)
 
CommandLineArgadd (QString arg, QString name, long long def, QString help, QString longhelp)
 
CommandLineArgadd (QString arg, QString name, double def, QString help, QString longhelp)
 
CommandLineArgadd (QString arg, QString name, const char *def, QString help, QString longhelp)
 
CommandLineArgadd (QString arg, QString name, QString def, QString help, QString longhelp)
 
CommandLineArgadd (QString arg, QString name, QSize def, QString help, QString longhelp)
 
CommandLineArgadd (QString arg, QString name, QDateTime def, QString help, QString longhelp)
 
CommandLineArgadd (QString arg, QString name, QVariant::Type type, QString help, QString longhelp)
 
CommandLineArgadd (QString arg, QString name, QVariant::Type type, QVariant def, QString help, QString longhelp)
 
CommandLineArgadd (QStringList arglist, QString name, bool def, QString help, QString longhelp)
 
CommandLineArgadd (QStringList arglist, QString name, int def, QString help, QString longhelp)
 
CommandLineArgadd (QStringList arglist, QString name, uint def, QString help, QString longhelp)
 
CommandLineArgadd (QStringList arglist, QString name, long long def, QString help, QString longhelp)
 
CommandLineArgadd (QStringList arglist, QString name, double def, QString help, QString longhelp)
 
CommandLineArgadd (QStringList arglist, QString name, const char *def, QString help, QString longhelp)
 
CommandLineArgadd (QStringList arglist, QString name, QString def, QString help, QString longhelp)
 
CommandLineArgadd (QStringList arglist, QString name, QSize def, QString help, QString longhelp)
 
CommandLineArgadd (QStringList arglist, QString name, QDateTime def, QString help, QString longhelp)
 
CommandLineArgadd (QStringList arglist, QString name, QVariant::Type type, QString help, QString longhelp)
 
CommandLineArgadd (QStringList arglist, const QString &name, QVariant::Type type, QVariant def, QString help, QString longhelp)
 Add a new command line argument. More...
 
QVariant operator[] (const QString &name)
 Returned stored QVariant for given argument, or default value if not used. More...
 
QStringList GetArgs (void) const
 Return list of additional values provided on the command line independent of any keyword. More...
 
QMap< QString, QString > GetExtra (void) const
 Return map of additional key/value pairs provided on the command line independent of any registered argument. More...
 
QString GetPassthrough (void) const
 Return any text supplied on the command line after a bare '–'. More...
 
QMap< QString, QString > GetSettingsOverride (void)
 Return map of key/value pairs provided to override database options. More...
 
QString GetLogFilePath (void)
 Helper utility for logging interface to pull path from –logpath. More...
 
int GetSyslogFacility (void)
 Helper utility for logging interface to return syslog facility. More...
 
LogLevel_t GetLogLevel (void)
 Helper utility for logging interface to filtering level. More...
 
QString GetAppName (void) const
 
bool toBool (const QString &key) const
 Returns stored QVariant as a boolean. More...
 
int toInt (const QString &key) const
 Returns stored QVariant as an integer, falling to default if not provided. More...
 
uint toUInt (const QString &key) const
 Returns stored QVariant as an unsigned integer, falling to default if not provided. More...
 
long long toLongLong (const QString &key) const
 Returns stored QVariant as a long integer, falling to default if not provided. More...
 
double toDouble (const QString &key) const
 Returns stored QVariant as double floating point value, falling to default if not provided. More...
 
QSize toSize (const QString &key) const
 Returns stored QVariant as a QSize value, falling to default if not provided. More...
 
QString toString (const QString &key) const
 Returns stored QVariant as a QString, falling to default if not provided. More...
 
QStringList toStringList (const QString &key, const QString &sep="") const
 Returns stored QVariant as a QStringList, falling to default if not provided. More...
 
QMap< QString, QString > toMap (const QString &key) const
 Returns stored QVariant as a QMap, falling to default if not provided. More...
 
QDateTime toDateTime (const QString &key) const
 Returns stored QVariant as a QDateTime, falling to default if not provided. More...
 
bool SetValue (const QString &key, const QVariant &value)
 Set a new stored value for an existing argument definition, or spawn a new definition store value in. More...
 
int ConfigureLogging (const QString &mask="general", unsigned int progress=0)
 Read in logging options and initialize the logging interface. More...
 
void ApplySettingsOverride (void)
 Apply all overrides to the global context. More...
 
int Daemonize (void)
 Fork application into background, and detatch from terminal. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from MythCommandLineParser
static void PrintVersion (void)
 Print application version information. More...
 
- Protected Member Functions inherited from MythCommandLineParser
void allowArgs (bool allow=true)
 Specify that parser should allow and collect values provided independent of any keyword. More...
 
void allowExtras (bool allow=true)
 Specify that parser should allow and collect additional key/value pairs not explicitly defined for processing. More...
 
void allowPassthrough (bool allow=true)
 Specify that parser should allow a bare '–', and collect all subsequent text as a QString. More...
 
void addHelp (void)
 Canned argument definition for –help. More...
 
void addVersion (void)
 Canned argument definition for –version. More...
 
void addWindowed (void)
 Canned argument definition for –windowed and -no-windowed. More...
 
void addMouse (void)
 Canned argument definition for –mouse-cursor and –no-mouse-cursor. More...
 
void addDaemon (void)
 Canned argument definition for –daemon. More...
 
void addSettingsOverride (void)
 Canned argument definition for –override-setting and –override-settings-file. More...
 
void addRecording (void)
 Canned argument definition for –chanid and –starttime. More...
 
void addGeometry (void)
 Canned argument definition for –geometry. More...
 
void addDisplay (void)
 Canned argument definition for -display. More...
 
void addUPnP (void)
 Canned argument definition for –noupnp. More...
 
void addLogging (const QString &defaultVerbosity="general", LogLevel_t defaultLogLevel=LOG_INFO)
 Canned argument definition for all logging options, including –verbose, –logpath, –quiet, –loglevel, –syslog, and –enable-dblog. More...
 
void addPIDFile (void)
 Canned argument definition for –pidfile. More...
 
void addJob (void)
 Canned argument definition for –jobid. More...
 
void addInFile (bool addOutFile=false)
 Canned argument definition for –infile and –outfile. More...
 

Detailed Description

Definition at line 6 of file mythshutdown/commandlineparser.h.

Constructor & Destructor Documentation

◆ MythShutdownCommandLineParser()

MythShutdownCommandLineParser::MythShutdownCommandLineParser ( )

Definition at line 6 of file mythshutdown/commandlineparser.cpp.

Member Function Documentation

◆ LoadArguments()

void MythShutdownCommandLineParser::LoadArguments ( void  )
overridevirtual

Reimplemented from MythCommandLineParser.

Definition at line 10 of file mythshutdown/commandlineparser.cpp.

Referenced by MythShutdownCommandLineParser().


The documentation for this class was generated from the following files: