|
MythTV master
|
#include <cstdlib>#include <iostream>#include <thread>#include <QtGlobal>#include <QCoreApplication>#include <QFile>#include <QTimeZone>#include "libmyth/mythcontext.h"#include "libmythbase/compat.h"#include "libmythbase/exitcodes.h"#include "libmythbase/mythappname.h"#include "libmythbase/mythcorecontext.h"#include "libmythbase/mythdate.h"#include "libmythbase/mythdb.h"#include "libmythbase/mythlogging.h"#include "libmythbase/mythsystemlegacy.h"#include "libmythbase/mythversion.h"#include "libmythtv/jobqueue.h"#include "libmythtv/programinfo.h"#include "libmythtv/tv.h"#include "libmythtv/tvremoteutil.h"#include "mythshutdown_commandlineparser.h"Go to the source code of this file.
Functions | |
| static void | setGlobalSetting (const QString &key, const QString &v) |
| static QString | getGlobalSetting (const QString &key, const QString &defaultval) |
| static int | lockShutdown () |
| static int | unlockShutdown () |
| static bool | isRunning (const char *program) |
| Returns true if a program containing the specified string is running on this machine. More... | |
| static QDateTime | getDailyWakeupTime (const QString &sPeriod) |
| static bool | isRecording () |
| static int | getStatus (bool bWantRecStatus) |
| static int | checkOKShutdown (bool bWantRecStatus) |
| static void | setWakeupTime (const QDateTime &wakeupTime) |
| static int | setScheduledWakeupTime () |
| static int | shutdown () |
| static int | startup () |
| int | main (int argc, char **argv) |
|
static |
Definition at line 381 of file mythshutdown.cpp.
Referenced by main().
|
static |
Definition at line 214 of file mythshutdown.cpp.
Referenced by getStatus(), and shutdown().
|
static |
Definition at line 61 of file mythshutdown.cpp.
Referenced by getDailyWakeupTime(), getStatus(), shutdown(), and startup().
|
static |
Definition at line 245 of file mythshutdown.cpp.
Referenced by checkOKShutdown(), and main().
|
static |
Definition at line 227 of file mythshutdown.cpp.
Referenced by getStatus(), and RemoteGetRecordingStatus().
|
static |
Returns true if a program containing the specified string is running on this machine.
Since many Linux distributions rename executables, and they also have different names by default on different operating systems, and this function is POSIX only use of this function is discouraged.
Warning: This function should never be passed a value which is not specified explicitly in the code, it does no checking for shell script injection.
Definition at line 208 of file mythshutdown.cpp.
Referenced by ThumbThread< DBFS >::AbortDevice(), ImageScanThread< DBFS >::ChangeState(), ThumbThread< DBFS >::Enqueue(), MythFIFOWriter::FIFOInit(), getStatus(), ThumbThread< DBFS >::PauseBackground(), and SSDPReceiver::setIsRunning().
|
static |
Definition at line 84 of file mythshutdown.cpp.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 825 of file mythshutdown.cpp.
|
static |
Definition at line 32 of file mythshutdown.cpp.
Referenced by setWakeupTime(), and shutdown().
|
static |
Definition at line 421 of file mythshutdown.cpp.
Referenced by main().
|
static |
Definition at line 409 of file mythshutdown.cpp.
Referenced by main(), and setScheduledWakeupTime().
|
static |
Definition at line 462 of file mythshutdown.cpp.
Referenced by main().
|
static |
Definition at line 779 of file mythshutdown.cpp.
Referenced by main().
|
static |
Definition at line 138 of file mythshutdown.cpp.
Referenced by main().