implemented enclosure handling on Sailfish OS, fixes issue #28