summaryrefslogtreecommitdiffstats
path: root/kradio3/plugins/lirc/lircsupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'kradio3/plugins/lirc/lircsupport.h')
-rw-r--r--kradio3/plugins/lirc/lircsupport.h45
1 files changed, 23 insertions, 22 deletions
diff --git a/kradio3/plugins/lirc/lircsupport.h b/kradio3/plugins/lirc/lircsupport.h
index 47a113f..f809dc6 100644
--- a/kradio3/plugins/lirc/lircsupport.h
+++ b/kradio3/plugins/lirc/lircsupport.h
@@ -22,7 +22,7 @@
#include <config.h>
#endif
-#include <qobject.h>
+#include <tqobject.h>
#include "../../src/include/timecontrol_interfaces.h"
#include "../../src/include/radio_interfaces.h"
#include "../../src/include/radiodevicepool_interfaces.h"
@@ -53,15 +53,15 @@ enum LIRC_Actions {
LIRC_SEARCH_NEXT,
LIRC_SEARCH_PREV,
LIRC_SLEEP,
- LIRC_APPLICATION_QUIT
+ LIRC_APPLICATION_TQUIT
};
struct lirc_config;
-class QSocketNotifier;
-class QTimer;
+class TQSocketNotifier;
+class TQTimer;
-class LircSupport : public QObject,
+class LircSupport : public TQObject,
public PluginBase,
public IRadioClient,
public ITimeControlClient,
@@ -69,22 +69,23 @@ class LircSupport : public QObject,
public IRadioDevicePoolClient
{
Q_OBJECT
+ TQ_OBJECT
public:
- LircSupport(const QString &name);
+ LircSupport(const TQString &name);
~LircSupport();
virtual bool connectI (Interface *);
virtual bool disconnectI (Interface *);
- virtual QString pluginClassName() const { return "LircSupport"; }
+ virtual TQString pluginClassName() const { return "LircSupport"; }
- virtual const QString &name() const { return PluginBase::name(); }
- virtual QString &name() { return PluginBase::name(); }
+ virtual const TQString &name() const { return PluginBase::name(); }
+ virtual TQString &name() { return PluginBase::name(); }
- virtual void setActions(const QMap<LIRC_Actions, QString> &actions, const QMap<LIRC_Actions, QString> &alt_actions);
- virtual const QMap<LIRC_Actions, QString> &getActions() const { return m_Actions; }
- virtual const QMap<LIRC_Actions, QString> &getAlternativeActions() const { return m_AlternativeActions; }
+ virtual void setActions(const TQMap<LIRC_Actions, TQString> &actions, const TQMap<LIRC_Actions, TQString> &alt_actions);
+ virtual const TQMap<LIRC_Actions, TQString> &getActions() const { return m_Actions; }
+ virtual const TQMap<LIRC_Actions, TQString> &getAlternativeActions() const { return m_AlternativeActions; }
// PluginBase
@@ -101,7 +102,7 @@ RECEIVERS:
bool noticePowerChanged(bool /*on*/) { return false; }
bool noticeStationChanged (const RadioStation &, int /*idx*/) { return false; }
bool noticeStationsChanged(const StationList &/*sl*/) { return false; }
- bool noticePresetFileChanged(const QString &/*f*/) { return false; }
+ bool noticePresetFileChanged(const TQString &/*f*/) { return false; }
bool noticeCurrentSoundStreamIDChanged(SoundStreamID /*id*/) { return false; }
@@ -111,7 +112,7 @@ RECEIVERS:
bool noticeAlarmsChanged(const AlarmVector &) { return false; }
bool noticeAlarm(const Alarm &) { return false; }
bool noticeNextAlarmChanged(const Alarm *) { return false; }
- bool noticeCountdownStarted(const QDateTime &/*end*/) { return false; }
+ bool noticeCountdownStarted(const TQDateTime &/*end*/) { return false; }
bool noticeCountdownStopped() { return false; }
bool noticeCountdownZero() { return false; }
bool noticeCountdownSecondsChanged(int /*n*/) { return false; }
@@ -120,13 +121,13 @@ RECEIVERS:
RECEIVERS:
bool noticeActiveDeviceChanged(IRadioDevice *) { return false; }
- bool noticeDevicesChanged(const QPtrList<IRadioDevice> &) { return false; }
- bool noticeDeviceDescriptionChanged(const QString &) { return false; }
+ bool noticeDevicesChanged(const TQPtrList<IRadioDevice> &) { return false; }
+ bool noticeDeviceDescriptionChanged(const TQString &) { return false; }
protected:
void activateStation(int i);
- bool checkActions(const QString &string, int repeat_counter, const QMap<LIRC_Actions, QString> &map);
+ bool checkActions(const TQString &string, int repeat_counter, const TQMap<LIRC_Actions, TQString> &map);
protected slots:
void slotLIRC(int socket);
@@ -136,22 +137,22 @@ signals:
void sigUpdateConfig();
- void sigRawLIRCSignal(const QString &what, int repeat_counter, bool &consumed);
+ void sigRawLIRCSignal(const TQString &what, int repeat_counter, bool &consumed);
protected:
#ifdef HAVE_LIRC
- QSocketNotifier *m_lirc_notify;
+ TQSocketNotifier *m_lirc_notify;
int m_fd_lirc;
struct lirc_config *m_lircConfig;
#endif
- QTimer *m_kbdTimer;
+ TQTimer *m_kbdTimer;
int m_addIndex;
bool m_TakeRawLIRC;
- QMap<LIRC_Actions, QString> m_Actions;
- QMap<LIRC_Actions, QString> m_AlternativeActions;
+ TQMap<LIRC_Actions, TQString> m_Actions;
+ TQMap<LIRC_Actions, TQString> m_AlternativeActions;
};