Line data Source code
1 : // DUNE DAQ modification notice:
2 : // This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
3 : // Fork baseline commit: dbe-02-12-17 (2022-05-12).
4 : // Renamed since fork: no.
5 :
6 : /*
7 : * messenger_proxy.cpp
8 : *
9 : * Created on: Nov 4, 2015
10 : * Author: lgeorgop
11 : */
12 :
13 : #include "dbe/messenger_proxy.hpp"
14 :
15 : namespace dbe {
16 : namespace interface {
17 :
18 0 : messenger_proxy::messenger_proxy() = default;
19 :
20 : messenger_proxy&
21 0 : messenger_proxy::ref()
22 : {
23 0 : static messenger_proxy inner_messenger;
24 0 : return inner_messenger;
25 : }
26 :
27 : void
28 0 : messenger_proxy::debug(t_extstr const& title, t_extstr const& msg)
29 : {
30 0 : emit signal_debug(QObject::tr(title.c_str()), QObject::tr(msg.c_str()));
31 0 : }
32 :
33 : void
34 0 : messenger_proxy::info(t_extstr const& title, t_extstr const& msg)
35 : {
36 0 : emit signal_info(QObject::tr(title.c_str()), QObject::tr(msg.c_str()));
37 0 : }
38 :
39 : void
40 0 : messenger_proxy::note(t_extstr const& title, t_extstr const& msg)
41 : {
42 0 : emit signal_note(QObject::tr(title.c_str()), QObject::tr(msg.c_str()));
43 0 : }
44 :
45 : void
46 0 : messenger_proxy::warn(t_extstr const& title, t_extstr const& msg)
47 : {
48 0 : emit signal_warn(QObject::tr(title.c_str()), QObject::tr(msg.c_str()));
49 0 : }
50 :
51 : void
52 0 : messenger_proxy::error(t_extstr const& title, t_extstr const& msg)
53 : {
54 0 : emit signal_error(QObject::tr(title.c_str()), QObject::tr(msg.c_str()));
55 0 : }
56 :
57 : void
58 0 : messenger_proxy::fail(t_extstr const& title, t_extstr const& msg)
59 : {
60 0 : emit signal_fail(QObject::tr(title.c_str()), QObject::tr(msg.c_str()));
61 0 : }
62 :
63 : } /* end namespace interface */
64 : } /* end namespace dbe */
|