Line data Source code
1 : /*
2 : * messenger_proxy.cpp
3 : *
4 : * Created on: Nov 4, 2015
5 : * Author: lgeorgop
6 : */
7 :
8 : #include "dbe/messenger_proxy.hpp"
9 :
10 : namespace dbe
11 : {
12 : namespace interface
13 : {
14 :
15 0 : messenger_proxy::messenger_proxy() = default;
16 :
17 0 : messenger_proxy & messenger_proxy::ref()
18 : {
19 0 : static messenger_proxy inner_messenger;
20 0 : return inner_messenger;
21 : }
22 :
23 0 : void messenger_proxy::debug ( t_extstr const & title, t_extstr const & msg )
24 : {
25 0 : emit signal_debug ( QObject::tr ( title.c_str() ), QObject::tr ( msg.c_str() ) );
26 0 : }
27 :
28 0 : void messenger_proxy::info ( t_extstr const & title, t_extstr const & msg )
29 : {
30 0 : emit signal_info ( QObject::tr ( title.c_str() ), QObject::tr ( msg.c_str() ) );
31 0 : }
32 :
33 0 : void messenger_proxy::note ( t_extstr const & title, t_extstr const & msg )
34 : {
35 0 : emit signal_note ( QObject::tr ( title.c_str() ), QObject::tr ( msg.c_str() ) );
36 0 : }
37 :
38 0 : void messenger_proxy::warn ( t_extstr const & title, t_extstr const & msg )
39 : {
40 0 : emit signal_warn ( QObject::tr ( title.c_str() ), QObject::tr ( msg.c_str() ) );
41 0 : }
42 :
43 0 : void messenger_proxy::error ( t_extstr const & title, t_extstr const & msg )
44 : {
45 0 : emit signal_error ( QObject::tr ( title.c_str() ), QObject::tr ( msg.c_str() ) );
46 0 : }
47 :
48 0 : void messenger_proxy::fail ( t_extstr const & title, t_extstr const & msg )
49 : {
50 0 : emit signal_fail ( QObject::tr ( title.c_str() ), QObject::tr ( msg.c_str() ) );
51 0 : }
52 :
53 : } /* end namespace interface */
54 : } /* end namespace dbe */
55 :
|