summaryrefslogtreecommitdiffhomepage
path: root/api/plugin-api.cpp
blob: 92602b117be6062e79000ead006c2cdcdb22f3fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "plugin-api.hpp"

// these exist so that vtable is emitted in a single compilation unit, not all of them.

Metadata::~Metadata() {}
IFilter::~IFilter() {}
IFilterDialog::~IFilterDialog() {}
IProtocol::~IProtocol() {}
IProtocolDialog::~IProtocolDialog() {}
ITracker::~ITracker() {}
ITrackerDialog::~ITrackerDialog() {}

plugin_api::detail::BaseDialog::BaseDialog() {}

void plugin_api::detail::BaseDialog::closeEvent(QCloseEvent*)
{
    if (isVisible())
    {
        hide();
        emit closing();
    }
}

Metadata::Metadata() {}
IFilter::IFilter() {}
IFilterDialog::IFilterDialog() {}
IProtocol::IProtocol() {}
IProtocolDialog::IProtocolDialog() {}
ITracker::ITracker() {}
ITrackerDialog::ITrackerDialog() {}

void plugin_api::detail::BaseDialog::done(int) { close(); hide(); }