Studio/Interface/StudioLogger.h
Classes
Name | |
---|---|
class | StudioLogger Handle logger callbacks via Qt for thread correctness. |
Source code
#pragma once
#include <QObject>
class StudioLogger : public QObject {
Q_OBJECT
public:
StudioLogger() {}
virtual ~StudioLogger();
void register_callbacks();
// callbacks from logger
void handle_message(std::string str);
void handle_error(std::string str);
void handle_warning(std::string str);
void handle_debug(std::string str);
void handle_status(std::string str);
void handle_progress(double value, std::string str);
Q_SIGNALS:
void message(std::string str);
void error(std::string str);
void warning(std::string str);
void debug(std::string str);
void status(std::string str);
void progress(int value, std::string str);
};
Updated on 2024-03-17 at 12:58:44 -0600