cutelyst 4.9.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
AbstractFork Class Referenceabstract
Inheritance diagram for AbstractFork:

Signals

void forked (int workerId)
void shutdown ()

Public Member Functions

 AbstractFork (QObject *parent=nullptr)
virtual bool continueMaster (int *exit=nullptr)=0
virtual int exec (bool lazy, bool master)=0
void installTouchReload ()
virtual void killChild ()=0
void removeTouchReload ()
virtual void restart ()=0
void setTouchReload (const QStringList &paths)
virtual void terminateChild ()=0

Protected Member Functions

void directoryChanged (const QString &path)
void fileChanged (const QString &path)

Detailed Description

Definition at line 12 of file abstractfork.h.

Constructor & Destructor Documentation

◆ AbstractFork()

AbstractFork::AbstractFork ( QObject * parent = nullptr)
explicit

Definition at line 15 of file abstractfork.cpp.

Member Function Documentation

◆ continueMaster()

virtual bool AbstractFork::continueMaster ( int * exit = nullptr)
pure virtual

When in MASTER mode this method is called, it should return true if Server::exec() should continue setting up the listening socked or exit with exit code

Implemented in UnixFork, and WindowsFork.

◆ directoryChanged()

void AbstractFork::directoryChanged ( const QString & path)
protected

Definition at line 65 of file abstractfork.cpp.

◆ exec()

virtual int AbstractFork::exec ( bool lazy,
bool master )
pure virtual

Start event loop, it's useful for doing trickery when forking

Implemented in UnixFork, and WindowsFork.

◆ fileChanged()

void AbstractFork::fileChanged ( const QString & path)
protected

Definition at line 59 of file abstractfork.cpp.

◆ installTouchReload()

void AbstractFork::installTouchReload ( )

Definition at line 25 of file abstractfork.cpp.

◆ killChild()

virtual void AbstractFork::killChild ( )
pure virtual

Called when child process should be nicely killed

Implemented in UnixFork, and WindowsFork.

◆ removeTouchReload()

void AbstractFork::removeTouchReload ( )

Definition at line 51 of file abstractfork.cpp.

◆ restart()

virtual void AbstractFork::restart ( )
pure virtual

Called to restart process when any of the watched paths changes

Implemented in UnixFork, and WindowsFork.

◆ setTouchReload()

void AbstractFork::setTouchReload ( const QStringList & paths)

Definition at line 20 of file abstractfork.cpp.

◆ terminateChild()

virtual void AbstractFork::terminateChild ( )
pure virtual

Called when child process should be brutaly killed

Implemented in UnixFork, and WindowsFork.