SEDNL  .
Simple Event Driven Network Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EventConsumer.ipp
1 // SEDNL - Copyright (c) 2013 Jeremy S. Cochoy
2 //
3 // This software is provided 'as-is', without any express or implied warranty.
4 // In no event will the authors be held liable for any damages arising from
5 // the use of this software.
6 //
7 // Permission is granted to anyone to use this software for any purpose,
8 // including commercial applications, and to alter it and redistribute it
9 // freely, subject to the following restrictions:
10 //
11 // 1. The origin of this software must not be misrepresented; you must not
12 // claim that you wrote the original software. If you use this software
13 // in a product, an acknowledgment in the product documentation would
14 // be appreciated but is not required.
15 //
16 // 2. Altered source versions must be plainly marked as such, and must not
17 // be misrepresented as being the original software.
18 //
19 // 3. This notice may not be removed or altered from any source
20 // distribution.
21 
22 #ifndef EVENT_CONSUMER_IPP_
23 #define EVENT_CONSUMER_IPP_
24 
25 namespace SedNL
26 {
27 
29 {
30  return m_on_disconnect_slot;
31 }
32 
34 {
35  return m_on_server_disconnect_slot;
36 }
37 
39 {
40  return m_on_event_slot;
41 }
42 
44 {
45  return m_slots[event_name];
46 }
47 
48 } // namespace SedNL
49 
50 #endif /* !EVENT_CONSUMER_IPP_ */