YAMI4 C++
event_callback.h
1 // Copyright Maciej Sobczak 2008-2019.
2 // This file is part of YAMI4.
3 //
4 // YAMI4 is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // YAMI4 is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with YAMI4. If not, see <http://www.gnu.org/licenses/>.
16 
17 #ifndef YAMICPP_EVENT_CALLBACK_H_INCLUDED
18 #define YAMICPP_EVENT_CALLBACK_H_INCLUDED
19 
20 #include <yami4-core/dll.h>
21 #include <cstddef>
22 
23 namespace yami
24 {
25 
37 class DLL event_callback
38 {
39 public:
40  virtual ~event_callback() {}
41 
42  virtual void agent_created() {}
43  virtual void agent_closed() {}
44  virtual void listener_added(const char * /* target */) {}
45  virtual void listener_removed(const char * /* target */) {}
46  virtual void incoming_connection_open(const char * /* target */) {}
47  virtual void outgoing_connection_open(const char * /* target */) {}
48  virtual void connection_closed(const char * /* target */) {}
49  virtual void connection_error(const char * /* target */) {}
50  virtual void object_registered(const char * /* name */) {}
51  virtual void object_unregistered(const char * /* name */) {}
52  virtual void message_sent(
53  const char * /* target */, std::size_t /* size */) {}
54  virtual void message_received(
55  const char * /* target */, std::size_t /* size */) {}
56 };
57 
58 } // namespace yami
59 
60 #endif // YAMICPP_EVENT_CALLBACK_H_INCLUDED
Event notification callback interface.
Definition: event_callback.h:37
Connection was closed.
Definition: connection_event.h:28
Namespace devoted to everything related to YAMI4.
Definition: activity_statistics_monitor.cpp:27