diff --git a/src/Application.cpp b/src/Application.cpp index b985395a..99d372bb 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -73,7 +73,7 @@ void Application::startup() { auto applicationEventListener = this->applicationEventListener; this->eventManager.registerListener(applicationEventListener); applicationEventListener->registerCallbackForEventType( - std::bind(&Application::handleShutdownApplicationEvent, this, std::placeholders::_1) + std::bind(&Application::onShutdownApplicationRequest, this, std::placeholders::_1) ); this->applicationConfig = this->extractConfig(); @@ -107,7 +107,7 @@ void Application::startup() { } applicationEventListener->registerCallbackForEventType( - std::bind(&Application::handleTargetControllerStateChangedEvent, this, std::placeholders::_1) + std::bind(&Application::onTargetControllerStateChanged, this, std::placeholders::_1) ); applicationEventListener->registerCallbackForEventType( @@ -316,14 +316,14 @@ void Application::stopDebugServer() { } } -void Application::handleTargetControllerStateChangedEvent(EventPointer event) { +void Application::onTargetControllerStateChanged(EventPointer event) { if (event->getState() == ThreadState::STOPPED || event->getState() == ThreadState::SHUTDOWN_INITIATED) { // TargetController has unexpectedly shutdown - it must have encountered a fatal error. this->shutdown(); } } -void Application::handleShutdownApplicationEvent(EventPointer) { +void Application::onShutdownApplicationRequest(EventPointer) { Logger::debug("ShutdownApplication event received."); this->shutdown(); } diff --git a/src/Application.hpp b/src/Application.hpp index 56a89746..d35c4773 100644 --- a/src/Application.hpp +++ b/src/Application.hpp @@ -228,7 +228,7 @@ namespace Bloom * * @param event */ - void handleTargetControllerStateChangedEvent(EventPointer event); + void onTargetControllerStateChanged(EventPointer event); /** * Same goes for the DebugServer - it should never shutdown unless a shutdown request was issued. If it does, @@ -241,7 +241,7 @@ namespace Bloom /** * Triggers a shutdown of Bloom and all of its components. */ - void handleShutdownApplicationEvent(EventPointer); + void onShutdownApplicationRequest(EventPointer); /** * Returns the path to the directory in which the Bloom binary resides.