#include "plugin_support/PluginModule.h" #include PluginModule::PluginModule(QString name, QString ident) : m_name(std::move(name)) , m_ident(std::move(ident)) { } void PluginModule::setDisplayCategory(QString category) { m_displayCategory = std::move(category); } void PluginModule::registerStaticAction(StaticAction action) { qDebug() << "registerMenuAction " << action.text(); m_menuActions.emplace_back(std::move(action)); } const PluginModule::StaticActionList& PluginModule::staticActions() const { return m_menuActions; } void PluginModule::registerModuleAction(QString module_action, ModuleAction action) { m_moduleActions.emplace( std::move(module_action), std::move(action) ); } const PluginModule::ModuleAction* PluginModule::findModuleAction(const QString &module_action) const { auto res = m_moduleActions.find(module_action); if (res == m_moduleActions.end()) return nullptr; return &res->second; }