#include
#include
#include
using namespace XPlug;
XPlug::LazyPlugin::LazyPlugin()
{
std::default_random_engine engine;
this->infoComponent = std::make_unique(
"No Name Plugin",
"urn://LazyPlugin/ToLazyToInit",
"A simple plugin wich does something... at least it exists",
"LGPL",
"Me",
"http://myhompeage.never.existed.com",
std::uniform_int_distribution()(engine));
this->portComponent = std::make_unique();
this->featureComponent =
std::make_unique(this->portComponent.get());
}
XPlug::LazyPlugin::LazyPlugin(std::vector> ports)
: LazyPlugin()
{
for (size_t i = 0; i < ports.size(); i++) {
this->portComponent->addPort(std::move(ports[i]));
}
this->featureComponent->detectFeatures(this->getPortComponent());
}
void
XPlug::LazyPlugin::init()
{}
void
XPlug::LazyPlugin::deinit()
{}
void
XPlug::LazyPlugin::activate()
{}
void
XPlug::LazyPlugin::deactivate()
{}