#include "valarmstatushelper.h" #include "GuiController.h" using namespace View; VAlarmStatusHelper::VAlarmStatusHelper(QObject* parent) : VAlarmStatus(parent){ initConnections(); } //// void VAlarmStatusHelper::initConnections() { ACTION_RECEIVE_BRIDGE_CONNECTION(Gui::_GuiController, AlarmStatusData); } void VAlarmStatusHelper::onActionReceive(const AlarmStatusData &vData) { qDebug() << "TopC" << vData.mAlarmtop; alarmMessage ( QString("Message:%1").arg(vData.mAlarmtop) ); // *** has to be the last to let the information to be set and then emit the signal *** // *** otherwise will use the previous values before being set. *** adjustment ( true ); }