2 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
3 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
4 // Stefan Bund <g0dil@berlios.de>
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the
18 // Free Software Foundation, Inc.,
19 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 \brief Events public header */
29 //#include "Events.mpp"
30 ///////////////////////////////hh.p////////////////////////////////////////
35 /** \brief Generic event interface baseclass
37 The EventDescriptor baseclass provides an interface to manuplate events in a generic
38 way. This allows to register events or to temporarily disable event processing.
43 bool enabled(); ///< Check, whether the event is currently enabled
44 void enabled(bool); ///< Enable or disable the event
47 typedef unspecified CallbackType; ///< Fixed type of the (internal) event handler.
49 void register(CallbackType handler); ///< Register the event
50 void unregister(); ///< Unregister the event
53 virtual void v_register(CallbackType handler) = 0; ///< Called to register the event
54 virtual void v_unregister() = 0; ///< Called to unregister the event
55 virtual void v_enable() = 0; ///< Called to enable the event delivery
56 virtual void v_disable() = 0; ///< Called to disable the event delilvery
57 virtual void v_process() = 0; ///< Called whenever the event is signaled
58 /**< This virtual method is called \e after every call to
59 the event handler to provide a hook for further
60 processing (example: calculate the next time, an
61 interval timer expires) */
68 ///////////////////////////////hh.e////////////////////////////////////////
69 //#include "Events.cci"
70 //#include "Events.ct"
71 //#include "Events.cti"
78 // c-file-style: "senf"
79 // indent-tabs-mode: nil
80 // ispell-local-dictionary: "american"