Files
mpsk_rx_gui/Source/LogComponent.h
T
2014-07-19 08:20:53 +00:00

29 lines
476 B
C++

#ifndef _LOGCOMPONENT_H_
#define _LOGCOMPONENT_H_
#include "JuceHeader.h"
// ---------------------------------------------------
class LogHandler
{
public:
LogHandler() {}
virtual ~LogHandler() {}
virtual void handleMessage(String msg) = 0;
};
class LogComponent
{
public:
LogComponent(LogHandler *pLogHandler);
~LogComponent(void);
void log(const char* format, ...);
private:
LogHandler *m_pLogHandler;
};
#endif // _LOGCOMPONENT_H_