MythTV
master
|
#include <iostream>
#include <cstdlib>
#include <unistd.h>
#include <QCoreApplication>
#include <QFile>
#include "mythdate.h"
#include "exitcodes.h"
#include "mythcontext.h"
#include "mythdb.h"
#include "mythsystemlegacy.h"
#include "mythversion.h"
#include "jobqueue.h"
#include "tv.h"
#include "remoteutil.h"
#include "tvremoteutil.h"
#include "compat.h"
#include "loggingserver.h"
#include "mythlogging.h"
#include "commandlineparser.h"
#include "programinfo.h"
#include "signalhandling.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 27 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by setWakeupTime(), and shutdown().
|
static |
Definition at line 56 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by getDailyWakeupTime(), getStatus(), shutdown(), and startup().
|
static |
Definition at line 79 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by main().
|
static |
Definition at line 133 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by main().
|
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 203 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by ThumbThread< ImageDbSg >::AbortDevice(), ImageScanThread< ImageDbSg >::ChangeState(), MusicPlayer::decoderHandlerReady(), ThumbThread< ImageDbSg >::Enqueue(), FIFOWriter::FIFOInit(), getStatus(), ThumbThread< ImageDbSg >::PauseBackground(), and MusicPlayer::seek().
|
static |
Definition at line 209 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by getStatus(), and shutdown().
|
static |
Definition at line 220 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by getStatus(), and RemoteGetRecordingStatus().
|
static |
Definition at line 238 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by checkOKShutdown(), and main().
|
static |
Definition at line 374 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by main().
|
static |
Definition at line 402 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by main(), and setScheduledWakeupTime().
|
static |
Definition at line 414 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by main().
|
static |
Definition at line 455 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by main().
|
static |
Definition at line 774 of file mythtv/programs/mythshutdown/main.cpp.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 820 of file mythtv/programs/mythshutdown/main.cpp.