summaryrefslogtreecommitdiff
path: root/src/eventlistener.h
AgeCommit message (Collapse)AuthorFilesLines
2025-01-21Replaced include guards with #pragma onceThorbjørn Lindeijer1-4/+1
Thanks to https://github.com/cgmb/guardonce and a follow-up replace to remove duplicated newlines at end of file: find src -type f -name '*.h' -exec \ sed --in-place -e :a -e '/^\n*$/{$d;N;};/\n$/ba' {} \; Source: https://unix.stackexchange.com/questions/81685/how-to-remove-multiple-newlines-at-eof Fixes compile on macOS, which appears to have been due to the EVENT_H include guard.
2025-01-21Fixed ConfigOptionChanged eventsThorbjørn Lindeijer1-2/+0
With the statically typed config we no longer get an event for each changed config value. Where relevant, this is now done through `setConfigValue`. The `Event` now uses a `std::any`, which for `ConfigOptionChanged` events is set to the changed `Config` member. This allows for a type-safe check on which config value was changed.
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2011-04-09Renamed Listener to EventListenerThorbjørn Lindeijer1-0/+40
Makes it clear what kind of listener it is, since there are other listener classes as well. Acked-by: Jared Adams