summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-03-29 14:26:42 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-03-29 14:26:42 +0200
commit9de8f8910535b1c1258bad3d953719b65a32d866 (patch)
treefbf4d34091086c9eadb81df0d67d9f4cc6a82b41 /api
parentd7c268c886226c22e7df0d9aeb901dc62f2f94ac (diff)
api: make ITrackerDialog::register_tracker optional
Diffstat (limited to 'api')
-rw-r--r--api/plugin-api.cpp3
-rw-r--r--api/plugin-api.hpp4
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();
};