46 lines
686 B
C++
Executable File
46 lines
686 B
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
#include <lts_plugin_manager.h>
|
|
#include <QWidget>
|
|
|
|
|
|
namespace Ui
|
|
{
|
|
class LtsPluginWidget;
|
|
}
|
|
|
|
namespace LtsPluginManager
|
|
{
|
|
class LtsPluginWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
enum Status
|
|
{
|
|
UNKNOWN = 0,
|
|
INVALID,
|
|
LOADED,
|
|
CONFLICT,
|
|
UNLOADED,
|
|
INIT_FAILED,
|
|
MISSING_SERVICE,
|
|
OBLIBATORY_INTERFACES_MISSING,
|
|
INVALID_PLUGIN_VERSION,
|
|
};
|
|
|
|
explicit LtsPluginWidget(const QString &filename, QWidget *parent = nullptr);
|
|
~LtsPluginWidget();
|
|
|
|
void setStatus(Status status);
|
|
void setType(const QString &type = QString());
|
|
void setIdent(const QString &ident = QString());
|
|
|
|
private:
|
|
Ui::LtsPluginWidget *m_ui;
|
|
};
|
|
}
|