rename the files and use the new interface to communicate with the backend

This commit is contained in:
Sven Czarnian
2021-11-13 22:59:04 +01:00
parent 50bb565229
commit 8b1292c95a
4 changed files with 28 additions and 34 deletions

View File

@@ -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);
}