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

#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
nodiscard

◆ commandChanged

void PhosphorShell::Process::commandChanged ( )
signal

◆ exitCode()

int PhosphorShell::Process::exitCode ( ) const
nodiscard

◆ exitCodeChanged

void PhosphorShell::Process::exitCodeChanged ( )
signal

◆ exitStatus()

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

◆ exitStatusChanged

void PhosphorShell::Process::exitStatusChanged ( )
signal

◆ finished

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

◆ interval()

int PhosphorShell::Process::interval ( ) const
nodiscard

◆ intervalChanged

void PhosphorShell::Process::intervalChanged ( )
signal

◆ running()

bool PhosphorShell::Process::running ( ) const
nodiscard

◆ 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
nodiscard

◆ stderrTextChanged

void PhosphorShell::Process::stderrTextChanged ( )
signal

◆ stdoutText()

QString PhosphorShell::Process::stdoutText ( ) const
nodiscard

◆ stdoutTextChanged

void PhosphorShell::Process::stdoutTextChanged ( )
signal

The documentation for this class was generated from the following file:
  • phosphor-shell/include/PhosphorShell/Process.h