#include <usertable.h>
Public Member Functions | |
EventDispatcher (Inotify *pIn) | |
Constructor. | |
~EventDispatcher () | |
Destructor. | |
void | DispatchEvent (InotifyEvent &rEvt) |
Dispatches an event. | |
void | Register (InotifyWatch *pWatch, UserTable *pTab) |
Registers a watch for an user table. | |
void | Unregister (InotifyWatch *pWatch) |
Unregisters a watch. | |
void | UnregisterAll (UserTable *pTab) |
Unregisters all watches for an user table. |
This class distributes inotify events to appropriate user tables.
EventDispatcher::EventDispatcher | ( | Inotify * | pIn | ) |
Constructor.
[in] | pIn | inotify object |
EventDispatcher::~EventDispatcher | ( | ) | [inline] |
Destructor.
void EventDispatcher::DispatchEvent | ( | InotifyEvent & | rEvt | ) |
Dispatches an event.
[in] | rEvt | inotify event |
void EventDispatcher::Register | ( | InotifyWatch * | pWatch, | |
UserTable * | pTab | |||
) |
Registers a watch for an user table.
[in] | pWatch | inotify watch |
[in] | pTab | user table |
void EventDispatcher::Unregister | ( | InotifyWatch * | pWatch | ) |
Unregisters a watch.
[in] | pWatch | inotify watch |
void EventDispatcher::UnregisterAll | ( | UserTable * | pTab | ) |
Unregisters all watches for an user table.
[in] | pTab | user table |