diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-03-29 14:26:42 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-03-29 14:26:42 +0200 |
commit | 9de8f8910535b1c1258bad3d953719b65a32d866 (patch) | |
tree | fbf4d34091086c9eadb81df0d67d9f4cc6a82b41 /api | |
parent | d7c268c886226c22e7df0d9aeb901dc62f2f94ac (diff) |
api: make ITrackerDialog::register_tracker optional
Diffstat (limited to 'api')
-rw-r--r-- | api/plugin-api.cpp | 3 | ||||
-rw-r--r-- | api/plugin-api.hpp | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/api/plugin-api.cpp b/api/plugin-api.cpp index 20c24e62..729b011f 100644 --- a/api/plugin-api.cpp +++ b/api/plugin-api.cpp @@ -12,6 +12,9 @@ IProtocolDialog::~IProtocolDialog() {} ITracker::~ITracker() {} ITrackerDialog::~ITrackerDialog() {} +void ITrackerDialog::register_tracker(ITracker*) {} +void ITrackerDialog::unregister_tracker() {} + BaseDialog::BaseDialog() {} void BaseDialog::closeEvent(QCloseEvent*) diff --git a/api/plugin-api.hpp b/api/plugin-api.hpp index 0588d3f8..533facfb 100644 --- a/api/plugin-api.hpp +++ b/api/plugin-api.hpp @@ -172,9 +172,9 @@ struct OTR_API_EXPORT ITrackerDialog : public plugin_api::detail::BaseDialog // optional destructor virtual ~ITrackerDialog(); // receive a pointer to the tracker from ui thread - virtual void register_tracker(ITracker *tracker) = 0; + virtual void register_tracker(ITracker *tracker); // received tracker pointer is about to get deleted - virtual void unregister_tracker() = 0; + virtual void unregister_tracker(); ITrackerDialog(); }; |