device: define StateChangeReason and MeteredStatus as Q_ENUMs
So that e.g. users of the library can easily print them as strings.
Differential Revision: https://phabricator.kde.org/D10309