cutelyst 4.8.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
Cutelyst::systemdNotify Class Reference
Inheritance diagram for Cutelyst::systemdNotify:

Public Member Functions

 systemdNotify (QObject *parent=nullptr)
 
void sendReady (const QByteArray &data)
 
void sendStatus (const QByteArray &data)
 
void sendWatchdog (const QByteArray &data)
 
bool setWatchdog (bool enable, int usec=0)
 
int watchdogUSec () const
 

Static Public Member Functions

static bool is_systemd_notify_available ()
 
static std::vector< int > listenFds (bool unsetEnvironment=true)
 
static int sd_watchdog_enabled (bool unset)
 

Detailed Description

Definition at line 14 of file systemdnotify.h.

Constructor & Destructor Documentation

◆ systemdNotify()

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

Definition at line 40 of file systemdnotify.cpp.

◆ ~systemdNotify()

systemdNotify::~systemdNotify ( )

Definition at line 78 of file systemdnotify.cpp.

Member Function Documentation

◆ is_systemd_notify_available()

bool systemdNotify::is_systemd_notify_available ( )
static

Definition at line 225 of file systemdnotify.cpp.

◆ listenFds()

std::vector< int > systemdNotify::listenFds ( bool  unsetEnvironment = true)
static

Definition at line 294 of file systemdnotify.cpp.

◆ sd_watchdog_enabled()

int systemdNotify::sd_watchdog_enabled ( bool  unset)
static

Definition at line 197 of file systemdnotify.cpp.

◆ sendReady()

void systemdNotify::sendReady ( const QByteArray &  data)

Definition at line 173 of file systemdnotify.cpp.

◆ sendStatus()

void systemdNotify::sendStatus ( const QByteArray &  data)

Definition at line 125 of file systemdnotify.cpp.

◆ sendWatchdog()

void systemdNotify::sendWatchdog ( const QByteArray &  data)

Definition at line 149 of file systemdnotify.cpp.

◆ setWatchdog()

bool systemdNotify::setWatchdog ( bool  enable,
int  usec = 0 
)

Definition at line 95 of file systemdnotify.cpp.

◆ watchdogUSec()

int systemdNotify::watchdogUSec ( ) const

Definition at line 89 of file systemdnotify.cpp.