3
* Copyright (C) 2002 Zsolt Rizsanyi <rizsanyi@myrealbox.com>
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Library General Public
7
* License as published by the Free Software Foundation; either
8
* version 2 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Library General Public License for more details.
15
* You should have received a copy of the GNU Library General Public License
16
* along with this library; see the file COPYING.LIB. If not, write to
17
* the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
18
* Boston, MA 02110-1301, USA.
33
#ifdef HAVE_LIRC_KDETV
34
# include <lirc/lirc_client.h>
38
* Object for lirc support.
40
class Lirc : public QObject
46
* Creates a lirc connection, and initializes configuration with appname @p appname.
48
Lirc( QObject *parent, const QString& appname);
52
* Sets the default keymap to use if there is no lirc config file, or default is specified
54
* @p keymap will be deleted in the destructor
56
void setDefaultKeyMap(const QMap<QString, QString>& keymap) { _keymap = keymap; }
60
* an event received from lirc
61
* you get this signal only if a not recognized key is pressed
62
* @p key the name of the key pressed
64
void event(const QString& key, unsigned repeat);
67
* lirc command received
68
* @p cmd the cmd corresponding to pressed lirc key (as defined in the lirc config file)
70
void command(const QString& cmd, unsigned repeat);
77
#ifdef HAVE_LIRC_KDETV
81
QMap<QString, QString> _keymap;