Go to the source code of this file.
Functions | |
| static void | setGlobalSetting (const QString &key, const QString &value) |
| 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. | |
| static QDateTime | getDailyWakeupTime (QString sPeriod) |
| static bool | isRecording () |
| static int | getStatus (bool bWantRecStatus) |
| static int | checkOKShutdown (bool bWantRecStatus) |
| static int | setWakeupTime (QString sWakeupTime) |
| static int | setScheduledWakeupTime () |
| static int | shutdown () |
| static int | startup () |
| static void | showUsage () |
| int | main (int argc, char **argv) |
| static void setGlobalSetting | ( | const QString & | key, | |
| const QString & | value | |||
| ) | [static] |
Definition at line 24 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by setWakeupTime(), and shutdown().
| static QString getGlobalSetting | ( | const QString & | key, | |
| const QString & | defaultval | |||
| ) | [static] |
Definition at line 51 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by getDailyWakeupTime(), getStatus(), shutdown(), and startup().
| static int lockShutdown | ( | ) | [static] |
| static int unlockShutdown | ( | ) | [static] |
| static bool isRunning | ( | const char * | program | ) | [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 194 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by MetadataImageDownload::addDownloads(), MetadataDownload::addLookup(), MetadataImageDownload::addThumb(), getStatus(), TV::IsRunning(), RingBuffer::KillReadAheadThread(), MetadataDownload::prependLookup(), GrabberDownloadThread::refreshAll(), MusicPlayer::seek(), and MythSocketThread::WakeReadyReadThread().
| static QDateTime getDailyWakeupTime | ( | QString | sPeriod | ) | [static] |
Definition at line 206 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by getStatus(), and shutdown().
| static bool isRecording | ( | ) | [static] |
Definition at line 215 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by getStatus(), and RemoteGetRecordingStatus().
| static int getStatus | ( | bool | bWantRecStatus | ) | [static] |
Definition at line 232 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by checkOKShutdown(), and main().
| static int checkOKShutdown | ( | bool | bWantRecStatus | ) | [static] |
| static int setWakeupTime | ( | QString | sWakeupTime | ) | [static] |
Definition at line 406 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by main(), and setScheduledWakeupTime().
| static int setScheduledWakeupTime | ( | ) | [static] |
| static int shutdown | ( | ) | [static] |
| static int startup | ( | ) | [static] |
| static void showUsage | ( | ) | [static] |
Definition at line 763 of file mythtv/programs/mythshutdown/main.cpp.
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 809 of file mythtv/programs/mythshutdown/main.cpp.
1.5.5