Code mostly by Gav Wood <gav@kde.org>
LIRC interface code adapted from Noatun/Infrared by Malte Starostik.