diff options
-rw-r--r-- | project2/common/plugable.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/project2/common/plugable.cpp b/project2/common/plugable.cpp index 969f530..15d8cda 100644 --- a/project2/common/plugable.cpp +++ b/project2/common/plugable.cpp @@ -1,8 +1,15 @@ #include "plugable.h" +#include "componentLoader.h" +#include <plugins.h> void Plugable::onAllComponents(const boost::function<void(ComponentLoader *)> & func) { InstanceSet<ComponentLoader>::OnAll(func); + for(auto p : AdHoc::PluginManager::getDefault()->getAll()) { + if (auto c = dynamic_cast<ComponentLoader *>(p->implementation())) { + func(c); + } + } } |