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 () override=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}
 
std::array< int, 3 > m_stdpipe {-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 (const QString &cmd)
 
QStringList & GetArgs (void)
 
void SetArgs (const 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 91 of file mythsystemunix.h.

Constructor & Destructor Documentation

◆ MythSystemLegacyUnix()

MythSystemLegacyUnix::MythSystemLegacyUnix ( MythSystemLegacy parent)
explicit

Definition at line 551 of file mythsystemunix.cpp.

◆ ~MythSystemLegacyUnix()

MythSystemLegacyUnix::~MythSystemLegacyUnix ( )
overridedefault

Member Function Documentation

◆ Fork()

void MythSystemLegacyUnix::Fork ( time_t  timeout)
overridevirtual

Implements MythSystemLegacyPrivate.

Definition at line 775 of file mythsystemunix.cpp.

◆ Manage()

void MythSystemLegacyUnix::Manage ( void  )
overridevirtual

Implements MythSystemLegacyPrivate.

Definition at line 1162 of file mythsystemunix.cpp.

◆ Term()

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

Implements MythSystemLegacyPrivate.

Definition at line 738 of file mythsystemunix.cpp.

Referenced by MythSystemLegacyManager::run().

◆ Signal()

void MythSystemLegacyUnix::Signal ( int  sig)
overridevirtual

Implements MythSystemLegacyPrivate.

Definition at line 758 of file mythsystemunix.cpp.

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

◆ JumpAbort()

void MythSystemLegacyUnix::JumpAbort ( void  )
overridevirtual

Implements MythSystemLegacyPrivate.

Definition at line 1166 of file mythsystemunix.cpp.

◆ ParseShell()

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

Implements MythSystemLegacyPrivate.

Definition at line 588 of file mythsystemunix.cpp.

Friends And Related Function Documentation

◆ MythSystemLegacyManager

friend class MythSystemLegacyManager
friend

Definition at line 109 of file mythsystemunix.h.

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

◆ MythSystemLegacySignalManager

friend class MythSystemLegacySignalManager
friend

Definition at line 110 of file mythsystemunix.h.

Referenced by MythSystemLegacyUnix().

◆ MythSystemLegacyIOHandler

friend class MythSystemLegacyIOHandler
friend

Definition at line 111 of file mythsystemunix.h.

Referenced by MythSystemLegacyUnix().

Member Data Documentation

◆ m_pid

pid_t MythSystemLegacyUnix::m_pid {0}
private

Definition at line 114 of file mythsystemunix.h.

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

◆ m_timeout

time_t MythSystemLegacyUnix::m_timeout {0}
private

Definition at line 115 of file mythsystemunix.h.

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

◆ m_stdpipe

std::array<int,3> MythSystemLegacyUnix::m_stdpipe {-1, -1, -1}
private

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