MythTV  master
Public Member Functions | Private Attributes | Friends | List of all members
MythSystemLegacyUnix Class Reference

#include <mythsystemunix.h>

Inheritance diagram for MythSystemLegacyUnix:
Inheritance graph
[legend]
Collaboration diagram for MythSystemLegacyUnix:
Collaboration graph
[legend]

Public Member Functions

 MythSystemLegacyUnix (MythSystemLegacy *parent)
 
 ~MythSystemLegacyUnix ()=default
 
void Fork (time_t timeout) override
 
void Manage (void) override
 
void Term (bool force=false) override
 
void Signal (int sig) override
 
void JumpAbort (void) override
 
bool ParseShell (const QString &cmd, QString &abscmd, QStringList &args) override
 
- Public Member Functions inherited from MythSystemLegacyPrivate
 MythSystemLegacyPrivate (const QString &debugName)
 
- Public Member Functions inherited from ReferenceCounter
 ReferenceCounter (const QString &debugName, bool logDebug=true)
 Creates reference counter with an initial value of 1. More...
 
virtual int IncrRef (void)
 Increments reference count. More...
 
virtual int DecrRef (void)
 Decrements reference count and deletes on 0. More...
 

Private Attributes

pid_t m_pid {0}
 
time_t m_timeout {0}
 
int m_stdpipe [3] {-1,-1, -1}
 

Friends

class MythSystemLegacyManager
 
class MythSystemLegacySignalManager
 
class MythSystemLegacyIOHandler
 

Additional Inherited Members

- Signals inherited from MythSystemLegacyPrivate
void started (void)
 
void finished (void)
 
void error (uint status)
 
void readDataReady (int fd)
 
- Static Public Member Functions inherited from ReferenceCounter
static void PrintDebug (void)
 Print out any leaks if that level of debugging is enabled. More...
 
- Protected Member Functions inherited from MythSystemLegacyPrivate
uint GetStatus (void)
 
void SetStatus (uint status)
 
QString & GetLogCmd (void)
 
QString & GetDirectory (void)
 
bool GetSetting (const char *setting)
 
QString & GetCommand (void)
 
void SetCommand (QString &cmd)
 
QStringList & GetArgs (void)
 
void SetArgs (QStringList &args)
 
QBuffer * GetBuffer (int index)
 
void Unlock (void)
 
- Protected Member Functions inherited from ReferenceCounter
virtual ~ReferenceCounter (void)
 Called on destruction, will warn if object deleted with references in place. More...
 
- Protected Attributes inherited from MythSystemLegacyPrivate
QPointer< MythSystemLegacym_parent
 
- Protected Attributes inherited from ReferenceCounter
bool m_logDebug
 This is used to suppress creating LoggingItem classes for LoggingItem reference count changes. More...
 
QAtomicInt m_referenceCount {1}
 

Detailed Description

Definition at line 90 of file mythsystemunix.h.

Constructor & Destructor Documentation

◆ MythSystemLegacyUnix()

MythSystemLegacyUnix::MythSystemLegacyUnix ( MythSystemLegacy parent)
explicit

Definition at line 544 of file mythsystemunix.cpp.

◆ ~MythSystemLegacyUnix()

MythSystemLegacyUnix::~MythSystemLegacyUnix ( )
default

Member Function Documentation

◆ Fork()

void MythSystemLegacyUnix::Fork ( time_t  timeout)
overridevirtual

Implements MythSystemLegacyPrivate.

Definition at line 743 of file mythsystemunix.cpp.

◆ Manage()

void MythSystemLegacyUnix::Manage ( void  )
overridevirtual

Implements MythSystemLegacyPrivate.

Definition at line 1132 of file mythsystemunix.cpp.

◆ Term()

void MythSystemLegacyUnix::Term ( bool  force = false)
overridevirtual

Implements MythSystemLegacyPrivate.

Definition at line 706 of file mythsystemunix.cpp.

Referenced by MythSystemLegacyManager::run().

◆ Signal()

void MythSystemLegacyUnix::Signal ( int  sig)
overridevirtual

Implements MythSystemLegacyPrivate.

Definition at line 726 of file mythsystemunix.cpp.

Referenced by MythSystemLegacyManager::run(), and Term().

◆ JumpAbort()

void MythSystemLegacyUnix::JumpAbort ( void  )
overridevirtual

Implements MythSystemLegacyPrivate.

Definition at line 1136 of file mythsystemunix.cpp.

◆ ParseShell()

bool MythSystemLegacyUnix::ParseShell ( const QString &  cmd,
QString &  abscmd,
QStringList &  args 
)
overridevirtual

Implements MythSystemLegacyPrivate.

Definition at line 581 of file mythsystemunix.cpp.

Friends And Related Function Documentation

◆ MythSystemLegacyManager

friend class MythSystemLegacyManager
friend

Definition at line 108 of file mythsystemunix.h.

Referenced by Fork(), JumpAbort(), and MythSystemLegacyUnix().

◆ MythSystemLegacySignalManager

friend class MythSystemLegacySignalManager
friend

Definition at line 109 of file mythsystemunix.h.

Referenced by MythSystemLegacyUnix().

◆ MythSystemLegacyIOHandler

friend class MythSystemLegacyIOHandler
friend

Definition at line 110 of file mythsystemunix.h.

Referenced by MythSystemLegacyUnix().

Member Data Documentation

◆ m_pid

pid_t MythSystemLegacyUnix::m_pid {0}
private

Definition at line 113 of file mythsystemunix.h.

Referenced by MythSystemLegacyManager::append(), Fork(), Signal(), and Term().

◆ m_timeout

time_t MythSystemLegacyUnix::m_timeout {0}
private

Definition at line 114 of file mythsystemunix.h.

Referenced by Fork(), and MythSystemLegacyManager::run().

◆ m_stdpipe

int MythSystemLegacyUnix::m_stdpipe[3] {-1,-1, -1}
private

The documentation for this class was generated from the following files: