summaryrefslogtreecommitdiffstats
path: root/plugins/lirc/lircsupport.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-06-18 22:59:25 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-07-10 17:59:48 +0900
commit5161d40d204dc6dbd9c34b5be0052243240f15b1 (patch)
tree5ccc61290c25f3c1f18a1e821ea59f90df97518e /plugins/lirc/lircsupport.cpp
parente46a8b8db6082f7d5e293407d654f127c48a0256 (diff)
downloadtderadio-5161d40d204dc6dbd9c34b5be0052243240f15b1.tar.gz
tderadio-5161d40d204dc6dbd9c34b5be0052243240f15b1.zip
CMake conversion.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit bc7518bdba609f90ee89de8b4e7ddaa1e567b1a8)
Diffstat (limited to 'plugins/lirc/lircsupport.cpp')
-rw-r--r--plugins/lirc/lircsupport.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/plugins/lirc/lircsupport.cpp b/plugins/lirc/lircsupport.cpp
index 8fef92f..adb4bb1 100644
--- a/plugins/lirc/lircsupport.cpp
+++ b/plugins/lirc/lircsupport.cpp
@@ -17,9 +17,7 @@
#include "lircsupport.h"
-#ifdef HAVE_LIRC
#include <lirc/lirc_client.h>
-#endif
#include <tqsocketnotifier.h>
#include <tqtimer.h>
@@ -43,9 +41,7 @@
///////////////////////////////////////////////////////////////////////
//// plugin library functions
-//#ifdef HAVE_LIRC
PLUGIN_LIBRARY_FUNCTIONS(LircSupport, "tderadio-lirc", i18n("Linux Infrared Control (LIRC) Support"));
-//#endif
/////////////////////////////////////////////////////////////////////////////
@@ -54,7 +50,6 @@ LircSupport::LircSupport(const TQString &name)
m_TakeRawLIRC(false)
{
-#ifdef HAVE_LIRC
logDebug(i18n("initializing tderadio lirc plugin"));
fprintf (stderr, "%s\n", (const char*)i18n("initializing tderadio lirc plugin").utf8());
char *prg = (char*)"tderadio";
@@ -111,7 +106,6 @@ LircSupport::LircSupport(const TQString &name)
logDebug(i18n("Initializing tderadio lirc plugin successful"));
fprintf (stderr, "%s\n", (const char*)i18n("Initializing tderadio lirc plugin successful").utf8());
}
-#endif
m_kbdTimer = new TQTimer (this);
TQObject::connect (m_kbdTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotKbdTimedOut()));
@@ -122,20 +116,17 @@ LircSupport::LircSupport(const TQString &name)
LircSupport::~LircSupport()
{
-#ifdef HAVE_LIRC
if (m_fd_lirc != -1)
lirc_deinit();
if (m_lircConfig)
lirc_freeconfig(m_lircConfig);
m_fd_lirc = -1;
m_lircConfig = 0;
-#endif
}
void LircSupport::slotLIRC(int /*socket*/ )
{
-#ifdef HAVE_LIRC
if (!m_lircConfig || !m_lirc_notify || m_fd_lirc == -1)
return;
@@ -173,7 +164,6 @@ void LircSupport::slotLIRC(int /*socket*/ )
if (code)
free (code);
-#endif
}