Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PhosphorShell::Process Class Reference

#include <phosphor-shell/include/PhosphorShell/Process.h>

Inheritance diagram for PhosphorShell::Process:
[legend]

Signals

void commandChanged ()
 
void runningChanged ()
 
void intervalChanged ()
 
void stdoutTextChanged ()
 
void stderrTextChanged ()
 
void exitCodeChanged ()
 
void exitStatusChanged ()
 
void finished (int exitCode, QProcess::ExitStatus exitStatus)
 

Public Member Functions

 Process (QObject *parent=nullptr)
 Last process exit status (NormalExit / CrashExit).
 
 ~Process () override
 
QStringList command () const
 
void setCommand (const QStringList &command)
 
bool running () const
 
void setRunning (bool running)
 
int interval () const
 
void setInterval (int interval)
 
QString stdoutText () const
 
QString stderrText () const
 
int exitCode () const
 
QProcess::ExitStatus exitStatus () const
 

Constructor & Destructor Documentation

◆ Process()

PhosphorShell::Process::Process ( QObject *  parent = nullptr)
explicit

Last process exit status (NormalExit / CrashExit).

A child that segfaults emits exitCode=0+CrashExit on Linux; without this property consumers see exitCode=0 and assume success.

◆ ~Process()

PhosphorShell::Process::~Process ( )
override

Member Function Documentation

◆ command()

QStringList PhosphorShell::Process::command ( ) const

◆ commandChanged

void PhosphorShell::Process::commandChanged ( )
signal

◆ exitCode()

int PhosphorShell::Process::exitCode ( ) const

◆ exitCodeChanged

void PhosphorShell::Process::exitCodeChanged ( )
signal

◆ exitStatus()

QProcess::ExitStatus PhosphorShell::Process::exitStatus ( ) const

◆ exitStatusChanged

void PhosphorShell::Process::exitStatusChanged ( )
signal

◆ finished

void PhosphorShell::Process::finished ( int  exitCode,
QProcess::ExitStatus  exitStatus 
)
signal

◆ interval()

int PhosphorShell::Process::interval ( ) const

◆ intervalChanged

void PhosphorShell::Process::intervalChanged ( )
signal

◆ running()

bool PhosphorShell::Process::running ( ) const

◆ runningChanged

void PhosphorShell::Process::runningChanged ( )
signal

◆ setCommand()

void PhosphorShell::Process::setCommand ( const QStringList &  command)

◆ setInterval()

void PhosphorShell::Process::setInterval ( int  interval)

◆ setRunning()

void PhosphorShell::Process::setRunning ( bool  running)

◆ stderrText()

QString PhosphorShell::Process::stderrText ( ) const

◆ stderrTextChanged

void PhosphorShell::Process::stderrTextChanged ( )
signal

◆ stdoutText()

QString PhosphorShell::Process::stdoutText ( ) const

◆ stdoutTextChanged

void PhosphorShell::Process::stdoutTextChanged ( )
signal

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