satdump/plugins/bitview_app/main.cpp

29 lines
774 B
C++
Raw Normal View History

2024-05-18 18:05:04 +02:00
#include "core/plugin.h"
#include "logger.h"
#include "core/module.h"
#include "app.h"
#include "bitview.h"
class BitViewAppPlugin : public satdump::Plugin
{
public:
std::string getID()
{
return "bitview_app";
}
void init()
{
2025-02-10 20:09:03 +01:00
// satdump::eventBus->register_handler<satdump::AddGUIApplicationEvent>(provideAppToRegister);
satdump::eventBus->register_handler<satdump::viewer::RequestHandlersEvent>(provideAppToRegister);
2024-05-18 18:05:04 +02:00
}
2025-02-10 20:09:03 +01:00
static void provideAppToRegister(const satdump::viewer::RequestHandlersEvent &evt)
2024-05-18 18:05:04 +02:00
{
2025-02-10 20:09:03 +01:00
evt.h.push_back(std::make_shared<satdump::BitViewHandler>());
// evt.applications.push_back(std::make_shared<satdump::BitViewApplication>());
2024-05-18 18:05:04 +02:00
}
};
PLUGIN_LOADER(BitViewAppPlugin)