![]() |
LeechCraft
%{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
|
Proxy to core entity manager. More...
#include "ientitymanager.h"
Classes | |
struct | DelegationResult |
Public Member Functions | |
virtual | ~IEntityManager () |
virtual DelegationResult | DelegateEntity (LeechCraft::Entity entity, QObject *desired=0)=0 |
Delegates the given entity and returns the delegation result. More... | |
virtual bool | HandleEntity (LeechCraft::Entity entity, QObject *desired=0)=0 |
Handles the given entity. More... | |
virtual bool | CouldHandle (const LeechCraft::Entity &entity)=0 |
Queries whether the given entity can be handled at all. More... | |
virtual QList< QObject * > | GetPossibleHandlers (const LeechCraft::Entity &entity)=0 |
Queries what plugins can handle the given entity. More... | |
Proxy to core entity manager.
Core entity manager is that very thing that routes entities between different plugins and chooses which plugins will handle what entity.
This class can be used instead more or less deprecated gotEntity() and delegateEntity() signals of IInfo.
Definition at line 49 of file ientitymanager.h.
|
inlinevirtual |
Definition at line 68 of file ientitymanager.h.
|
pure virtual |
Queries whether the given entity can be handled at all.
[in] | entity | The entity to test. |
|
pure virtual |
Delegates the given entity and returns the delegation result.
Queries all plugins if they can handle the given entity, and chooses one of them. If the desired object is set, this method first tries to handle the entity with it. Returns a structure describing the delegation result.
[in] | entity | The entity to handle. |
[in] | desired | The object to try first. |
|
pure virtual |
Queries what plugins can handle the given entity.
[in] | entity | The entity to test. |
Referenced by LeechCraft::Util::StdDataFilterMenuCreator::StdDataFilterMenuCreator().
|
pure virtual |
Handles the given entity.
Queries all plugins if they can handle the given entity, and chooses one of them (or all of them, according to entity flags and plugins' behavior). If the desired object is set, this method first tries to handle the entity with it.
[in] | entity | The entity to handle. |
[in] | desired | The object to try first. |