1 #ifndef _NOVA_ERROR_HANDLER_NODE_INFO_H_
2 #define _NOVA_ERROR_HANDLER_NODE_INFO_H_
4 #include "ErrorHandler/MessageAnalyzer/ma_utils.h"
6 #include <QtWidgets/QListWidget>
12 namespace errorhandler {
25 sev_code_t highest_sev;
26 QListWidgetItem* item_ptr;
27 node_type_t node_type;
29 NodeInfo(node_type_t type, std::string
const& key, QListWidget* parent,
bool aow,
bool aoe);
31 node_status push_msg(
qt_mf_msg const& msg);
32 QString msgs_to_string()
const;
34 std::string key_string()
const {
return key_str; }
36 bool alarm_on_warning()
const {
return alarm_warning; }
37 bool alarm_on_error()
const {
return alarm_error; }
39 void set_alarm_on_warning(
bool flag)
42 update_icon(highest_sev);
44 void set_alarm_on_error(
bool flag)
47 update_icon(highest_sev);
53 QString get_caption(std::string
const& key)
const;
54 void get_icon_geometry(
int& icon_w,
int& icon_h)
const;
55 void get_node_geometry(
int& node_w,
int& node_h)
const;
56 void update_icon(sev_code_t sev);
65 static const size_t MAX_QUEUE = 10;
68 static const int MAINCOMPONENT_ICON_WIDTH = 34;
69 static const int MAINCOMPONENT_ICON_HEIGHT = 34;
70 static const int MAINCOMPONENT_NODE_WIDTH = 80;
71 static const int MAINCOMPONENT_NODE_HEIGHT = 65;
73 static const int BUFFERNODE_ICON_WIDTH = 34;
74 static const int BUFFERNODE_ICON_HEIGHT = 34;
75 static const int BUFFERNODE_NODE_WIDTH = 65;
76 static const int BUFFERNODE_NODE_HEIGHT = 65;
78 static const int DCM_ICON_WIDTH = 34;
79 static const int DCM_ICON_HEIGHT = 34;
80 static const int DCM_NODE_WIDTH = 65;
81 static const int DCM_NODE_HEIGHT = 65;
87 Q_DECLARE_METATYPE(novadaq::errorhandler::msgs_t)
88 Q_DECLARE_METATYPE(novadaq::errorhandler::msgs_sp_t)
Qt wrapper around MessageFacility message