summaryrefslogtreecommitdiff
path: root/src/plugincontainer.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-11-11 21:01:17 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2020-11-11 21:01:17 +0100
commitc0ace25a871c4d938fb4be10b0357e263db677cb (patch)
tree1a40ec1fda4edc9df8f98bfc67a3c049777011c4 /src/plugincontainer.h
parentd3bd237c226f44004a9917a29e1b98b2038ff271 (diff)
Use IPlugin::master() when present.
Diffstat (limited to 'src/plugincontainer.h')
-rw-r--r--src/plugincontainer.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/plugincontainer.h b/src/plugincontainer.h
index 520ee83e..e9761cb1 100644
--- a/src/plugincontainer.h
+++ b/src/plugincontainer.h
@@ -40,11 +40,26 @@ public:
bool canEnable() const;
/**
+ * @return true if this plugin has requirements (satisfied or not).
+ */
+ bool hasRequirements() const;
+
+ /**
* @return the proxy that created this plugin, if any.
*/
MOBase::IPluginProxy* proxy() const;
/**
+ * @return the master of this plugin, if any.
+ */
+ MOBase::IPlugin* master() const;
+
+ /**
+ * @return the plugins this plugin is master of.
+ */
+ std::vector<MOBase::IPlugin*> children() const;
+
+ /**
* @return the list of problems to be resolved before enabling the plugin.
*/
std::vector<MOBase::IPluginRequirement::Problem> problems() const;