main.cpp File Reference

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)


Function Documentation

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]

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 126 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 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]

Definition at line 381 of file mythtv/programs/mythshutdown/main.cpp.

Referenced by main().

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]

Definition at line 432 of file mythtv/programs/mythshutdown/main.cpp.

Referenced by main().

static int shutdown (  )  [static]

Definition at line 467 of file mythtv/programs/mythshutdown/main.cpp.

Referenced by main().

static int startup (  )  [static]

Definition at line 724 of file mythtv/programs/mythshutdown/main.cpp.

Referenced by main().

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.


Generated on Sat Sep 4 06:39:41 2010 for MythTV by  doxygen 1.5.5