| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
|
|
||
| using namespace std; | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcorecontext.h" | ||
| #include "commandlineparser.h" | ||
|
|
||
| MythCommFlagCommandLineParser::MythCommFlagCommandLineParser() : | ||
| MythCommandLineParser(MYTH_APPNAME_MYTHCOMMFLAG) | ||
| { LoadArguments(); } | ||
|
|
||
| void MythCommFlagCommandLineParser::LoadArguments(void) | ||
| { | ||
| addHelp(); | ||
| addSettingsOverride(); | ||
| addVersion(); | ||
| addVerbose(); | ||
| addJob(); | ||
| addRecording(); | ||
| addLogging(); | ||
|
|
||
| add(QStringList( QStringList() << "-f" << "--file" ), "file", "", | ||
| "Specify file to operate on.", ""); | ||
| add("--video", "video", "", "Rebuild the seek table for a video (non-recording) file.", ""); | ||
| add("--method", "commmethod", "", "Commercial flagging method[s] to employ:\n" | ||
| "off, blank, scene, blankscene, logo, all, " | ||
| "d2, d2_logo, d2_blank, d2_scene, d2_all", ""); | ||
| add("--outputmethod", "outputmethod", "", | ||
| "Format of output written to outputfile, essentials, full.", ""); | ||
| add("--gencutlist", "gencutlist", "Copy the commercial skip list to the cutlist.", ""); | ||
| add("--clearcutlist", "clearcutlist", "Clear the cutlist.", ""); | ||
| add("--clearskiplist", "clearskiplist", "Clear the commercial skip list.", ""); | ||
| add("--getcutlist", "getcutlist", "Display the current cutlist.", ""); | ||
| add("--getskiplist", "getskiplist", "Display the current commercial skip list.", ""); | ||
| add("--setcutlist", "setcutlist", "", "Set a new cutlist in the form:\n" | ||
| "#-#[,#-#]... (ie, 1-100,1520-3012,4091-5094)", ""); | ||
| add("--skipdb", "skipdb", "", "Intended for external 3rd party use."); | ||
| add("--queue", "queue", "Insert flagging job into the JobQueue, rather than " | ||
| "running flagging in the foreground.", ""); | ||
| add("--noprogress", "noprogress", "Don't print progress on stdout.", ""); | ||
| add("--rebuild", "rebuild", "Do not flag commercials, just rebuild the seektable.", ""); | ||
| add("--force", "force", "Force operation, even if program appears to be in use.", ""); | ||
| add("--dontwritetodb", "dontwritedb", "", "Intended for external 3rd party use."); | ||
| add("--onlydumpdb", "dumpdb", "", "?"); | ||
| add("--outputfile", "outputfile", "", "File to write commercial flagging output [debug].", ""); | ||
| } | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcommandlineparser.h" | ||
|
|
||
| class MythCommFlagCommandLineParser : public MythCommandLineParser | ||
| { | ||
| public: | ||
| MythCommFlagCommandLineParser(); | ||
| void LoadArguments(void); | ||
| protected: | ||
| // QString GetHelpHeader(void) const; | ||
| }; | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,156 @@ | ||
|
|
||
| using namespace std; | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcorecontext.h" | ||
| #include "commandlineparser.h" | ||
|
|
||
| MythFillDatabaseCommandLineParser::MythFillDatabaseCommandLineParser() : | ||
| MythCommandLineParser(MYTH_APPNAME_MYTHFILLDATABASE) | ||
| { LoadArguments(); } | ||
|
|
||
| void MythFillDatabaseCommandLineParser::LoadArguments(void) | ||
| { | ||
| addHelp(); | ||
| addVersion(); | ||
| addVerbose(); | ||
| addLogging(); | ||
|
|
||
| add("--manual", "manual", "Run interactive configuration", | ||
| "Manual mode will interactively ask you questions about " | ||
| "each channel as it is processed, to configure for " | ||
| "future use." | ||
| "mutually exclusive with --update"); | ||
| add("--update", "update", "Run non-destructive updates", | ||
| "Run non-destructive updates on the database for " | ||
| "users in xmltv zones that do not provide channel " | ||
| "data. Stops the addition of new channels and the " | ||
| "changing of channel icons." | ||
| "mutually exclusive with --manual"); | ||
| add("--preset", "preset", "Use channel preset values instead of numbers", | ||
| "For use with assigning preset numbers for each " | ||
| "channel. Useful for non-US countries where people " | ||
| "are used to assigning a sequenced number for each " | ||
| "channel:\n1->TVE1(S41), 2->La 2(SE18), 3->TV(21)..."); | ||
| add("--file", "file", "Bypass grabbers and define sourceid and file", | ||
| "Directly define the sourceid and XMLTV file to " | ||
| "import. Must be used in combination with:" | ||
| " --sourceid --xmlfile"); | ||
| add("--dd-file", "file", "Bypass grabber, and read SD data from file", | ||
| "Directly define the data needed to import a local " | ||
| "DataDirect download. Must be used in combination " | ||
| "with: \n" | ||
| " --sourceid --lineupid --offset --xmlfile"); | ||
| add("--sourceid", "sourceid", 0, "Operate on single source", | ||
| "Limit mythfilldatabase to only operate on the " | ||
| "specified channel source. This option is required " | ||
| "when using --file, --dd-file, or --xawchannels."); | ||
| add("--offset", "offset", 0, "Day offset of input xml file" | ||
| "Specify how many days offset from today is the " | ||
| "information in the given XML file. This option is " | ||
| "required when using --dd-file."); | ||
| add("--lineupid", "lineupid", 0, "DataDirect lineup of input xml file" | ||
| "Specify the DataDirect lineup that corresponds to " | ||
| "the information in the given XML file. This option " | ||
| "is required when using --dd-file."); | ||
| add("--xmlfile", "xmlfile", "", "XML file to import manually", | ||
| "Specify an XML guide data file to import directly " | ||
| "rather than pull data through the specified grabber.\n" | ||
| "This option is required when using --file or --dd-file."); | ||
| add("--xawchannels", "xawchannels", "Read channels from xawtvrc file", | ||
| "Import channels from an xawtvrc file.\nThis option " | ||
| "requires --sourceid and --xawtvrcfile."); | ||
| add("--xawtvrcfile", "xawtvrcfile", "", "xawtvrc file to import channels from", | ||
| "Xawtvrc file containing channels to be imported.\n" | ||
| "This option is required when using --xawchannels."); | ||
| add("--do-channel-updates", "dochannelupdates", "update channels using datadirect", | ||
| "When using DataDirect, ask mythfilldatabase to " | ||
| "overwrite channel names, frequencies, etc. with " | ||
| "values available from the data source. This will " | ||
| "override custom channel names, which is why it " | ||
| "is disabled by default."); | ||
| add("--remove-new-channels", "removechannels", | ||
| "disable new channels on datadirect web interface", | ||
| "When using DataDirect, ask mythfilldatabase to " | ||
| "mark any new channels as disabled on the remote " | ||
| "lineup. Channels can be manually enabled on the " | ||
| "website at a later time, and incorporated into " | ||
| "MythTV by running mythfilldatabase without this " | ||
| "option. New digital channels cannot be directly " | ||
| "imported and thus are disabled automatically."); | ||
| add("--do-not-filter-new-channels", "nofilterchannels", | ||
| "don't filter ATSC channels for addition", | ||
| "Normally, MythTV tries to avoid adding ATSC " | ||
| "channels to NTSC channel lineups. This option " | ||
| "restores the behavior of adding every channel in " | ||
| "the downloaded channel lineup to MythTV's lineup, " | ||
| "in case MythTV's smarts fail you."); | ||
| add("--graboptions", "graboptions", "", "", | ||
| "Manually define options to pass to the data grabber. " | ||
| "Do NOT use this option unless you know what you are " | ||
| "doing. Mythfilldatabase will automatically use the " | ||
| "correct options for xmltv compliant grabbers."); | ||
| add("--cardtype", "cardtype", "", "", "No information."); // need documentation for this one | ||
| add("--max-days", "maxdays", 0, "force number of days to update", | ||
| "Force the maximum number of days, counting today, " | ||
| "for the guide data grabber to check for future " | ||
| "listings."); | ||
| add("--refresh-today", "refreshtoday", "refresh today's listings", | ||
| "This option is only valid for selected grabbers.\n" | ||
| "Force a refresh for today's guide data.\nThis can be used " | ||
| "in combination with other --refresh-<n> options.\n" | ||
| "If being used with datadirect, this option should not be " | ||
| "used, rather use --dd-grab-all to pull all listings each time."); | ||
| add("--dont-refresh-tomorrow", "dontrefreshtomorrow", | ||
| "don't refresh tomorrow's listings", | ||
| "This option is only valid for selected grabbers.\n" | ||
| "Prevent mythfilldatabase from pulling information for " | ||
| "tomorrow's listings. Data for tomorrow is always pulled " | ||
| "unless specifically specified otherwise.\n" | ||
| "If being used with datadirect, this option should not be " | ||
| "used, rather use --dd-grab-all to pull all listings each time."); | ||
| add("--refresh-second", "refreshsecond", "refresh listings two days from now", | ||
| "This option is only valid for selected grabbers.\n" | ||
| "Force a refresh for guide data two days from now. This can " | ||
| "be used in combination with other --refresh-<n> options.\n" | ||
| "If being used with datadirect, this option should not be " | ||
| "used, rather use --dd-grab-all to pull all listings each time."); | ||
| add("--refresh-all", "refreshall", "refresh listings on all days", | ||
| "This option is only valid for selected grabbers.\n" | ||
| "This option forces a refresh of all guide data, but does so " | ||
| "with fourteen downloads of one day each.\n" | ||
| "If being used with datadirect, this option should not be " | ||
| "used, rather use --dd-grab-all to pull all listings each time."); | ||
| // TODO: I should be converted to a qstringlist and used in place of | ||
| // the other refresh options | ||
| add("--refresh-day", "refreshday", 0U, "refresh specific day's listings", | ||
| "This option is only valid for selected grabbers.\n" | ||
| "Force a refresh for guide data on a specific day. This can " | ||
| "be used in combination with other --refresh-<n> options.\n" | ||
| "If being used with datadirect, this option should not be " | ||
| "used, rather use --dd-grab-all to pull all listings each time."); | ||
| add("--dont-refresh-tba", "dontrefreshtba", | ||
| "don't refresh \"To be announced\" programs", | ||
| "This option is only valid for selected grabbers.\n" | ||
| "Prevent mythfilldatabase from automatically refreshing any " | ||
| "programs marked as \"To be announced\".\n" | ||
| "If being used with datadirect, this option should not be " | ||
| "used, rather use --dd-grab-all to pull all listings each time."); | ||
| add("--dd-grab-all", "ddgraball", "refresh full data using DataDirect", | ||
| "This option is only valid for selected grabbers (DataDirect).\n" | ||
| "This option is the preferred way of updating guide data from " | ||
| "DataDirect, and pulls all fourteen days of guide data at once."); | ||
| add("--only-update-channels", "onlychannels", "only update channel lineup", | ||
| "Download as little listings data as possible to update the " | ||
| "channel lineup."); | ||
| add("--no-mark-repeats", "markrepeats", true, "do not mark repeats", ""); | ||
| add("--export-icon-map", "exporticonmap", "iconmap.xml", | ||
| "export icon map to file", ""); | ||
| add("--import-icon-map", "importiconmap", "iconmap.xml", | ||
| "import icon map to file", ""); | ||
| add("--update-icon-map", "updateiconmap", "updates icon map icons", ""); | ||
| add("--reset-icon-map", "reseticonmap", "", "resets icon maps", | ||
| "Reset all icon maps. If given 'all' as an optional value, reset " | ||
| "channel icons as well."); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcommandlineparser.h" | ||
|
|
||
| class MythFillDatabaseCommandLineParser : public MythCommandLineParser | ||
| { | ||
| public: | ||
| MythFillDatabaseCommandLineParser(); | ||
| void LoadArguments(void); | ||
| protected: | ||
| // QString GetHelpHeader(void) const; | ||
| }; | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
|
|
||
| using namespace std; | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcorecontext.h" | ||
| #include "commandlineparser.h" | ||
|
|
||
| MythFrontendCommandLineParser::MythFrontendCommandLineParser() : | ||
| MythCommandLineParser(MYTH_APPNAME_MYTHFRONTEND) | ||
| { LoadArguments(); } | ||
|
|
||
| void MythFrontendCommandLineParser::LoadArguments(void) | ||
| { | ||
| addHelp(); | ||
| addVersion(); | ||
| addWindowed(false); | ||
| addSettingsOverride(); | ||
| addVerbose(); | ||
| addGeometry(); | ||
| addDisplay(); | ||
| addUPnP(); | ||
| addLogging(); | ||
|
|
||
| add(QStringList( QStringList() << "-r" << "--reset" ), "reset", | ||
| "Resets appearance, settings, and language.", ""); | ||
| add(QStringList( QStringList() << "-p" << "--prompt" ), "prompt", | ||
| "Always prompt for backend selection.", ""); | ||
| add(QStringList( QStringList() << "-d" << "--disable-autodiscovery" ), | ||
| "noautodiscovery", "Prevent frontend from using UPnP autodiscovery.", ""); | ||
| } | ||
|
|
||
| QString MythFrontendCommandLineParser::GetHelpHeader(void) const | ||
| { | ||
| return "MythFrontend is the primary playback application for MythTV. It \n" | ||
| "is used for playback of scheduled and live recordings, and management \n" | ||
| "of recording rules."; | ||
| } | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcommandlineparser.h" | ||
|
|
||
| class MythFrontendCommandLineParser : public MythCommandLineParser | ||
| { | ||
| public: | ||
| MythFrontendCommandLineParser(); | ||
| void LoadArguments(void); | ||
| protected: | ||
| QString GetHelpHeader(void) const; | ||
| }; | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
|
|
||
| using namespace std; | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcorecontext.h" | ||
| #include "commandlineparser.h" | ||
|
|
||
| MythJobQueueCommandLineParser::MythJobQueueCommandLineParser() : | ||
| MythCommandLineParser(MYTH_APPNAME_MYTHJOBQUEUE) | ||
| { LoadArguments(); } | ||
|
|
||
| QString MythJobQueueCommandLineParser::GetHelpHeader(void) const | ||
| { | ||
| return "MythJobqueue is daemon implementing the job queue. It is intended \n" | ||
| "for use as additional processing power without requiring a full backend."; | ||
| } | ||
|
|
||
| void MythJobQueueCommandLineParser::LoadArguments(void) | ||
| { | ||
| addHelp(); | ||
| addSettingsOverride(); | ||
| addVersion(); | ||
| addVerbose(); | ||
| addLogging(); | ||
| addPIDFile(); | ||
| addDaemon(); | ||
| } | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcommandlineparser.h" | ||
|
|
||
| class MythJobQueueCommandLineParser : public MythCommandLineParser | ||
| { | ||
| public: | ||
| MythJobQueueCommandLineParser(); | ||
| void LoadArguments(void); | ||
| protected: | ||
| QString GetHelpHeader(void) const; | ||
| }; | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
|
|
||
| using namespace std; | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcorecontext.h" | ||
| #include "commandlineparser.h" | ||
|
|
||
| MythLCDServerCommandLineParser::MythLCDServerCommandLineParser() : | ||
| MythCommandLineParser(MYTH_APPNAME_MYTHLCDSERVER) | ||
| { LoadArguments(); } | ||
|
|
||
| void MythLCDServerCommandLineParser::LoadArguments(void) | ||
| { | ||
| addHelp(); | ||
| addVersion(); | ||
| addVerbose(); | ||
| addDaemon(); | ||
| addLogging(); | ||
| //addPIDFile(); | ||
|
|
||
| add(QStringList( QStringList() << "-p" << "--port" ), "port", 6545, "listen port", | ||
| "This is the port MythLCDServer will listen on for events."); | ||
| add(QStringList( QStringList() << "-m" << "--startupmessage" ), "message", "", | ||
| "Message to display on startup.", ""); | ||
| add(QStringList( QStringList() << "-t" << "--messagetime"), "messagetime", 30, | ||
| "Message display duration (in seconds)", ""); | ||
| add(QStringList( QStringList() << "-x" << "--debuglevel" ), "debug", 0, | ||
| "debug verbosity", "Control debugging verbosity, values from 0-10"); | ||
| } | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcommandlineparser.h" | ||
|
|
||
| class MythLCDServerCommandLineParser : public MythCommandLineParser | ||
| { | ||
| public: | ||
| MythLCDServerCommandLineParser(); | ||
| void LoadArguments(void); | ||
| protected: | ||
| // QString GetHelpHeader(void) const; | ||
| }; | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
|
|
||
| using namespace std; | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcorecontext.h" | ||
| #include "commandlineparser.h" | ||
|
|
||
| MythMediaServerCommandLineParser::MythMediaServerCommandLineParser() : | ||
| MythCommandLineParser(MYTH_APPNAME_MYTHMEDIASERVER) | ||
| { LoadArguments(); } | ||
|
|
||
| QString MythMediaServerCommandLineParser::GetHelpHeader(void) const | ||
| { | ||
| return "MythMediaServer is a daemon implementing the backend file server. \n" | ||
| "It is intended to allow access to remote file storage on machines \n" | ||
| "that do not have tuners, and as such cannot run a backend."; | ||
| } | ||
|
|
||
| void MythMediaServerCommandLineParser::LoadArguments(void) | ||
| { | ||
| addHelp(); | ||
| addVersion(); | ||
| addVerbose(); | ||
| addSettingsOverride(); | ||
| addPIDFile(); | ||
| addDaemon(); | ||
| addLogging(); | ||
| } | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcommandlineparser.h" | ||
|
|
||
| class MythMediaServerCommandLineParser : public MythCommandLineParser | ||
| { | ||
| public: | ||
| MythMediaServerCommandLineParser(); | ||
| void LoadArguments(void); | ||
| protected: | ||
| QString GetHelpHeader(void) const; | ||
| }; | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
|
|
||
| using namespace std; | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcorecontext.h" | ||
| #include "commandlineparser.h" | ||
|
|
||
| MythMessageCommandLineParser::MythMessageCommandLineParser() : | ||
| MythCommandLineParser(MYTH_APPNAME_MYTHMESSAGE) | ||
| { LoadArguments(); } | ||
|
|
||
| void MythMessageCommandLineParser::LoadArguments(void) | ||
| { | ||
| addHelp(); | ||
| addVersion(); | ||
| addVerbose(); | ||
| allowExtras(); | ||
|
|
||
| add("--udpport", "port", 6948, "(optional) UDP Port to send to", ""); | ||
| add("--bcastaddr", "addr", "127.0.0.1", | ||
| "(optional) IP address to send to", ""); | ||
| add("--print-template", "printtemplate", | ||
| "Print the template to be sent to the frontend", ""); | ||
| } | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcommandlineparser.h" | ||
|
|
||
| class MythMessageCommandLineParser : public MythCommandLineParser | ||
| { | ||
| public: | ||
| MythMessageCommandLineParser(); | ||
| void LoadArguments(void); | ||
| protected: | ||
| // QString GetHelpHeader(void) const; | ||
| }; | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
|
|
||
| using namespace std; | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcorecontext.h" | ||
| #include "commandlineparser.h" | ||
|
|
||
| MythPreviewGeneratorCommandLineParser::MythPreviewGeneratorCommandLineParser() : | ||
| MythCommandLineParser(MYTH_APPNAME_MYTHPREVIEWGEN) | ||
| { LoadArguments(); } | ||
|
|
||
| void MythPreviewGeneratorCommandLineParser::LoadArguments(void) | ||
| { | ||
| addHelp(); | ||
| addVersion(); | ||
| addVerbose(); | ||
| addRecording(); | ||
| addLogging(); | ||
|
|
||
| add("--seconds", "seconds", 0LL, "Number of seconds into video to take preview image.", ""); | ||
| add("--frame", "frame", 0LL, "Number of frames into video to take preview image.", ""); | ||
| add("--size", "size", QSize(0,0), "Dimensions of preview image.", ""); | ||
| add("--infile", "inputfile", "", "Input video for preview generation.", ""); | ||
| add("--outfile", "outputfile", "", "Optional output file for preview generation.", ""); | ||
| } | ||
|
|
||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcommandlineparser.h" | ||
|
|
||
| class MythPreviewGeneratorCommandLineParser : public MythCommandLineParser | ||
| { | ||
| public: | ||
| MythPreviewGeneratorCommandLineParser(); | ||
| void LoadArguments(void); | ||
| protected: | ||
| // QString GetHelpHeader(void) const; | ||
| }; | ||
|
|
||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
|
|
||
| using namespace std; | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcorecontext.h" | ||
| #include "commandlineparser.h" | ||
|
|
||
| MythShutdownCommandLineParser::MythShutdownCommandLineParser() : | ||
| MythCommandLineParser(MYTH_APPNAME_MYTHSHUTDOWN) | ||
| { LoadArguments(); } | ||
|
|
||
| void MythShutdownCommandLineParser::LoadArguments(void) | ||
| { | ||
| addHelp(); | ||
| addVersion(); | ||
| addVerbose(); | ||
| addLogging(); | ||
|
|
||
| add(QStringList( QStringList() << "-w" << "--setwakeup" ), "setwakeup", "", | ||
| "Set the wakeup time (yyyy-MM-ddThh:mm:ss)", ""); | ||
| add(QStringList( QStringList() << "-t" << "--setscheduledwakeup" ), "setschedwakeup", | ||
| "Set wakeup time to the next scheduled recording", ""); | ||
| add(QStringList( QStringList() << "-q" << "--shutdown" ), "shutdown", | ||
| "Apply wakeup time to nvram and shutdown.", ""); | ||
| add(QStringList( QStringList() << "-x" << "--safeshutdown" ), "safeshutdown", | ||
| "Check if shutdown is possible, and shutdown", ""); | ||
| add(QStringList( QStringList() << "-p" << "--startup" ), "startup", | ||
| "Check startup status", | ||
| "Check startup status\n" | ||
| " returns 0 - automatic startup\n" | ||
| " 1 - manual startup"); | ||
| add(QStringList( QStringList() << "-c" << "--check" ), "check", 1, | ||
| "Check whether shutdown is possible", | ||
| "Check whether shutdown is possible depending on input\n" | ||
| " input 0 - dont check recording status\n" | ||
| " 1 - do check recording status\n\n" | ||
| " returns 0 - ok to shut down\n" | ||
| " 1 - not ok, idle check reset"); | ||
| add(QStringList( QStringList() << "-l" << "--lock" ), "lock", | ||
| "disable shutdown", ""); | ||
| add(QStringList( QStringList() << "-u" << "--unlock" ), "unlock", | ||
| "enable shutdown", ""); | ||
| add(QStringList( QStringList() << "-s" << "--status" ), "status", 1, | ||
| "check current status", | ||
| "check current status depending on input\n" | ||
| " input 0 - dont check recording status\n" | ||
| " 1 - do check recording status\n\n" | ||
| " returns 0 - Idle\n" | ||
| " 1 - Transcoding\n" | ||
| " 2 - Commercial Detection\n" | ||
| " 4 - Grabbing EPG data\n" | ||
| " 8 - Recording (only valid if input=1)\n" | ||
| " 16 - Locked\n" | ||
| " 32 - Jobs running or pending\n" | ||
| " 64 - In daily wakeup/shutdown period\n" | ||
| " 128 - Less than 15 minutes to next wakeup period\n" | ||
| " 255 - Setup is running"); | ||
| } | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcommandlineparser.h" | ||
|
|
||
| class MythShutdownCommandLineParser : public MythCommandLineParser | ||
| { | ||
| public: | ||
| MythShutdownCommandLineParser(); | ||
| void LoadArguments(void); | ||
| protected: | ||
| // QString GetHelpHeader(void) const; | ||
| }; | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
|
|
||
| using namespace std; | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcorecontext.h" | ||
| #include "commandlineparser.h" | ||
|
|
||
| MythTranscodeCommandLineParser::MythTranscodeCommandLineParser() : | ||
| MythCommandLineParser(MYTH_APPNAME_MYTHTRANSCODE) | ||
| { LoadArguments(); } | ||
|
|
||
| void MythTranscodeCommandLineParser::LoadArguments(void) | ||
| { | ||
| addHelp(); | ||
| addVersion(); | ||
| addVerbose(); | ||
| addJob(); | ||
| addRecording(); | ||
| addSettingsOverride(); | ||
| addLogging(); | ||
|
|
||
| add(QStringList( QStringList() << "-i" << "--infile" ), "inputfile", "", | ||
| "Input video for transcoding.", ""); | ||
| add(QStringList( QStringList() << "-o" << "--outfile" ), "outputfile", "", | ||
| "Optional output file for transcoding.", ""); | ||
| add(QStringList( QStringList() << "-p" << "--profile" ), "profile", "", | ||
| "Transcoding profile.", ""); | ||
| add(QStringList( QStringList() << "-l" << "--honorcutlist" ), "usecutlist", | ||
| "", "Specifies whether to use the cutlist.", | ||
| "Specifies whether transcode should honor the cutlist and " | ||
| "remove the marked off commercials. Optionally takes a " | ||
| "a cutlist as an argument when used with --infile."); | ||
| add("--inversecut", "inversecut", | ||
| "Inverses the cutlist, leaving only the marked off sections.", ""); | ||
| add(QStringList( QStringList() << "--allkeys" << "-k" ), "allkeys", | ||
| "Specifies the outputfile should be entirely keyframes.", ""); | ||
| add(QStringList( QStringList() << "-f" << "--fifodir" ), "fifodir", "", | ||
| "Directory in which to write fifos to.", ""); | ||
| add("--fifosync", "fifosync", "Enforce fifo sync.", ""); | ||
| add("--passthrough", "passthru", "Pass through raw, unprocessed audio.", ""); | ||
| add(QStringList( QStringList() << "-b" << "--buildindex" ), "reindex", | ||
| "Build new keyframe index.", ""); | ||
| add("--video", "video", | ||
| "Specifies video is not a recording, must use --infile.", ""); | ||
| add("--showprogress", "showprogress", "Display status info in stdout", ""); | ||
| add(QStringList( QStringList() << "-ro" << "--recorderOptions" ), "recopt", | ||
| "", "Comma separated list of recordingprofile overrides.", ""); | ||
| add("--audiotrack", "audiotrack", 0, "Select specific audio track.", ""); | ||
| add(QStringList( QStringList() << "-m" << "--mpeg2" ), "mpeg2", | ||
| "Specifies that a lossless transcode should be used.", ""); | ||
| add(QStringList( QStringList() << "-e" << "--ostream" ), "ostream", "" | ||
| "Output stream type: dvd, ps", ""); | ||
| add("--queue", "queue", "", | ||
| "Add a new transcoding job of the specified recording and " | ||
| "profile to the jobqueue. Accepts an optional string to define " | ||
| "the hostname.", ""); | ||
| } | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcommandlineparser.h" | ||
|
|
||
| class MythTranscodeCommandLineParser : public MythCommandLineParser | ||
| { | ||
| public: | ||
| MythTranscodeCommandLineParser(); | ||
| void LoadArguments(void); | ||
| protected: | ||
| // QString GetHelpHeader(void) const; | ||
| }; | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
|
|
||
| using namespace std; | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcorecontext.h" | ||
| #include "commandlineparser.h" | ||
|
|
||
| MythTVSetupCommandLineParser::MythTVSetupCommandLineParser() : | ||
| MythCommandLineParser(MYTH_APPNAME_MYTHTV_SETUP) | ||
| { LoadArguments(); } | ||
|
|
||
| QString MythTVSetupCommandLineParser::GetHelpHeader(void) const | ||
| { | ||
| return "Mythtv-setup is the setup application for the backend server. It is \n" | ||
| "used to configure the backend, and manage tuner cards and storage. \n" | ||
| "Most settings will require a restart of the backend before they take \n" | ||
| "effect."; | ||
| } | ||
|
|
||
| void MythTVSetupCommandLineParser::LoadArguments(void) | ||
| { | ||
| addHelp(); | ||
| addSettingsOverride(); | ||
| addVersion(); | ||
| addWindowed(false); | ||
| addVerbose(); | ||
| addGeometry(); | ||
| addDisplay(); | ||
| addLogging(); | ||
|
|
||
| add("--expert", "expert", "", "Expert mode."); | ||
| add("--scan-list", "scanlist", "", "no help"); | ||
| add("--scan-save-only", "savescan", "", "no help"); | ||
| add("--scan-non-interactive", "scannoninteractive", "", "nohelp"); | ||
|
|
||
| add("--scan", "scan", 0U, "", | ||
| "Run the command line channel scanner on a specified card " | ||
| "ID. This can be used with --frequency-table and --input-name."); | ||
| add("--frequency-table", "freqtable", "atsc-vsb8-us", "", | ||
| "Specify frequency table to be used with command " | ||
| "line channel scanner."); | ||
| add("--input-name", "inputname", "", "", | ||
| "Specify which input to scan for, if specified card " | ||
| "supports multiple."); | ||
|
|
||
| add("--scan-import", "importscan", 0U, "", | ||
| "Import an existing scan from the database. Use --scan-list " | ||
| "to enumerate scans available for import.\n" | ||
| "This option is mutually exclusive with --scan, and can " | ||
| "be used with the options --FTAonly and --service-type."); | ||
| add("--FTAonly", "ftaonly", "", "Only import 'Free To Air' channels."); | ||
| add("--service-type", "servicetype", "all", "", | ||
| "To be used with channel scanning or importing, specify " | ||
| "the type of services to import. Select from the following, " | ||
| "multiple can be added with '+':\n" | ||
| " all, tv, radio"); | ||
| } | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcommandlineparser.h" | ||
|
|
||
| class MythTVSetupCommandLineParser : public MythCommandLineParser | ||
| { | ||
| public: | ||
| MythTVSetupCommandLineParser(); | ||
| void LoadArguments(void); | ||
| protected: | ||
| QString GetHelpHeader(void) const; | ||
| }; | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
|
|
||
| using namespace std; | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcorecontext.h" | ||
| #include "commandlineparser.h" | ||
|
|
||
| MythWelcomeCommandLineParser::MythWelcomeCommandLineParser() : | ||
| MythCommandLineParser(MYTH_APPNAME_MYTHWELCOME) | ||
| { LoadArguments(); } | ||
|
|
||
| QString MythWelcomeCommandLineParser::GetHelpHeader(void) const | ||
| { | ||
| return "MythWelcome is a graphical launcher application to allow MythFrontend \n" | ||
| "to disconnect from the backend, and allow automatic shutdown to occur."; | ||
| } | ||
|
|
||
| void MythWelcomeCommandLineParser::LoadArguments(void) | ||
| { | ||
| addHelp(); | ||
| addSettingsOverride(); | ||
| addVersion(); | ||
| addVerbose(); | ||
| addLogging(); | ||
|
|
||
| add(QStringList( QStringList() << "-s" << "--setup" ), "setup", | ||
| "Run setup for mythshutdown.", ""); | ||
| } | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
|
|
||
| #include <QString> | ||
|
|
||
| #include "mythcommandlineparser.h" | ||
|
|
||
| class MythWelcomeCommandLineParser : public MythCommandLineParser | ||
| { | ||
| public: | ||
| MythWelcomeCommandLineParser(); | ||
| void LoadArguments(void); | ||
| protected: | ||
| QString GetHelpHeader(void) const; | ||
| }; | ||
|
|