1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef SIGTERMHANDLER_H
5#define SIGTERMHANDLER_H
6
7#include <QObject>
8
9class SigTermHandler : public QObject
10{
11 Q_OBJECT
12public:
13 static SigTermHandler *instance();
14 static void handle(int s);
15
16 virtual ~SigTermHandler();
17signals:
18 void sigTermSignal();
19
20private:
21 explicit SigTermHandler(QObject *parent = nullptr);
22};
23
24#endif // SIGTERMHANDLER_H
25

source code of qtserialbus/src/tools/canbusutil/sigtermhandler.h