mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Fix bindings for IPluginDiagnose and IPluginFileMapper.
This commit is contained in:
@@ -28,11 +28,6 @@ namespace mo2::python {
|
||||
public:
|
||||
using PluginBase::PluginBase;
|
||||
|
||||
~PyPluginBaseNoFinal()
|
||||
{
|
||||
std::cout << "~PyPluginBaseNoFinal() " << typeid(this).name() << std::endl;
|
||||
}
|
||||
|
||||
bool init(IOrganizer* organizer) override
|
||||
{
|
||||
PYBIND11_OVERRIDE_PURE(bool, PluginBase, init, organizer);
|
||||
@@ -102,7 +97,7 @@ namespace mo2::python {
|
||||
public:
|
||||
MappingType mappings() const override
|
||||
{
|
||||
PYBIND11_OVERRIDE_PURE(MappingType, IPluginFileMapper, mappings, );
|
||||
PYBIND11_OVERRIDE_PURE(MappingType, IPyPluginFileMapper, mappings, );
|
||||
}
|
||||
};
|
||||
|
||||
@@ -112,28 +107,28 @@ namespace mo2::python {
|
||||
public:
|
||||
std::vector<unsigned int> activeProblems() const
|
||||
{
|
||||
PYBIND11_OVERRIDE_PURE(std::vector<unsigned int>, IPluginDiagnose,
|
||||
PYBIND11_OVERRIDE_PURE(std::vector<unsigned int>, IPyPluginDiagnose,
|
||||
activeProblems, );
|
||||
}
|
||||
|
||||
QString shortDescription(unsigned int key) const
|
||||
{
|
||||
PYBIND11_OVERRIDE_PURE(QString, IPluginDiagnose, shortDescription, key);
|
||||
PYBIND11_OVERRIDE_PURE(QString, IPyPluginDiagnose, shortDescription, key);
|
||||
}
|
||||
|
||||
QString fullDescription(unsigned int key) const
|
||||
{
|
||||
PYBIND11_OVERRIDE_PURE(QString, IPluginDiagnose, fullDescription, key);
|
||||
PYBIND11_OVERRIDE_PURE(QString, IPyPluginDiagnose, fullDescription, key);
|
||||
}
|
||||
|
||||
bool hasGuidedFix(unsigned int key) const
|
||||
{
|
||||
PYBIND11_OVERRIDE_PURE(bool, IPluginDiagnose, hasGuidedFix, key);
|
||||
PYBIND11_OVERRIDE_PURE(bool, IPyPluginDiagnose, hasGuidedFix, key);
|
||||
}
|
||||
|
||||
void startGuidedFix(unsigned int key) const
|
||||
{
|
||||
PYBIND11_OVERRIDE_PURE(void, IPluginDiagnose, startGuidedFix, key);
|
||||
PYBIND11_OVERRIDE_PURE(void, IPyPluginDiagnose, startGuidedFix, key);
|
||||
}
|
||||
|
||||
// we need to bring this in public scope
|
||||
|
||||
Reference in New Issue
Block a user