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 (std::chrono::seconds 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}
 
SystemTime m_timeout {0s}
 
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 92 of file mythsystemunix.h.

Constructor & Destructor Documentation

◆ MythSystemLegacyUnix()

MythSystemLegacyUnix::MythSystemLegacyUnix ( MythSystemLegacy parent)
explicit

Definition at line 560 of file mythsystemunix.cpp.

◆ ~MythSystemLegacyUnix()

MythSystemLegacyUnix::~MythSystemLegacyUnix ( )
overridedefault

Member Function Documentation

◆ Fork()

void MythSystemLegacyUnix::Fork ( std::chrono::seconds  timeout)
overridevirtual

Implements MythSystemLegacyPrivate.

Definition at line 779 of file mythsystemunix.cpp.

◆ Manage()

void MythSystemLegacyUnix::Manage ( void  )
overridevirtual

Implements MythSystemLegacyPrivate.

Definition at line 1168 of file mythsystemunix.cpp.

◆ Term()

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

Implements MythSystemLegacyPrivate.

Definition at line 743 of file mythsystemunix.cpp.

◆ Signal()

void MythSystemLegacyUnix::Signal ( int  sig)
overridevirtual

Implements MythSystemLegacyPrivate.

Definition at line 763 of file mythsystemunix.cpp.

Referenced by Term().

◆ JumpAbort()

void MythSystemLegacyUnix::JumpAbort ( void  )
overridevirtual

Implements MythSystemLegacyPrivate.

Definition at line 1172 of file mythsystemunix.cpp.

◆ ParseShell()

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

Implements MythSystemLegacyPrivate.

Definition at line 597 of file mythsystemunix.cpp.

Friends And Related Function Documentation

◆ MythSystemLegacyManager

friend class MythSystemLegacyManager
friend

Definition at line 110 of file mythsystemunix.h.

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

◆ MythSystemLegacySignalManager

friend class MythSystemLegacySignalManager
friend

Definition at line 111 of file mythsystemunix.h.

Referenced by MythSystemLegacyUnix().

◆ MythSystemLegacyIOHandler

friend class MythSystemLegacyIOHandler
friend

Definition at line 112 of file mythsystemunix.h.

Referenced by MythSystemLegacyUnix().

Member Data Documentation

◆ m_pid

pid_t MythSystemLegacyUnix::m_pid {0}
private

Definition at line 115 of file mythsystemunix.h.

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

◆ m_timeout

SystemTime MythSystemLegacyUnix::m_timeout {0s}
private

Definition at line 116 of file mythsystemunix.h.

Referenced by Fork().

◆ m_stdpipe

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

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