#include "selected-libraries.hpp" #include SelectedLibraries::SelectedLibraries(QFrame* frame, dylibptr t, dylibptr p, dylibptr f) : pTracker(nullptr), pFilter(nullptr), pProtocol(nullptr), correct(false) { pProtocol = make_dylib_instance(p); if (!pProtocol) { qDebug() << "protocol dylib load failure"; return; } if(!pProtocol->correct()) { qDebug() << "protocol load failure"; pProtocol = nullptr; return; } pTracker = make_dylib_instance(t); pFilter = make_dylib_instance(f); if (!pTracker) { qDebug() << "tracker dylib load failure"; return; } pTracker->start_tracker(frame); correct = true; }