diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 03:43:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 03:43:07 +0000 |
commit | 70b9eea2ba01c3691497f49e4c45cb070c16193c (patch) | |
tree | 9a6df61aa247a27275aad9c5245e419e89c2c640 /kradio3/plugins/timeshifter/timeshifter.h | |
parent | 998c1384ace4ae4655997c181fa33242148cd0a4 (diff) | |
download | tderadio-70b9eea2ba01c3691497f49e4c45cb070c16193c.tar.gz tderadio-70b9eea2ba01c3691497f49e4c45cb070c16193c.zip |
TQt4 port kradio
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kradio@1238952 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kradio3/plugins/timeshifter/timeshifter.h')
-rw-r--r-- | kradio3/plugins/timeshifter/timeshifter.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/kradio3/plugins/timeshifter/timeshifter.h b/kradio3/plugins/timeshifter/timeshifter.h index 32c3837..4385e85 100644 --- a/kradio3/plugins/timeshifter/timeshifter.h +++ b/kradio3/plugins/timeshifter/timeshifter.h @@ -27,32 +27,33 @@ #include "../../src/include/fileringbuffer.h" -class TimeShifter : public QObject, +class TimeShifter : public TQObject, public PluginBase, public ISoundStreamClient { Q_OBJECT + TQ_OBJECT public: - TimeShifter (const QString &name); + TimeShifter (const TQString &name); virtual ~TimeShifter (); virtual bool connectI (Interface *); virtual bool disconnectI (Interface *); - virtual QString pluginClassName() const { return "TimeShifter"; } + virtual TQString pluginClassName() const { return "TimeShifter"; } - 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(); } // config - const QString &getPlaybackMixer() const { return m_PlaybackMixerID; } - const QString &getPlaybackMixerChannel() const { return m_PlaybackMixerChannel; } - const QString &getTempFileName() const { return m_TempFileName; } - Q_UINT64 getTempFileMaxSize() const { return m_TempFileMaxSize; } + const TQString &getPlaybackMixer() const { return m_PlaybackMixerID; } + const TQString &getPlaybackMixerChannel() const { return m_PlaybackMixerChannel; } + const TQString &getTempFileName() const { return m_TempFileName; } + TQ_UINT64 getTempFileMaxSize() const { return m_TempFileMaxSize; } - void setTempFile(const QString &filename, Q_UINT64 s); - bool setPlaybackMixer(const QString &soundStreamClientID, const QString &ch); + void setTempFile(const TQString &filename, TQ_UINT64 s); + bool setPlaybackMixer(const TQString &soundStreamClientID, const TQString &ch); // PluginBase @@ -86,7 +87,7 @@ protected: bool noticeSoundStreamData(SoundStreamID id, const SoundFormat &sf, const char *data, size_t size, size_t &consumed_size, const SoundMetaData &md); bool noticeReadyForPlaybackData(SoundStreamID id, size_t size); - bool getSoundStreamDescription(SoundStreamID id, QString &descr) const; + bool getSoundStreamDescription(SoundStreamID id, TQString &descr) const; // FIXME: react on redirect request @@ -96,15 +97,15 @@ signals: protected: - QString m_TempFileName; + TQString m_TempFileName; size_t m_TempFileMaxSize; SoundFormat m_SoundFormat; SoundFormat m_realSoundFormat; - QString m_PlaybackMixerID; - QString m_PlaybackMixerChannel; + TQString m_PlaybackMixerID; + TQString m_PlaybackMixerChannel; - QString m_StreamFile; + TQString m_StreamFile; bool m_StreamPaused; SoundStreamID m_OrgStreamID; SoundStreamID m_NewStreamID; |