diff options
Diffstat (limited to 'kradio3/plugins/timeshifter')
-rw-r--r-- | kradio3/plugins/timeshifter/timeshifter-configuration-ui.ui | 38 | ||||
-rw-r--r-- | kradio3/plugins/timeshifter/timeshifter-configuration.cpp | 56 | ||||
-rw-r--r-- | kradio3/plugins/timeshifter/timeshifter-configuration.h | 13 | ||||
-rw-r--r-- | kradio3/plugins/timeshifter/timeshifter.cpp | 46 | ||||
-rw-r--r-- | kradio3/plugins/timeshifter/timeshifter.h | 33 |
5 files changed, 94 insertions, 92 deletions
diff --git a/kradio3/plugins/timeshifter/timeshifter-configuration-ui.ui b/kradio3/plugins/timeshifter/timeshifter-configuration-ui.ui index 3e3f4e4..8647873 100644 --- a/kradio3/plugins/timeshifter/timeshifter-configuration-ui.ui +++ b/kradio3/plugins/timeshifter/timeshifter-configuration-ui.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.2" stdsetdef="1"> <class>TimeShifterConfigurationUI</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>TimeShifterConfigurationUI</cstring> </property> @@ -22,9 +22,9 @@ <property name="margin"> <number>0</number> </property> - <widget class="QLayoutWidget" row="0" column="0"> + <widget class="TQLayoutWidget" row="0" column="0"> <property name="name"> - <cstring>layout10</cstring> + <cstring>tqlayout10</cstring> </property> <grid> <property name="name"> @@ -40,7 +40,7 @@ <property name="sizeType"> <enum>Preferred</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>21</height> @@ -57,14 +57,14 @@ <property name="sizeType"> <enum>Preferred</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>104</width> <height>21</height> </size> </property> </spacer> - <widget class="QSpinBox" row="1" column="2"> + <widget class="TQSpinBox" row="1" column="2"> <property name="name"> <cstring>editTempFileSize</cstring> </property> @@ -84,7 +84,7 @@ <number>100</number> </property> </widget> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>labelTempFileSize</cstring> </property> @@ -92,7 +92,7 @@ <string>Maximum File Size</string> </property> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>labelPlaybackMixerDevice</cstring> </property> @@ -100,7 +100,7 @@ <string>Playback Mixer Device</string> </property> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>labelTempFile</cstring> </property> @@ -108,12 +108,12 @@ <string>Temporary File</string> </property> </widget> - <widget class="QLineEdit" row="0" column="1" rowspan="1" colspan="2"> + <widget class="TQLineEdit" row="0" column="1" rowspan="1" colspan="2"> <property name="name"> <cstring>editTempFile</cstring> </property> </widget> - <widget class="QLabel" row="3" column="0"> + <widget class="TQLabel" row="3" column="0"> <property name="name"> <cstring>labelPlaybackMixerChannel</cstring> </property> @@ -121,7 +121,7 @@ <string>Playback Mixer Channel</string> </property> </widget> - <widget class="QPushButton" row="0" column="3"> + <widget class="TQPushButton" row="0" column="3"> <property name="name"> <cstring>buttonSelectTempFile</cstring> </property> @@ -133,7 +133,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>26</width> <height>26</height> @@ -146,12 +146,12 @@ <iconset>"fileopen"</iconset> </property> </widget> - <widget class="QComboBox" row="2" column="1" rowspan="1" colspan="2"> + <widget class="TQComboBox" row="2" column="1" rowspan="1" colspan="2"> <property name="name"> <cstring>comboPlaybackMixerDevice</cstring> </property> </widget> - <widget class="QComboBox" row="3" column="1" rowspan="1" colspan="2"> + <widget class="TQComboBox" row="3" column="1" rowspan="1" colspan="2"> <property name="name"> <cstring>comboPlaybackMixerChannel</cstring> </property> @@ -166,7 +166,7 @@ <property name="sizeType"> <enum>Preferred</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>21</height> @@ -183,7 +183,7 @@ <property name="sizeType"> <enum>Preferred</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>21</height> @@ -202,7 +202,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>61</height> @@ -221,5 +221,5 @@ <include location="global" impldecl="in implementation">knuminput.h</include> </includes> <pixmapfunction>SmallIconSet</pixmapfunction> -<layoutdefaults spacing="6" margin="0"/> +<tqlayoutdefaults spacing="6" margin="0"/> </UI> diff --git a/kradio3/plugins/timeshifter/timeshifter-configuration.cpp b/kradio3/plugins/timeshifter/timeshifter-configuration.cpp index 828cc33..2f68d68 100644 --- a/kradio3/plugins/timeshifter/timeshifter-configuration.cpp +++ b/kradio3/plugins/timeshifter/timeshifter-configuration.cpp @@ -20,12 +20,12 @@ #include <unistd.h> #include <linux/soundcard.h> -#include <qspinbox.h> -#include <qlineedit.h> -#include <qcombobox.h> -#include <qlabel.h> -#include <qfile.h> -#include <qpushbutton.h> +#include <tqspinbox.h> +#include <tqlineedit.h> +#include <tqcombobox.h> +#include <tqlabel.h> +#include <tqfile.h> +#include <tqpushbutton.h> #include <kfiledialog.h> #include <knuminput.h> @@ -36,8 +36,8 @@ #include "timeshifter-configuration.h" #include "timeshifter.h" -TimeShifterConfiguration::TimeShifterConfiguration (QWidget *parent, TimeShifter *shifter) - : TimeShifterConfigurationUI(parent), +TimeShifterConfiguration::TimeShifterConfiguration (TQWidget *tqparent, TimeShifter *shifter) + : TimeShifterConfigurationUI(tqparent), m_ignoreGUIChanges(false), m_myControlChange(0), m_PlaybackMixerHelper(comboPlaybackMixerDevice, StringListHelper::SORT_BY_DESCR), @@ -45,15 +45,15 @@ TimeShifterConfiguration::TimeShifterConfiguration (QWidget *parent, TimeShifter m_Shifter(shifter), m_dirty(true) { - QObject::connect(buttonSelectTempFile, SIGNAL(clicked()), - this, SLOT(selectTempFile())); - QObject::connect(comboPlaybackMixerDevice, SIGNAL(activated(int)), - this, SLOT(slotComboPlaybackMixerSelected(int))); - - connect(editTempFile, SIGNAL(textChanged(const QString&)), this, SLOT(slotSetDirty())); - connect(editTempFileSize, SIGNAL(valueChanged(int)), this, SLOT(slotSetDirty())); - connect(comboPlaybackMixerChannel, SIGNAL(activated( int )), this, SLOT(slotSetDirty())); - connect(comboPlaybackMixerDevice, SIGNAL(activated( int )), this, SLOT(slotSetDirty())); + TQObject::connect(buttonSelectTempFile, TQT_SIGNAL(clicked()), + this, TQT_SLOT(selectTempFile())); + TQObject::connect(comboPlaybackMixerDevice, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotComboPlaybackMixerSelected(int))); + + connect(editTempFile, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotSetDirty())); + connect(editTempFileSize, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotSetDirty())); + connect(comboPlaybackMixerChannel, TQT_SIGNAL(activated( int )), this, TQT_SLOT(slotSetDirty())); + connect(comboPlaybackMixerDevice, TQT_SIGNAL(activated( int )), this, TQT_SLOT(slotSetDirty())); slotCancel(); } @@ -87,11 +87,11 @@ void TimeShifterConfiguration::noticeConnectedI (ISoundStreamServer *s, bool poi void TimeShifterConfiguration::noticeConnectedSoundClient(ISoundStreamClient::thisInterface *i, bool pointer_valid) { if (i && pointer_valid && i->supportsPlayback() && m_Shifter) { - const QString &org_mid = m_Shifter->getPlaybackMixer(); - bool org_present = m_PlaybackMixerHelper.contains(org_mid); - const QString &mid = org_present ? m_PlaybackMixerHelper.getCurrentItem() : org_mid; - const QString &org_ch = m_Shifter->getPlaybackMixerChannel(); - const QString &ch = org_present ? m_PlaybackChannelHelper.getCurrentText() : org_ch; + const TQString &org_mid = m_Shifter->getPlaybackMixer(); + bool org_present = m_PlaybackMixerHelper.tqcontains(org_mid); + const TQString &mid = org_present ? m_PlaybackMixerHelper.getCurrentItem() : org_mid; + const TQString &org_ch = m_Shifter->getPlaybackMixerChannel(); + const TQString &ch = org_present ? m_PlaybackChannelHelper.getCurrentText() : org_ch; setPlaybackMixer(mid, ch); } } @@ -106,9 +106,9 @@ void TimeShifterConfiguration::noticeDisconnectedSoundClient(ISoundStreamClient: -bool TimeShifterConfiguration::setPlaybackMixer(const QString &_mixer_id, const QString &Channel) +bool TimeShifterConfiguration::setPlaybackMixer(const TQString &_mixer_id, const TQString &Channel) { - QString mixer_id = _mixer_id; + TQString mixer_id = _mixer_id; bool old = m_ignoreGUIChanges; m_ignoreGUIChanges = true; @@ -119,7 +119,7 @@ bool TimeShifterConfiguration::setPlaybackMixer(const QString &_mixer_id, const ISoundStreamClient *mixer = getSoundStreamClientWithID(mixer_id); if (mixer) { m_PlaybackChannelHelper.setData(mixer->getPlaybackChannels()); - m_PlaybackChannelHelper.setCurrentText(m_PlaybackChannelHelper.contains(Channel) ? Channel : m_Shifter->getPlaybackMixerChannel()); + m_PlaybackChannelHelper.setCurrentText(m_PlaybackChannelHelper.tqcontains(Channel) ? Channel : m_Shifter->getPlaybackMixerChannel()); } labelPlaybackMixerChannel->setEnabled(mixer != NULL); comboPlaybackMixerChannel->setEnabled(mixer != NULL); @@ -142,7 +142,7 @@ void TimeShifterConfiguration::selectTempFile() fd.setMode(KFile::File); fd.setCaption (i18n("Select TimeShifter Temporary File")); - if (fd.exec() == QDialog::Accepted) { + if (fd.exec() == TQDialog::Accepted) { editTempFile->setText(fd.selectedFile()); } } @@ -158,7 +158,7 @@ void TimeShifterConfiguration::slotComboPlaybackMixerSelected(int /*idx*/) void TimeShifterConfiguration::slotOK() { if (m_Shifter && m_dirty) { - m_Shifter->setTempFile(editTempFile->text(), editTempFileSize->value() * (Q_UINT64)(1024 * 1024)); + m_Shifter->setTempFile(editTempFile->text(), editTempFileSize->value() * (TQ_UINT64)(1024 * 1024)); m_Shifter->setPlaybackMixer(m_PlaybackMixerHelper.getCurrentItem(), m_PlaybackChannelHelper.getCurrentText()); m_dirty = false; @@ -178,7 +178,7 @@ void TimeShifterConfiguration::slotCancel() } -bool TimeShifterConfiguration::noticePlaybackChannelsChanged(const QString & client_id, const QStringList &/*channels*/) +bool TimeShifterConfiguration::noticePlaybackChannelsChanged(const TQString & client_id, const TQStringList &/*channels*/) { if (m_PlaybackMixerHelper.getCurrentItem() == client_id) { setPlaybackMixer(client_id, m_PlaybackChannelHelper.getCurrentText()); diff --git a/kradio3/plugins/timeshifter/timeshifter-configuration.h b/kradio3/plugins/timeshifter/timeshifter-configuration.h index 7d34c3d..6c0b722 100644 --- a/kradio3/plugins/timeshifter/timeshifter-configuration.h +++ b/kradio3/plugins/timeshifter/timeshifter-configuration.h @@ -27,15 +27,16 @@ #include "timeshifter-configuration-ui.h" -class QWidget; +class TQWidget; class TimeShifter; class TimeShifterConfiguration : public TimeShifterConfigurationUI, public ISoundStreamClient { Q_OBJECT + TQ_OBJECT public : - TimeShifterConfiguration (QWidget *parent, TimeShifter *shifter); + TimeShifterConfiguration (TQWidget *tqparent, TimeShifter *shifter); ~TimeShifterConfiguration (); bool connectI (Interface *i); @@ -48,11 +49,11 @@ public : RECEIVERS: void noticeConnectedI (ISoundStreamServer *s, bool pointer_valid); - bool noticePlaybackChannelsChanged(const QString & /*client_id*/, const QStringList &/*channels*/); + bool noticePlaybackChannelsChanged(const TQString & /*client_id*/, const TQStringList &/*channels*/); protected: - bool setPlaybackMixer(const QString &_mixer_id, const QString &Channel); + bool setPlaybackMixer(const TQString &_mixer_id, const TQString &Channel); protected slots: @@ -70,8 +71,8 @@ protected: bool m_ignoreGUIChanges; int m_myControlChange; - typedef GUIListHelper<QComboBox, QString> StringListHelper; - typedef GUISimpleListHelper<QComboBox> ChannelListHelper; + typedef GUIListHelper<TQComboBox, TQString> StringListHelper; + typedef GUISimpleListHelper<TQComboBox> ChannelListHelper; StringListHelper m_PlaybackMixerHelper; ChannelListHelper m_PlaybackChannelHelper; diff --git a/kradio3/plugins/timeshifter/timeshifter.cpp b/kradio3/plugins/timeshifter/timeshifter.cpp index bff1851..52d3448 100644 --- a/kradio3/plugins/timeshifter/timeshifter.cpp +++ b/kradio3/plugins/timeshifter/timeshifter.cpp @@ -32,11 +32,11 @@ PLUGIN_LIBRARY_FUNCTIONS(TimeShifter, "kradio-timeshifter", i18n("TimeShift Supp /////////////////////////////////////////////////////////////////////// -TimeShifter::TimeShifter (const QString &name) +TimeShifter::TimeShifter (const TQString &name) : PluginBase(name, i18n("TimeShifter Plugin")), m_TempFileName("/tmp/kradio-timeshifter-tempfile"), m_TempFileMaxSize(256*1024*1024), - m_PlaybackMixerID(QString::null), + m_PlaybackMixerID(TQString()), m_PlaybackMixerChannel("PCM"), m_orgVolume(0.0), m_PlaybackMetaData(0,0,0), @@ -86,7 +86,7 @@ void TimeShifter::noticeConnectedI (ISoundStreamServer *s, bool pointer_valid) void TimeShifter::saveState (KConfig *config) const { - config->setGroup(QString("timeshifter-") + name()); + config->setGroup(TQString("timeshifter-") + name()); config->writeEntry("temp-file-name", m_TempFileName); config->writeEntry("max-file-size", m_TempFileMaxSize / 1024 / 1024); @@ -98,13 +98,13 @@ void TimeShifter::saveState (KConfig *config) const void TimeShifter::restoreState (KConfig *config) { - config->setGroup(QString("timeshifter-") + name()); + config->setGroup(TQString("timeshifter-") + name()); - QString fname = config->readEntry("temp-file-name", "/tmp/kradio-timeshifter-tempfile"); - Q_UINT64 fsize = 1024 * 1024 * config->readNumEntry("max-file-size", 256); + TQString fname = config->readEntry("temp-file-name", "/tmp/kradio-timeshifter-tempfile"); + TQ_UINT64 fsize = 1024 * 1024 * config->readNumEntry("max-file-size", 256); - QString mixerID = config->readEntry ("PlaybackMixerID", QString::null); - QString channel = config->readEntry ("PlaybackMixerChannel", "PCM"); + TQString mixerID = config->readEntry ("PlaybackMixerID", TQString()); + TQString channel = config->readEntry ("PlaybackMixerChannel", "PCM"); setPlaybackMixer(mixerID, channel); setTempFile(fname, fsize); @@ -116,7 +116,7 @@ void TimeShifter::restoreState (KConfig *config) ConfigPageInfo TimeShifter::createConfigurationPage() { TimeShifterConfiguration *conf = new TimeShifterConfiguration(NULL, this); - QObject::connect(this, SIGNAL(sigUpdateConfig()), conf, SLOT(slotUpdateConfig())); + TQObject::connect(this, TQT_SIGNAL(sigUpdateConfig()), conf, TQT_SLOT(slotUpdateConfig())); return ConfigPageInfo (conf, i18n("Timeshifter"), i18n("Timeshifter Options"), @@ -154,8 +154,8 @@ bool TimeShifter::stopPlayback(SoundStreamID id) SoundStreamID tmp_newID = m_NewStreamID; SoundStreamID tmp_orgID = m_OrgStreamID; - m_OrgStreamID.invalidate(); - m_NewStreamID.invalidate(); + m_OrgStreamID.tqinvalidate(); + m_NewStreamID.tqinvalidate(); sendStopCapture(tmp_newID); closeSoundStream(tmp_newID); @@ -182,7 +182,7 @@ bool TimeShifter::pausePlayback(SoundStreamID id) sendMute(newid); sendPlaybackVolume(newid, 0); - m_NewStreamID.invalidate(); + m_NewStreamID.tqinvalidate(); sendStopPlayback(newid); m_NewStreamID = newid; @@ -219,7 +219,7 @@ bool TimeShifter::pausePlayback(SoundStreamID id) size_t TimeShifter::writeMetaDataToBuffer(const SoundMetaData &md, char *buffer, size_t buffer_size) { - Q_UINT64 pos = md.position(); + TQ_UINT64 pos = md.position(); time_t abs = md.absoluteTimestamp(); time_t rel = md.relativeTimestamp(); size_t url_len = md.url().url().length() + 1; @@ -227,7 +227,7 @@ size_t TimeShifter::writeMetaDataToBuffer(const SoundMetaData &md, char *buffer, if (req_size <= buffer_size) { *(size_t*)buffer = req_size; buffer += sizeof(req_size); - *(Q_UINT64*)buffer = pos; + *(TQ_UINT64*)buffer = pos; buffer += sizeof(pos); *(time_t*)buffer = abs; buffer += sizeof(abs); @@ -249,7 +249,7 @@ size_t TimeShifter::writeMetaDataToBuffer(const SoundMetaData &md, char *buffer, size_t TimeShifter::readMetaDataFromBuffer(SoundMetaData &md, const char *buffer, size_t buffer_size) { size_t req_size = 0; - Q_UINT64 pos = 0; + TQ_UINT64 pos = 0; time_t abs = 0; time_t rel = 0; size_t url_len = 0; @@ -258,8 +258,8 @@ size_t TimeShifter::readMetaDataFromBuffer(SoundMetaData &md, const char *buffer req_size = *(size_t*)buffer; buffer += sizeof(req_size); if (req_size > sizeof(req_size)) { - pos = *(Q_UINT64*)buffer; - buffer += sizeof(Q_UINT64); + pos = *(TQ_UINT64*)buffer; + buffer += sizeof(TQ_UINT64); abs = *(time_t*)buffer; buffer += sizeof(abs); rel = *(time_t*)buffer; @@ -283,7 +283,7 @@ bool TimeShifter::noticeSoundStreamData(SoundStreamID id, const SoundFormat &/*s size_t packet_size = meta_buffer_size + sizeof(size) + size; if (packet_size > m_RingBuffer.getMaxSize()) return false; - Q_INT64 diff = m_RingBuffer.getFreeSize() - packet_size; + TQ_INT64 diff = m_RingBuffer.getFreeSize() - packet_size; while (diff < 0) { skipPacketInRingBuffer(); diff = m_RingBuffer.getFreeSize() - packet_size; @@ -352,7 +352,7 @@ bool TimeShifter::noticeReadyForPlaybackData(SoundStreamID id, size_t free_size) free_size -= consumed_size; m_PlaybackDataLeftInBuffer -= consumed_size; if (consumed_size < s) { - logError(i18n("TimeShifter::notifySoundStreamData: clients skipped %1 bytes. Data Lost").arg(s - consumed_size)); + logError(i18n("TimeShifter::notifySoundStreamData: clients skipped %1 bytes. Data Lost").tqarg(s - consumed_size)); free_size = 0; // break condition for outer loop break; } @@ -371,7 +371,7 @@ ISoundStreamClient *TimeShifter::searchPlaybackMixer() // some simple sort of autodetection if one mixer isn't present any more if (!playback_mixer) { - QPtrList<ISoundStreamClient> playback_mixers = queryPlaybackMixers(); + TQPtrList<ISoundStreamClient> playback_mixers = queryPlaybackMixers(); if (!playback_mixers.isEmpty()) playback_mixer = playback_mixers.first(); } @@ -379,7 +379,7 @@ ISoundStreamClient *TimeShifter::searchPlaybackMixer() } -bool TimeShifter::setPlaybackMixer(const QString &soundStreamClientID, const QString &ch) +bool TimeShifter::setPlaybackMixer(const TQString &soundStreamClientID, const TQString &ch) { m_PlaybackMixerID = soundStreamClientID; m_PlaybackMixerChannel = ch; @@ -405,7 +405,7 @@ bool TimeShifter::setPlaybackMixer(const QString &soundStreamClientID, const QS } -void TimeShifter::setTempFile(const QString &filename, Q_UINT64 s) +void TimeShifter::setTempFile(const TQString &filename, TQ_UINT64 s) { m_RingBuffer.clear(); m_RingBuffer.resize(m_TempFileName = filename, m_TempFileMaxSize = s); @@ -413,7 +413,7 @@ void TimeShifter::setTempFile(const QString &filename, Q_UINT64 s) m_PlaybackDataLeftInBuffer = 0; } -bool TimeShifter::getSoundStreamDescription(SoundStreamID id, QString &descr) const +bool TimeShifter::getSoundStreamDescription(SoundStreamID id, TQString &descr) const { if (id == m_NewStreamID) { descr = name(); 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; |