diff options
Diffstat (limited to 'kradio3/plugins/streaming/streaming.h')
-rw-r--r-- | kradio3/plugins/streaming/streaming.h | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/kradio3/plugins/streaming/streaming.h b/kradio3/plugins/streaming/streaming.h index 430ab7b..63bde4b 100644 --- a/kradio3/plugins/streaming/streaming.h +++ b/kradio3/plugins/streaming/streaming.h @@ -26,31 +26,32 @@ #include "../../src/include/soundformat.h" #include "../../src/include/soundstreamclient_interfaces.h" -#include <qobject.h> -#include <qdict.h> +#include <tqobject.h> +#include <tqdict.h> class StreamingJob; -class StreamingDevice : public QObject, +class StreamingDevice : public TQObject, public PluginBase, public ISoundStreamClient { Q_OBJECT + TQ_OBJECT public: - StreamingDevice (const QString &name); + StreamingDevice (const TQString &name); virtual ~StreamingDevice (); virtual bool connectI(Interface *i); virtual bool disconnectI(Interface *i); - bool getPlaybackStreamOptions(const QString &channel, QString &url, SoundFormat &sf, size_t &buffer_size) const; - bool getCaptureStreamOptions (const QString &channel, QString &url, SoundFormat &sf, size_t &buffer_size) const; + bool getPlaybackStreamOptions(const TQString &channel, TQString &url, SoundFormat &sf, size_t &buffer_size) const; + bool getCaptureStreamOptions (const TQString &channel, TQString &url, SoundFormat &sf, size_t &buffer_size) const; void resetPlaybackStreams(bool notification_enabled = true); void resetCaptureStreams(bool notification_enabled = true); - void addPlaybackStream(const QString &url, const SoundFormat &sf, size_t buffer_size, bool notification_enabled = true); - void addCaptureStream (const QString &url, const SoundFormat &sf, size_t buffer_size, bool notification_enabled = true); + void addPlaybackStream(const TQString &url, const SoundFormat &sf, size_t buffer_size, bool notification_enabled = true); + void addCaptureStream (const TQString &url, const SoundFormat &sf, size_t buffer_size, bool notification_enabled = true); // PluginBase @@ -58,10 +59,10 @@ public: virtual void saveState (KConfig *) const; virtual void restoreState (KConfig *); - virtual QString pluginClassName() const { return "StreamingDevice"; } + virtual TQString pluginClassName() const { return "StreamingDevice"; } - 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 ConfigPageInfo createConfigurationPage(); virtual AboutPageInfo createAboutPage(); @@ -70,8 +71,8 @@ public: RECEIVERS: void noticeConnectedI (ISoundStreamServer *s, bool pointer_valid); - bool preparePlayback(SoundStreamID id, const QString &channel, bool active_mode, bool start_immediately); - bool prepareCapture(SoundStreamID id, const QString &channel); + bool preparePlayback(SoundStreamID id, const TQString &channel, bool active_mode, bool start_immediately); + bool prepareCapture(SoundStreamID id, const TQString &channel); bool releasePlayback(SoundStreamID id); bool releaseCapture(SoundStreamID id); @@ -79,15 +80,15 @@ ANSWERS: bool supportsPlayback() const; bool supportsCapture() const; - QString getSoundStreamClientDescription() const; + TQString getSoundStreamClientDescription() const; // ISoundStreamClient: mixer access protected: ANSWERS: - const QStringList &getPlaybackChannels() const; - const QStringList &getCaptureChannels() const; + const TQStringList &getPlaybackChannels() const; + const TQStringList &getCaptureChannels() const; // ISoundStreamClient: generic broadcasts @@ -117,8 +118,8 @@ RECEIVERS: public slots: - void logStreamError(const KURL &url, const QString &s); - void logStreamWarning(const KURL &url, const QString &s); + void logStreamError(const KURL &url, const TQString &s); + void logStreamWarning(const KURL &url, const TQString &s); signals: @@ -126,14 +127,14 @@ signals: protected: - QStringList m_PlaybackChannelList, + TQStringList m_PlaybackChannelList, m_CaptureChannelList; - QDict<StreamingJob> + TQDict<StreamingJob> m_PlaybackChannels, m_CaptureChannels; - QMap<SoundStreamID, QString> + TQMap<SoundStreamID, TQString> m_AllPlaybackStreams, m_AllCaptureStreams, m_EnabledPlaybackStreams, |