OSDN Git Service

Bump version.
[lamexp/LameXP.git] / src / Thread_MessageHandler.h
index 6ffd07b..37e5b4d 100644 (file)
@@ -1,11 +1,12 @@
 ///////////////////////////////////////////////////////////////////////////////
 // LameXP - Audio Encoder Front-End
-// Copyright (C) 2004-2010 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:
+       QAtomicInt m_aborted;
+
+signals:
+       void otherInstanceDetected(void);
+       void fileReceived(const QString &filePath);
+       void folderReceived(const QString &filePath, bool recursive);
+       void killSignalReceived(void);
 };