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 : {
17 : namespace interface
18 : {
19 :
20 0 : messenger_proxy::messenger_proxy() = default;
21 :
22 0 : messenger_proxy & messenger_proxy::ref()
23 : {
24 0 : static messenger_proxy inner_messenger;
25 0 : return inner_messenger;
26 : }
27 :
28 0 : void 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 0 : void messenger_proxy::info ( t_extstr const & title, t_extstr const & msg )
34 : {
35 0 : emit signal_info ( QObject::tr ( title.c_str() ), QObject::tr ( msg.c_str() ) );
36 0 : }
37 :
38 0 : void messenger_proxy::note ( t_extstr const & title, t_extstr const & msg )
39 : {
40 0 : emit signal_note ( QObject::tr ( title.c_str() ), QObject::tr ( msg.c_str() ) );
41 0 : }
42 :
43 0 : void messenger_proxy::warn ( t_extstr const & title, t_extstr const & msg )
44 : {
45 0 : emit signal_warn ( QObject::tr ( title.c_str() ), QObject::tr ( msg.c_str() ) );
46 0 : }
47 :
48 0 : void messenger_proxy::error ( t_extstr const & title, t_extstr const & msg )
49 : {
50 0 : emit signal_error ( QObject::tr ( title.c_str() ), QObject::tr ( msg.c_str() ) );
51 0 : }
52 :
53 0 : void messenger_proxy::fail ( t_extstr const & title, t_extstr const & msg )
54 : {
55 0 : emit signal_fail ( QObject::tr ( title.c_str() ), QObject::tr ( msg.c_str() ) );
56 0 : }
57 :
58 : } /* end namespace interface */
59 : } /* end namespace dbe */
60 :
|