rename the files and use the new interface to communicate with the backend
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
#include <Shlwapi.h>
|
||||
#include <Windows.h>
|
||||
|
||||
#include <aman/com/AircraftReporter.h>
|
||||
#include <aman/com/AircraftScheduler.h>
|
||||
#include <aman/com/BackendNotification.h>
|
||||
#include <aman/config/CommunicationFileFormat.h>
|
||||
#include <aman/config/IdentifierFileFormat.h>
|
||||
#include <aman/helper/String.h>
|
||||
@@ -76,7 +76,7 @@ PlugIn::PlugIn() :
|
||||
|
||||
PlugIn::~PlugIn() noexcept {
|
||||
AircraftScheduler::instance().deinitialize();
|
||||
AircraftReporter::instance().deinitialize();
|
||||
BackendNotification::instance().deinitialize();
|
||||
ZmqContext::instance().deinitialize();
|
||||
google::protobuf::ShutdownProtobufLibrary();
|
||||
}
|
||||
@@ -260,6 +260,6 @@ void PlugIn::OnRadarTargetPositionUpdate(EuroScopePlugIn::CRadarTarget radarTarg
|
||||
report.set_allocated_position(coordinate);
|
||||
|
||||
/* send the report */
|
||||
if (false == AircraftReporter::instance().send(report))
|
||||
this->DisplayUserMessage(PLUGIN_NAME, "ERROR", ("Unable to send a report for " + aircraft->callsign()).c_str(), true, true, true, true, true);
|
||||
if (false == BackendNotification::instance().send(update))
|
||||
this->DisplayUserMessage(PLUGIN_NAME, "ERROR", "Unable to send a new aircraft report update", true, true, true, true, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user