mirror-chatterino2/src/singletons/NativeMessaging.hpp
2018-06-28 19:51:07 +02:00

33 lines
635 B
C++

#pragma once
#include <QThread>
namespace chatterino {
class NativeMessaging
{
public:
// fourtf: don't add this class to the application class
NativeMessaging();
~NativeMessaging() = delete;
class ReceiverThread : public QThread
{
public:
void run() override;
private:
void handleMessage(const QJsonObject &root);
};
void writeByteArray(QByteArray a);
void registerHost();
void openGuiMessageQueue();
void sendToGuiProcess(const QByteArray &array);
static std::string &getGuiMessageQueueName();
};
} // namespace chatterino