Updated QML and C++ in various places to build and work with new Qt (6.4+) Minor bugfixes, possibly caused by the Qt version bump, and mostly in JS logic. Tried (again) to get mod sorting working by dragging them within the list. Initial support for Profiles. (To switch between FO4 and FOLON, for example.) Initial "Launch Game" stuff, but it's far from done. Don't use it (yet).
31 lines
602 B
C++
31 lines
602 B
C++
#ifndef SIGNALHANDLER_H
|
|
#define SIGNALHANDLER_H
|
|
|
|
#include <QObject>
|
|
#include <QSocketNotifier>
|
|
|
|
class SignalHandler : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit SignalHandler(QObject *parent = nullptr);
|
|
|
|
// Unix signal handlers.
|
|
static int setup_unix_signal_handlers();
|
|
|
|
protected:
|
|
static void hupSignalHandler(int _unused);
|
|
|
|
public slots:
|
|
// Qt signal handlers.
|
|
void handleSigHup(QSocketDescriptor socket, QSocketNotifier::Type type);
|
|
|
|
private:
|
|
//static int sighupFd[2];
|
|
QSocketNotifier *snHup;
|
|
|
|
signals:
|
|
void hupSignalReceived();
|
|
};
|
|
|
|
#endif // SIGNALHANDLER_H
|