Files
SOM/plugins/TerminalPlugin/TerminalPlugin.h
Triplehx3 ac85f22bb5 Implement Plugin Loading.
This commit adds plugin laoding which are then added as sub winows onto the main window.
This commit also adds 2 plugins however more will follow
2025-11-10 21:42:51 +00:00

30 lines
538 B
C++

#ifndef TESTPLUGIN_H
#define TESTPLUGIN_H
#include <../../src/interface.h>
#include <qtermwidget6/qtermwidget.h>
#include <QObject>
#include <QtPlugin>
#include <QString>
#include <QWidget>
#include <QImage>
class TerminalPlugin : public QObject, public Interface
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.SOM.Interface" FILE "TerminalPlugin.json")
Q_INTERFACES(Interface)
public:
QString pname() override;
QString pdesc() override;
QWidget *pcontent() override;
private:
QTermWidget *console;
};
#endif