OSDN Git Service

Bump version.
[lamexp/LameXP.git] / src / Thread_MessageHandler.h
index 5dc003d..37e5b4d 100644 (file)
@@ -1,11 +1,12 @@
 ///////////////////////////////////////////////////////////////////////////////
 // LameXP - Audio Encoder Front-End
-// Copyright (C) 2004-2013 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2020 LoRd_MuldeR <MuldeR2@GMX.de>
 //
 // 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
+// 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) any later version.
+// (at your option) any later version; always including the non-optional
+// LAMEXP GNU GENERAL PUBLIC LICENSE ADDENDUM. See "License.txt" file!
 //
 // This program is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 
 #include <QThread>
 
+namespace MUtils
+{
+       class IPCChannel;
+}
+
 class MessageHandlerThread: public QThread
 {
        Q_OBJECT
 
 public:
-       MessageHandlerThread(void);
+       MessageHandlerThread(MUtils::IPCChannel *const ipcChannel);
        ~MessageHandlerThread(void);
        void run();
        void stop(void);
 
+protected:
+       MUtils::IPCChannel *const m_ipcChannel;
+
 private:
-       char *m_parameter;
-       volatile bool m_aborted;
+       QAtomicInt m_aborted;
 
 signals:
        void otherInstanceDetected(void);