mirror of
https://github.com/hyprwm/hyprpolkitagent.git
synced 2026-01-04 23:10:12 +01:00
23 lines
449 B
C++
23 lines
449 B
C++
#pragma once
|
|
|
|
#include <QApplication>
|
|
#include <QObject>
|
|
#include <QSocketNotifier>
|
|
|
|
class CSigDaemon : public QObject {
|
|
Q_OBJECT;
|
|
public:
|
|
CSigDaemon(QObject* parent = nullptr);
|
|
|
|
static void onSignal(int signo);
|
|
|
|
public slots:
|
|
void handleSigHup();
|
|
void handleSigTerm();
|
|
void handleSigInt();
|
|
|
|
private:
|
|
QSocketNotifier* snHup = nullptr;
|
|
QSocketNotifier* snTerm = nullptr;
|
|
QSocketNotifier* snInt = nullptr;
|
|
};
|