view Utils/LogEvent.h @ 5:115cfa4a3239 default tip

Added icon upload function for OSTC 4/5 For the upload the same process as the one for the firmware update is used => CRC functionality has been copied from the ostc_pack SW
author Ideenmodellierer
date Tue, 30 Dec 2025 21:41:02 +0100
parents 0b3630a29ad8
children
line wrap: on
line source

/////////////////////////////////////////////////////////////////////////////
/// \file   LogEvent.h
/// \brief  User event to pass async messages to the console widget.
/// \author JD Gascuel.
/// \copyright (c) 2015 JD Gascuel. All rights reserved.
/// $Id$
///////////////////////////////////////////////////////////////////////////////
// HISTORY
//  2015-07-06 : Creation

#ifndef LOGEVENT_H
#define LOGEVENT_H

#include <QEvent>
#include <QString>

class LogEvent : public QEvent
{
    static QEvent::Type _logEventType;
    LogEvent(const QString& message);

    QString _message;

public:
    static LogEvent* make(const QString& message);

    inline QString what() const { return _message; }
};

#endif // LOGEVENT_H