2018-07-25 01:39:02 +08:00
|
|
|
#ifndef HOSTSIGNALLER_H
|
|
|
|
#define HOSTSIGNALLER_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <Windows.h>
|
|
|
|
#include "../texthook/host.h"
|
|
|
|
|
|
|
|
// Artikash 7/24/2018: This class is a workaround for the fact that Qt only lets me manipulate the GUI in the main thread.
|
|
|
|
class HostSignaller : public QObject
|
|
|
|
{
|
2018-07-26 01:46:59 +08:00
|
|
|
Q_OBJECT
|
2018-07-25 01:39:02 +08:00
|
|
|
|
|
|
|
public:
|
2018-07-26 01:46:59 +08:00
|
|
|
void Initialize();
|
2018-07-25 01:39:02 +08:00
|
|
|
|
|
|
|
signals:
|
2018-07-26 01:46:59 +08:00
|
|
|
void AddProcess(unsigned int processId);
|
|
|
|
void RemoveProcess(unsigned int processId);
|
|
|
|
void AddThread(TextThread* thread);
|
|
|
|
void RemoveThread(TextThread* thread);
|
|
|
|
void ThreadOutput(TextThread* thread, QString output);
|
2018-07-25 01:39:02 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // HOSTSIGNALLER_H
|