handler: states: minor formatting
handler: states: call registerState to create states
handlers: state: keep local reference to apartment instance
event handlers: move SystemEvent to system_handlers source file
handlers: remove unneeded headers from system_states
build/sources.list | 1 +
src/eventinterpretersystemplugins.cpp | 25 ------------------
src/handler/system_handlers.cpp | 53 +++++++++++++++++++++++++++++++++++++
src/handler/system_states.cpp | 190 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------
src/handler/system_states.h | 1 +
5 files changed, 137 insertions(+), 133 deletions(-)