38 lines
716 B
C++
38 lines
716 B
C++
#ifndef TESTPLUGIN_H
|
|
#define TESTPLUGIN_H
|
|
|
|
|
|
#include <../../src/interface.h>
|
|
#include <qtermwidget6/qtermwidget.h>
|
|
#include <unistd.h>
|
|
|
|
#include <QObject>
|
|
#include <QtPlugin>
|
|
#include <QString>
|
|
#include <QWidget>
|
|
#include <QImage>
|
|
#include <QMessageBox>
|
|
|
|
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;
|
|
void connectToHost(QObject* host) override;
|
|
|
|
|
|
private:
|
|
QTermWidget *console;
|
|
QString path;
|
|
|
|
private slots:
|
|
void onHostPathChanged(const QString &newpath);
|
|
|
|
};
|
|
#endif
|