Mercurial > public > ostc_companion
view Utils/LogEvent.cpp @ 3:4ace58a7c03c
Send disconnect command before closing the connection
The old BT module transmitted a notification in case a connection were
closed which cause the ostc to exit the uart loop. The new one doesn't
do this => send disconnect command to avoid waiting in the installation
loop till timeout or button press.
| author | Ideenmodellierer |
|---|---|
| date | Fri, 28 Nov 2025 20:00:02 +0100 |
| parents | 0b3630a29ad8 |
| children |
line wrap: on
line source
///////////////////////////////////////////////////////////////////////////// /// \file LogEvent.cpp /// \brief User event to pass async messages to the console widget. /// \author JD Gascuel. /// \copyright (c) 2015 JD Gascuel. All rights reserved. /// $Id$ /////////////////////////////////////////////////////////////////////////////// #include "LogEvent.h" #include <QEvent> ////////////////////////////////////////////////////////////////////////////// QEvent::Type LogEvent::_logEventType = QEvent::None; ////////////////////////////////////////////////////////////////////////////// LogEvent::LogEvent(const QString& message) : QEvent(_logEventType), _message(message) { } ////////////////////////////////////////////////////////////////////////////// LogEvent* LogEvent::make(const QString& message) { if( _logEventType == QEvent::None ) _logEventType = (QEvent::Type) QEvent::registerEventType(); return new LogEvent(message); }
