59 lines
1.5 KiB
C++
Executable File
59 lines
1.5 KiB
C++
Executable File
/**
|
|
* Handler for all Language HMI objects
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Hanna E. Rathje, SLSE, 2015-09-03
|
|
*/
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QMap>
|
|
#include <EffectShowClient/esc_db.h>
|
|
|
|
#include "handler_vehicle.h"
|
|
#include "dds_handler.h"
|
|
#include "esc_convert_from_tab.h"
|
|
#include "logger.h"
|
|
#include "esc_helper.h"
|
|
|
|
namespace EffectShowClient
|
|
{
|
|
|
|
class MainHandler;
|
|
class HandlerFiringSmoke : public QObject
|
|
, protected Interface::Fts::ManuallySmokeRequestHandler
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit HandlerFiringSmoke(MainHandler *mainHandler,
|
|
QObject *parent = nullptr);
|
|
|
|
~HandlerFiringSmoke();
|
|
|
|
bool init();
|
|
|
|
void setFiringClearanceDuration();
|
|
int getCurrentorderId() { return m_firingSmokeEntity.idOrder(); }
|
|
void setSmoking();
|
|
|
|
private Q_SLOTS:
|
|
void onStartHandlerFiring(const Database::EscOrder &escOrder);
|
|
void onEndHandlerFiring(const Database::EscOrder &escOrder);
|
|
void onEffectShowStopped(qint16 idEffectShow);
|
|
void onEffectShowContinued(const ConvertFromTab::EffectShowContinue_t &effectShowContinue);
|
|
void onSafetyConfirmation(const SafetyConfirmation_e &safetyConfirmation);
|
|
void onStatusSmokeFiring(const StatusSmokeFiring_t &statusSmokeFiring);
|
|
|
|
private:
|
|
void onManuallySmokeRequest(const rti::core::SampleIdentity &cookie,
|
|
const ManuallySmokeRequest &request);
|
|
|
|
|
|
private:
|
|
MainHandler *m_mainHandler;
|
|
EffectShowClient::FiringSmokeEntity m_firingSmokeEntity;
|
|
NGL::INGLLogger &m_logger;
|
|
};
|
|
}
|