This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-app/guh-control/logmanager.cpp
2018-02-25 00:45:52 +01:00

21 lines
458 B
C++

#include "logmanager.h"
#include "engine.h"
LogManager::LogManager(JsonRpcClient *jsonClient, QObject *parent) :
JsonHandler(parent),
m_client(jsonClient)
{
m_client->registerNotificationHandler(this, "notificationReceived");
}
QString LogManager::nameSpace() const
{
return "Logging";
}
void LogManager::notificationReceived(const QVariantMap &data)
{
emit logEntryReceived(data.value("params").toMap().value("logEntry").toMap());
}