diff options
Diffstat (limited to 'api/plugin-api.hpp')
-rw-r--r-- | api/plugin-api.hpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/api/plugin-api.hpp b/api/plugin-api.hpp index ab43884a..9cc87f82 100644 --- a/api/plugin-api.hpp +++ b/api/plugin-api.hpp @@ -43,6 +43,9 @@ protected: public: void closeEvent(QCloseEvent *) override; virtual bool embeddable() noexcept; + virtual void set_buttons_visible(bool x); // XXX TODO remove it once all modules are converted + virtual void save(); // XXX HACK should be pure virtual + virtual void reload(); // XXX HACK should be pure virtual -sh 20211214 signals: void closing(); private slots: @@ -216,17 +219,11 @@ struct OTR_API_EXPORT ITrackerDialog : public plugin_api::detail::BaseDialog virtual void register_tracker(ITracker *tracker); // received tracker pointer is about to get deleted virtual void unregister_tracker(); - virtual void set_buttons_visible(bool x); // XXX TODO remove it once all modules are converted - virtual void save(); // XXX HACK should be pure virtual - virtual void reload(); // XXX HACK should be pure virtual -sh 20211214 ITrackerDialog(); ~ITrackerDialog() override; }; -inline void ITrackerDialog::save() {} -inline void ITrackerDialog::reload() {} - // call once with your chosen class names in the plugin #define OPENTRACK_DECLARE_TRACKER(tracker_class, dialog_class, metadata_class) \ OPENTRACK_DECLARE_PLUGIN_INTERNAL(tracker_class, ITracker, metadata_class, dialog_class, ITrackerDialog) |