textinput: add helpers for converting the quint32 values from enums
Unfortunately between v0, v2 and v3 these enums have slightly different values on protocol side, so we need to have a helper on the TextInputInterface, which converts the KWaylandServer enum to the values specified by the wayland protocol.