aboutsummaryrefslogtreecommitdiff
path: root/lib/events/stateevent.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-05-06 22:17:55 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-05-08 17:43:58 +0200
commite7a4b5a545b0f59b95ca8097009dbf6eea534db1 (patch)
treea46e434c077cba00307053169b856142304e5e41 /lib/events/stateevent.cpp
parent41f630cf7be6e806e498cb31711f403bf6919ff8 (diff)
downloadlibquotient-e7a4b5a545b0f59b95ca8097009dbf6eea534db1.tar.gz
libquotient-e7a4b5a545b0f59b95ca8097009dbf6eea534db1.zip
Generalise DEFINE_SIMPLE_EVENT
This macro was defined in accountdataevents.h but adding one more parameter (base class) makes it applicable to pretty much any event with the content that has one key-value pair (though state events already have a non-macro solution in the form of `StateEvent<EventContent::SingleKeyValue>`). Now CustomEvent definition in quotest.cpp can be replaced with a single line.
Diffstat (limited to 'lib/events/stateevent.cpp')
0 files changed, 0 insertions, 0 deletions