mirror-chatterino2/src/singletons/NativeMessagingManager.hpp
2018-06-26 13:24:55 +02:00

35 lines
708 B
C++

#pragma once
#include <QThread>
namespace chatterino {
namespace singletons {
class NativeMessagingManager
{
public:
// fourtf: don't add this class to the application class
NativeMessagingManager();
~NativeMessagingManager() = 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 singletons
} // namespace chatterino