X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fwindowssignalwatcher.h;fp=src%2Fcommon%2Fwindowssignalwatcher.h;h=923d33417053a4542f9854024e31acc585f56b67;hb=c015fbf8afaf64fbb5a8e2122e2a1ecf0325b1a1;hp=0000000000000000000000000000000000000000;hpb=893f0c21b72d7e4aedde092887073c590155b6d9;p=quassel.git diff --git a/src/common/windowssignalwatcher.h b/src/common/windowssignalwatcher.h new file mode 100644 index 00000000..923d3341 --- /dev/null +++ b/src/common/windowssignalwatcher.h @@ -0,0 +1,36 @@ +/*************************************************************************** + * Copyright (C) 2005-2018 by the Quassel Project * + * devel@quassel-irc.org * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) version 3. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#pragma once + +#include + +#include "abstractsignalwatcher.h" +#include "singleton.h" + +class WindowsSignalWatcher : public AbstractSignalWatcher, private Singleton +{ + Q_OBJECT + +public: + WindowsSignalWatcher(QObject *parent = nullptr); + + static void signalHandler(int signal); +};