The Pedigree Project 0.1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
TerminalControl Class Referencefinal
+ Inheritance diagram for TerminalControl:
+ Collaboration diagram for TerminalControl:

Public Member Functions

 TerminalControl (size_t session, size_t foreground)
 
bool active () const
 
void controlCharacter (Character character) override
 

Static Public Member Functions

static Mutex & lock ()
 
static int attach (ConsoleFile &console, bool steal, bool automatic=false, const SharedPointer< ConsoleIoState > &opened=SharedPointer< ConsoleIoState >())
 
static int setForeground (ConsoleFile &console, int group, const SharedPointer< ConsoleIoState > &opened)
 
static int foreground (ConsoleFile &console, const SharedPointer< ConsoleIoState > &opened)
 
static int hangup ()
 
static void processTerminated (PosixProcess &process)
 

Private Member Functions

void invalidate ()
 

Private Attributes

bool m_Active
 
size_t m_Session
 
size_t m_Foreground
 

Additional Inherited Members

- Public Types inherited from ConsoleControlState
enum class  Character { Interrupt , Quit , Suspend }
 

Detailed Description

Definition at line 9 of file TerminalControl.h.

Constructor & Destructor Documentation

◆ TerminalControl()

TerminalControl::TerminalControl ( size_t  session,
size_t  foreground 
)

Definition at line 46 of file TerminalControl.cc.

Member Function Documentation

◆ active()

bool TerminalControl::active ( ) const

Definition at line 49 of file TerminalControl.cc.

◆ attach()

int TerminalControl::attach ( ConsoleFile &  console,
bool  steal,
bool  automatic = false,
const SharedPointer< ConsoleIoState > &  opened = SharedPointer<ConsoleIoState>() 
)
static

Definition at line 88 of file TerminalControl.cc.

◆ controlCharacter()

void TerminalControl::controlCharacter ( Character  character)
overridevirtual

Reimplemented from ConsoleControlState.

Definition at line 53 of file TerminalControl.cc.

◆ foreground()

int TerminalControl::foreground ( ConsoleFile &  console,
const SharedPointer< ConsoleIoState > &  opened 
)
static

Definition at line 189 of file TerminalControl.cc.

◆ hangup()

int TerminalControl::hangup ( )
static

Definition at line 206 of file TerminalControl.cc.

◆ invalidate()

void TerminalControl::invalidate ( )
private

Definition at line 80 of file TerminalControl.cc.

◆ lock()

Mutex & TerminalControl::lock ( )
static

Definition at line 84 of file TerminalControl.cc.

◆ processTerminated()

void TerminalControl::processTerminated ( PosixProcess &  process)
static

Definition at line 261 of file TerminalControl.cc.

◆ setForeground()

int TerminalControl::setForeground ( ConsoleFile &  console,
int  group,
const SharedPointer< ConsoleIoState > &  opened 
)
static

Definition at line 157 of file TerminalControl.cc.

Member Data Documentation

◆ m_Active

bool TerminalControl::m_Active
private

Definition at line 25 of file TerminalControl.h.

◆ m_Foreground

size_t TerminalControl::m_Foreground
private

Definition at line 27 of file TerminalControl.h.

◆ m_Session

size_t TerminalControl::m_Session
private

Definition at line 26 of file TerminalControl.h.


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