Sigh - python wrapper version of the 2 URL fetch functions

This commit is contained in:
Thomas Tanner
2015-11-26 07:40:53 +00:00
parent cc62f15cc8
commit 1455bda2f8
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -861,6 +861,8 @@ BOOST_PYTHON_MODULE(mobase)
.def("getLoadOrderMechanism", bpy::pure_virtual(&MOBase::IPluginGame::getLoadOrderMechanism))
.def("getNexusModOrganizerID", bpy::pure_virtual(&MOBase::IPluginGame::getNexusModOrganizerID))
.def("getNexusGameID", bpy::pure_virtual(&MOBase::IPluginGame::getNexusGameID))
.def("getNexusManagementURL", bpy::pure_virtual(&MOBase::IPluginGame::getNexusManagementURL))
.def("getNexusDisplayURL", bpy::pure_virtual(&MOBase::IPluginGame::getNexusDisplayURL))
//Plugin interface.
.def("init", bpy::pure_virtual(&MOBase::IPluginGame::init))
+3 -1
View File
@@ -227,7 +227,7 @@ struct IOrganizerWrapper: MOBase::IOrganizer, boost::python::wrapper<MOBase::IOr
virtual bool onAboutToRun(const std::function<bool(const QString&)> &func) { return this->get_override("onAboutToRun")(func); }
virtual bool onFinishedRun(const std::function<void(const QString&, unsigned int)> &func) { return this->get_override("onFinishedRun")(func); }
virtual bool onModInstalled(const std::function<void(const QString&)> &func) { return this->get_override("onModInstalled")(func); }
virtual MOBase::IPluginGame *managedGame() const { return this->get_override("managedGame")(); }
virtual MOBase::IPluginGame const *managedGame() const { return this->get_override("managedGame")(); }
};
struct IDownloadManagerWrapper: MOBase::IDownloadManager, boost::python::wrapper<MOBase::IDownloadManager>
@@ -331,6 +331,8 @@ struct IPluginGameWrapper: MOBase::IPluginGame, boost::python::wrapper<MOBase::I
virtual MOBase::VersionInfo version() const override { return this->get_override("version")(); }
virtual bool isActive() const override { return this->get_override("isActive")(); }
virtual QList<MOBase::PluginSetting> settings() const override { return this->get_override("settings")(); }
virtual QString getNexusManagementURL() const override { return this->get_override("getNexusManagementURL")(); }
virtual QString getNexusDisplayURL() const override { return this->get_override("getNexusDisplayURL")(); }
protected: