• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

kremotecontrol

  • sources
  • kde-4.12
  • kdeutils
  • kremotecontrol
  • libkremotecontrol
  • backends
  • lirc
lircremotecontrol.h
Go to the documentation of this file.
1 /*
2  Copyright (C) <2009> Michael Zanetti <michael_zanetti@gmx.net>
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License along
15  with this program; if not, write to the Free Software Foundation, Inc.,
16  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 
18 */
19 
20 #ifndef LIRC_REMOTECONTROL
21 #define LIRC_REMOTECONTROL
22 
23 
24 #include "ifaces/remotecontrolinterface.h"
25 
26 #include <QtCore/qobject.h>
27 #include <QVariantMap>
28 
29 
30 class LircRemoteControlPrivate;
31 
32 class LircRemoteControl : public QObject, virtual public Iface::RemoteControl
33 {
34  Q_OBJECT
35  Q_INTERFACES(Iface::RemoteControl)
36 
37 public:
38  LircRemoteControl(const QString &name);
39  virtual ~LircRemoteControl();
40  virtual QString name() const;
41  virtual QList<RemoteControlButton> buttons() const;
42 
43 Q_SIGNALS:
44  void buttonPressed(const RemoteControlButton &button);
45  void remoteControlAdded(const QString &name);
46  void remoteControlRemoved(const QString &name);
47  void _k_destroyed();
48 
49 private:
50  LircRemoteControlPrivate *d;
51 
56  RemoteControlButton::ButtonId lircButtonToRemoteControlButton(const QString &buttonName) const;
57 
63  QString formatNamespaceButton(const QString &buttonName) const;
64 
65 private Q_SLOTS:
66  void commandReceived(const QString &remote, const QString &button, int repeatCounter);
67 };
68 
69 #endif
LircRemoteControl::remoteControlRemoved
void remoteControlRemoved(const QString &name)
LircRemoteControl::~LircRemoteControl
virtual ~LircRemoteControl()
Definition: lircremotecontrol.cpp:48
LircRemoteControl::LircRemoteControl
LircRemoteControl(const QString &name)
Definition: lircremotecontrol.cpp:42
QObject
remotecontrolinterface.h
Iface::RemoteControl
Definition: remotecontrolinterface.h:30
LircRemoteControl::buttonPressed
void buttonPressed(const RemoteControlButton &button)
LircRemoteControl::name
virtual QString name() const
Definition: lircremotecontrol.cpp:54
LircRemoteControl
Definition: lircremotecontrol.h:32
LircRemoteControl::remoteControlAdded
void remoteControlAdded(const QString &name)
LircRemoteControl::buttons
virtual QList< RemoteControlButton > buttons() const
Definition: lircremotecontrol.cpp:59
RemoteControlButton::ButtonId
ButtonId
Definition: remotecontrolbutton.h:33
LircRemoteControl::_k_destroyed
void _k_destroyed()
RemoteControlButton
Definition: remotecontrolbutton.h:30
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kremotecontrol

Skip menu "kremotecontrol"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal