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 () |
| 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] |
Definition at line 74 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by main().
| static int unlockShutdown | ( | ) | [static] |
Definition at line 127 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by main().
| 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 196 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by FIFOWriter::FIFOInit(), getStatus(), and MusicPlayer::seek().
| static QDateTime getDailyWakeupTime | ( | QString | sPeriod | ) | [static] |
Definition at line 202 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by getStatus(), and shutdown().
| static bool isRecording | ( | ) | [static] |
Definition at line 211 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by getStatus(), and RemoteGetRecordingStatus().
| static int getStatus | ( | bool | bWantRecStatus | ) | [static] |
Definition at line 228 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by checkOKShutdown(), and main().
| static int checkOKShutdown | ( | bool | bWantRecStatus | ) | [static] |
Definition at line 348 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by main().
| static int setWakeupTime | ( | QString | sWakeupTime | ) | [static] |
Definition at line 374 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by main(), and setScheduledWakeupTime().
| static int setScheduledWakeupTime | ( | ) | [static] |
Definition at line 401 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by main().
| static int shutdown | ( | ) | [static] |
Definition at line 438 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by main().
| static int startup | ( | ) | [static] |
Definition at line 709 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by main().
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 751 of file mythtv/programs/mythshutdown/main.cpp.
1.6.3