summaryrefslogtreecommitdiffstats
path: root/kradio3/plugins/v4lradio/v4lradio.h
diff options
context:
space:
mode:
Diffstat (limited to 'kradio3/plugins/v4lradio/v4lradio.h')
-rw-r--r--kradio3/plugins/v4lradio/v4lradio.h51
1 files changed, 26 insertions, 25 deletions
diff --git a/kradio3/plugins/v4lradio/v4lradio.h b/kradio3/plugins/v4lradio/v4lradio.h
index 4b86cb5..e02f976 100644
--- a/kradio3/plugins/v4lradio/v4lradio.h
+++ b/kradio3/plugins/v4lradio/v4lradio.h
@@ -22,7 +22,7 @@
#include <config.h>
#endif
-#include <qtimer.h>
+#include <tqtimer.h>
#include "../../src/include/radiodevice_interfaces.h"
#include "../../src/include/plugins.h"
@@ -38,7 +38,7 @@ struct video_audio;
struct v4l2_tuner;
#endif
-class V4LRadio : public QObject,
+class V4LRadio : public TQObject,
public PluginBase,
public IRadioDevice,
// public IRadioSound,
@@ -48,17 +48,18 @@ class V4LRadio : public QObject,
public IV4LCfg
{
Q_OBJECT
+ TQ_OBJECT
public:
- V4LRadio (const QString &name);
+ V4LRadio (const TQString &name);
virtual ~V4LRadio ();
virtual bool connectI (Interface *);
virtual bool disconnectI (Interface *);
- virtual QString pluginClassName() const { return "V4LRadio"; }
+ virtual TQString pluginClassName() const { return "V4LRadio"; }
- 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(); }
// PluginBase
@@ -83,7 +84,7 @@ ANSWERS:
virtual bool isPowerOff() const;
virtual SoundStreamID getSoundStreamID() const;
virtual const RadioStation & getCurrentStation() const;
- virtual const QString & getDescription() const;
+ virtual const TQString & getDescription() const;
virtual SoundStreamID getCurrentSoundStreamID() const;
@@ -149,18 +150,18 @@ RECEIVERS:
RECEIVERS:
- bool getSoundStreamDescription(SoundStreamID id, QString &descr) const;
+ bool getSoundStreamDescription(SoundStreamID id, TQString &descr) const;
bool getSoundStreamRadioStation(SoundStreamID id, const RadioStation *&rs) const;
- bool enumerateSoundStreams(QMap<QString, SoundStreamID> &list) const;
+ bool enumerateSoundStreams(TQMap<TQString, SoundStreamID> &list) const;
// bool stopCapture(SoundStreamID id); // if active playback also call stopPlayback
// IV4LCfg
RECEIVERS:
- bool setRadioDevice (const QString &s);
- bool setPlaybackMixer(const QString &soundStreamClientID, const QString &ch);
- bool setCaptureMixer (const QString &soundStreamClientID, const QString &ch);
+ bool setRadioDevice (const TQString &s);
+ bool setPlaybackMixer(const TQString &soundStreamClientID, const TQString &ch);
+ bool setCaptureMixer (const TQString &soundStreamClientID, const TQString &ch);
bool setDeviceVolume (float v);
bool setActivePlayback(bool a);
bool setMuteOnPowerOff(bool a);
@@ -171,13 +172,13 @@ RECEIVERS:
bool getPlaybackVolume(SoundStreamID id, float &volume) const;
ANSWERS:
- const QString &getRadioDevice () const { return m_radioDev; }
- const QString &getPlaybackMixerID () const { return m_PlaybackMixerID; }
- const QString &getCaptureMixerID () const { return m_CaptureMixerID; }
- const QString &getPlaybackMixerChannel() const { return m_PlaybackMixerChannel; }
- const QString &getCaptureMixerChannel () const { return m_CaptureMixerChannel; }
+ const TQString &getRadioDevice () const { return m_radioDev; }
+ const TQString &getPlaybackMixerID () const { return m_PlaybackMixerID; }
+ const TQString &getCaptureMixerID () const { return m_CaptureMixerID; }
+ const TQString &getPlaybackMixerChannel() const { return m_PlaybackMixerChannel; }
+ const TQString &getCaptureMixerChannel () const { return m_CaptureMixerChannel; }
float getDeviceVolume () const;
- V4LCaps getCapabilities(QString dev = QString::null) const;
+ V4LCaps getCapabilities(TQString dev = TQString()) const;
bool getActivePlayback() const { return m_ActivePlayback; }
bool getMuteOnPowerOff() const { return m_MuteOnPowerOff; }
@@ -189,7 +190,7 @@ protected slots:
void poll();
protected:
- V4LCaps readV4LCaps(const QString &device) const;
+ V4LCaps readV4LCaps(const TQString &device) const;
void radio_init();
void radio_done();
@@ -223,7 +224,7 @@ protected:
float m_scanStep;
V4LCaps m_caps;
- QString m_radioDev;
+ TQString m_radioDev;
int m_radio_fd;
mutable bool m_useOldV4L2Calls;
@@ -235,7 +236,7 @@ protected:
mutable struct v4l2_tuner *m_tuner2;
#endif
- QTimer m_pollTimer;
+ TQTimer m_pollTimer;
struct TunerCache {
bool valid;
@@ -250,10 +251,10 @@ protected:
m_blockReadAudio;
SoundStreamID m_SoundStreamID;
- QString m_PlaybackMixerID;
- QString m_CaptureMixerID;
- QString m_PlaybackMixerChannel;
- QString m_CaptureMixerChannel;
+ TQString m_PlaybackMixerID;
+ TQString m_CaptureMixerID;
+ TQString m_PlaybackMixerChannel;
+ TQString m_CaptureMixerChannel;
bool m_ActivePlayback;
bool m_MuteOnPowerOff;