mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
27 lines
No EOL
577 B
C++
27 lines
No EOL
577 B
C++
#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()
|
|
{
|
|
satdump::eventBus->register_handler<satdump::AddGUIApplicationEvent>(provideAppToRegister);
|
|
}
|
|
|
|
static void provideAppToRegister(const satdump::AddGUIApplicationEvent &evt)
|
|
{
|
|
evt.applications.push_back(std::make_shared<satdump::BitViewApplication>());
|
|
}
|
|
};
|
|
|
|
PLUGIN_LOADER(BitViewAppPlugin) |