diff options
Diffstat (limited to 'kradio3/plugins')
-rw-r--r-- | kradio3/plugins/alsa-sound/alsa-sound-configuration.cpp | 8 | ||||
-rw-r--r-- | kradio3/plugins/alsa-sound/alsa-sound.cpp | 62 | ||||
-rw-r--r-- | kradio3/plugins/gui-docking-menu/docking.cpp | 16 | ||||
-rw-r--r-- | kradio3/plugins/gui-error-log/errorlog.cpp | 2 | ||||
-rw-r--r-- | kradio3/plugins/gui-quickbar/quickbar.cpp | 2 | ||||
-rw-r--r-- | kradio3/plugins/gui-standard-display/radioview.cpp | 16 | ||||
-rw-r--r-- | kradio3/plugins/lirc/lirc-configuration.cpp | 2 | ||||
-rw-r--r-- | kradio3/plugins/oss-sound/oss-sound.cpp | 36 | ||||
-rw-r--r-- | kradio3/plugins/radio/radio-configuration-ui.ui | 2 | ||||
-rw-r--r-- | kradio3/plugins/radio/radio-configuration.cpp | 34 | ||||
-rw-r--r-- | kradio3/plugins/radio/radio.cpp | 8 | ||||
-rw-r--r-- | kradio3/plugins/recording/recording-monitor.cpp | 6 | ||||
-rw-r--r-- | kradio3/plugins/recording/recording.cpp | 34 | ||||
-rw-r--r-- | kradio3/plugins/streaming/streaming.cpp | 54 | ||||
-rw-r--r-- | kradio3/plugins/timeshifter/timeshifter-configuration.cpp | 4 | ||||
-rw-r--r-- | kradio3/plugins/v4lradio/v4lradio-configuration.cpp | 8 |
16 files changed, 147 insertions, 147 deletions
diff --git a/kradio3/plugins/alsa-sound/alsa-sound-configuration.cpp b/kradio3/plugins/alsa-sound/alsa-sound-configuration.cpp index 6b190ad..9bd7cca 100644 --- a/kradio3/plugins/alsa-sound/alsa-sound-configuration.cpp +++ b/kradio3/plugins/alsa-sound/alsa-sound-configuration.cpp @@ -104,7 +104,7 @@ AlsaSoundConfiguration::~AlsaSoundConfiguration () void AlsaSoundConfiguration::slotPlaybackCardSelected(const TQString &cardname) { - if (!m_name2card.tqcontains(cardname)) + if (!m_name2card.contains(cardname)) return; listSoundDevices(m_comboPlaybackDevice, &m_playbackDeviceName2dev, &m_dev2playbackDeviceName, &m_playbackDevice2idx, m_name2card[cardname], SND_PCM_STREAM_PLAYBACK); @@ -113,7 +113,7 @@ void AlsaSoundConfiguration::slotPlaybackCardSelected(const TQString &cardname) void AlsaSoundConfiguration::slotCaptureCardSelected(const TQString &cardname) { - if (!m_name2card.tqcontains(cardname)) + if (!m_name2card.contains(cardname)) return; saveCaptureMixerSettings(); @@ -146,7 +146,7 @@ void AlsaSoundConfiguration::slotCaptureCardSelected(const TQString &cardname) int idx = 0; for (TQValueListConstIterator<TQString> it = all_list.begin(); it != all_list.end(); ++it, ++idx) { QAlsaMixerElement *e = new QAlsaMixerElement(m_groupMixerSubFrame, *it, - sw_list.tqcontains(*it), vol_list.tqcontains(*it)); + sw_list.contains(*it), vol_list.contains(*it)); TQObject::connect(e, TQT_SIGNAL(sigDirty()), this, TQT_SLOT(slotSetDirty())); m_groupMixerLayout->addWidget(e, idx > cols, idx % cols); e->show(); @@ -179,7 +179,7 @@ void AlsaSoundConfiguration::restoreCaptureMixerSettings() TQString id = AlsaConfigMixerSetting::getIDString(card, name); QAlsaMixerElement *e = *it; - if (m_MixerSettings.tqcontains(id)) { + if (m_MixerSettings.contains(id)) { const AlsaConfigMixerSetting &s = m_MixerSettings[id]; e->setVolume(s.m_volume); e->setOverride(s.m_use); diff --git a/kradio3/plugins/alsa-sound/alsa-sound.cpp b/kradio3/plugins/alsa-sound/alsa-sound.cpp index 1b4625e..0f64935 100644 --- a/kradio3/plugins/alsa-sound/alsa-sound.cpp +++ b/kradio3/plugins/alsa-sound/alsa-sound.cpp @@ -248,8 +248,8 @@ bool AlsaSoundDevice::prepareCapture(SoundStreamID id, const TQString &channel) bool AlsaSoundDevice::releasePlayback(SoundStreamID id) { - if (id.isValid() && m_PlaybackStreams.tqcontains(id)) { - if (m_PlaybackStreamID == id || m_PassivePlaybackStreams.tqcontains(id)) { + if (id.isValid() && m_PlaybackStreams.contains(id)) { + if (m_PlaybackStreamID == id || m_PassivePlaybackStreams.contains(id)) { stopPlayback(id); } m_PlaybackStreams.remove(id); @@ -260,7 +260,7 @@ bool AlsaSoundDevice::releasePlayback(SoundStreamID id) bool AlsaSoundDevice::releaseCapture(SoundStreamID id) { - if (id.isValid() && m_CaptureStreams.tqcontains(id)) { + if (id.isValid() && m_CaptureStreams.contains(id)) { if (m_CaptureStreamID == id) { stopCapture(id); } @@ -284,7 +284,7 @@ bool AlsaSoundDevice::supportsCapture() const bool AlsaSoundDevice::startPlayback(SoundStreamID id) { - if (id.isValid() && m_PlaybackStreams.tqcontains(id) && m_EnablePlayback) { + if (id.isValid() && m_PlaybackStreams.contains(id) && m_EnablePlayback) { SoundStreamConfig &cfg = m_PlaybackStreams[id]; @@ -295,7 +295,7 @@ bool AlsaSoundDevice::startPlayback(SoundStreamID id) ok = true; } } else { - if (!m_PassivePlaybackStreams.tqcontains(id)) + if (!m_PassivePlaybackStreams.contains(id)) m_PassivePlaybackStreams.append(id); ok = true; } @@ -326,12 +326,12 @@ bool AlsaSoundDevice::pausePlayback(SoundStreamID /*id*/) bool AlsaSoundDevice::stopPlayback(SoundStreamID id) { - if (id.isValid() && m_PlaybackStreams.tqcontains(id)) { + if (id.isValid() && m_PlaybackStreams.contains(id)) { SoundStreamConfig &cfg = m_PlaybackStreams[id]; if (!cfg.m_ActiveMode) { - if (m_PassivePlaybackStreams.tqcontains(id)) { + if (m_PassivePlaybackStreams.contains(id)) { /* float tmp = 0; writePlaybackMixerVolume(cfg.m_Channel, tmp, true);*/ m_PassivePlaybackStreams.remove(id); @@ -351,7 +351,7 @@ bool AlsaSoundDevice::stopPlayback(SoundStreamID id) bool AlsaSoundDevice::isPlaybackRunning(SoundStreamID id, bool &b) const { - if (id.isValid() && m_PlaybackStreamID == id || m_PassivePlaybackStreams.tqcontains(id)) { + if (id.isValid() && m_PlaybackStreamID == id || m_PassivePlaybackStreams.contains(id)) { b = true; return true; } else { @@ -364,7 +364,7 @@ bool AlsaSoundDevice::startCaptureWithFormat(SoundStreamID id, SoundFormat &real_format, bool force_format) { - if (m_CaptureStreams.tqcontains(id) && m_EnableCapture) { + if (m_CaptureStreams.contains(id) && m_EnableCapture) { if (m_CaptureStreamID != id) { m_CapturePos = 0; @@ -454,7 +454,7 @@ bool AlsaSoundDevice::isCaptureRunning(SoundStreamID id, bool &b, SoundFormat &s bool AlsaSoundDevice::noticeSoundStreamClosed(SoundStreamID id) { bool found = false; - if (m_PlaybackStreamID == id || m_PassivePlaybackStreams.tqcontains(id)) { + if (m_PlaybackStreamID == id || m_PassivePlaybackStreams.contains(id)) { stopPlayback(id); found = true; } @@ -471,13 +471,13 @@ bool AlsaSoundDevice::noticeSoundStreamClosed(SoundStreamID id) bool AlsaSoundDevice::noticeSoundStreamRedirected(SoundStreamID oldID, SoundStreamID newID) { bool found = false; - if (m_PlaybackStreams.tqcontains(oldID)) { + if (m_PlaybackStreams.contains(oldID)) { m_PlaybackStreams.insert(newID, m_PlaybackStreams[oldID]); if (newID != oldID) m_PlaybackStreams.remove(oldID); found = true; } - if (m_CaptureStreams.tqcontains(oldID)) { + if (m_CaptureStreams.contains(oldID)) { m_CaptureStreams.insert(newID, m_CaptureStreams[oldID]); if (newID != oldID) m_CaptureStreams.remove(oldID); @@ -488,7 +488,7 @@ bool AlsaSoundDevice::noticeSoundStreamRedirected(SoundStreamID oldID, SoundStre m_PlaybackStreamID = newID; if (m_CaptureStreamID == oldID) m_CaptureStreamID = newID; - if (m_PassivePlaybackStreams.tqcontains(oldID)) { + if (m_PassivePlaybackStreams.contains(oldID)) { m_PassivePlaybackStreams.remove(oldID); m_PassivePlaybackStreams.append(newID); } @@ -1088,7 +1088,7 @@ const TQStringList &AlsaSoundDevice::getCaptureChannels() const bool AlsaSoundDevice::setPlaybackVolume(SoundStreamID id, float volume) { - if (id.isValid() && (m_PlaybackStreamID == id || m_PassivePlaybackStreams.tqcontains(id))) { + if (id.isValid() && (m_PlaybackStreamID == id || m_PassivePlaybackStreams.contains(id))) { SoundStreamConfig &cfg = m_PlaybackStreams[id]; if (rint(100*volume) != rint(100*cfg.m_Volume)) { @@ -1120,7 +1120,7 @@ bool AlsaSoundDevice::setCaptureVolume(SoundStreamID id, float volume) bool AlsaSoundDevice::getPlaybackVolume(SoundStreamID id, float &volume) const { - if (id.isValid() && (m_PlaybackStreamID == id || m_PassivePlaybackStreams.tqcontains(id))) { + if (id.isValid() && (m_PlaybackStreamID == id || m_PassivePlaybackStreams.contains(id))) { const SoundStreamConfig &cfg = m_PlaybackStreams[id]; volume = cfg.m_Volume; return true; @@ -1144,7 +1144,7 @@ void AlsaSoundDevice::checkMixerVolume(SoundStreamID id) { if (id.isValid()) { - if (m_hPlaybackMixer && m_PassivePlaybackStreams.tqcontains(id) || m_PlaybackStreamID == id) { + if (m_hPlaybackMixer && m_PassivePlaybackStreams.contains(id) || m_PlaybackStreamID == id) { snd_mixer_handle_events(m_hPlaybackMixer); SoundStreamConfig &cfg = m_PlaybackStreams[id]; @@ -1164,7 +1164,7 @@ void AlsaSoundDevice::checkMixerVolume(SoundStreamID id) snd_mixer_handle_events(m_hCaptureMixer); SoundStreamConfig &cfg = m_CaptureStreams[id]; - if (m_CaptureChannels2ID.tqcontains(cfg.m_Channel)) { + if (m_CaptureChannels2ID.contains(cfg.m_Channel)) { float v = readCaptureMixerVolume(cfg.m_Channel); if (rint(100*cfg.m_Volume) != rint(100*v)) { cfg.m_Volume = v; @@ -1181,7 +1181,7 @@ float AlsaSoundDevice::readPlaybackMixerVolume(const TQString &channel, bool &mu if (!m_hPlaybackMixer) return 0; // without error - if (m_PlaybackChannels2ID.tqcontains(channel) && m_hPlaybackMixer) { + if (m_PlaybackChannels2ID.contains(channel) && m_hPlaybackMixer) { AlsaMixerElement sid = m_PlaybackChannels2ID[channel]; snd_mixer_elem_t *elem = snd_mixer_find_selem(m_hPlaybackMixer, sid); if (elem) { @@ -1215,7 +1215,7 @@ float AlsaSoundDevice::readCaptureMixerVolume(const TQString &channel) const if (!m_hCaptureMixer) return 0; // without error - if (m_CaptureChannels2ID.tqcontains(channel) && m_hCaptureMixer) { + if (m_CaptureChannels2ID.contains(channel) && m_hCaptureMixer) { AlsaMixerElement sid = m_CaptureChannels2ID[channel]; snd_mixer_elem_t *elem = snd_mixer_find_selem(m_hCaptureMixer, sid); if (elem) { @@ -1248,7 +1248,7 @@ bool AlsaSoundDevice::writePlaybackMixerVolume (const TQString &channel, float & if (!m_hPlaybackMixer) return false; - if (m_PlaybackChannels2ID.tqcontains(channel) && m_hPlaybackMixer) { + if (m_PlaybackChannels2ID.contains(channel) && m_hPlaybackMixer) { AlsaMixerElement sid = m_PlaybackChannels2ID[channel]; snd_mixer_elem_t *elem = snd_mixer_find_selem(m_hPlaybackMixer, sid); if (elem) { @@ -1284,7 +1284,7 @@ bool AlsaSoundDevice::writeCaptureMixerVolume (const TQString &channel, float &v if (!m_hCaptureMixer) return false; - if (m_CaptureChannels2ID.tqcontains(channel) && m_hCaptureMixer) { + if (m_CaptureChannels2ID.contains(channel) && m_hCaptureMixer) { AlsaMixerElement sid = m_CaptureChannels2ID[channel]; snd_mixer_elem_t *elem = snd_mixer_find_selem(m_hCaptureMixer, sid); if (elem) { @@ -1314,7 +1314,7 @@ bool AlsaSoundDevice::writeCaptureMixerSwitch (const TQString &channel, bool cap if (!m_hCaptureMixer) return false; - if (m_CaptureChannelsSwitch2ID.tqcontains(channel) && m_hCaptureMixer) { + if (m_CaptureChannelsSwitch2ID.contains(channel) && m_hCaptureMixer) { AlsaMixerElement sid = m_CaptureChannelsSwitch2ID[channel]; snd_mixer_elem_t *elem = snd_mixer_find_selem(m_hCaptureMixer, sid); if (elem) { @@ -1337,7 +1337,7 @@ void AlsaSoundDevice::selectCaptureChannel (const TQString &channel) writeCaptureMixerSwitch(channel, true); const TQString ADC = "ADC"; - if (m_CaptureChannels2ID.tqcontains(ADC)) { + if (m_CaptureChannels2ID.contains(ADC)) { float v = readCaptureMixerVolume(ADC); if (rint(v*100) == 0) { float tmp_vol = 1.0; @@ -1345,7 +1345,7 @@ void AlsaSoundDevice::selectCaptureChannel (const TQString &channel) } } const TQString Digital = "Digital"; - if (m_CaptureChannels2ID.tqcontains(Digital)) { + if (m_CaptureChannels2ID.contains(Digital)) { float v = readCaptureMixerVolume(Digital); if (rint(v*100) == 0) { float tmp_vol = 1.0; @@ -1353,12 +1353,12 @@ void AlsaSoundDevice::selectCaptureChannel (const TQString &channel) } } const TQString WAVE = "Wave"; - if (m_CaptureChannels2ID.tqcontains(WAVE)) { + if (m_CaptureChannels2ID.contains(WAVE)) { float x = 0; writeCaptureMixerVolume(WAVE, x); } const TQString Capture = "Capture"; - if (m_CaptureChannelsSwitch2ID.tqcontains(Capture)) { + if (m_CaptureChannelsSwitch2ID.contains(Capture)) { writeCaptureMixerSwitch(Capture, true); } @@ -1366,9 +1366,9 @@ void AlsaSoundDevice::selectCaptureChannel (const TQString &channel) const AlsaConfigMixerSetting &s = *it; if (s.m_card == m_CaptureCard && s.m_use) { float vol = s.m_volume; - if (m_CaptureChannels2ID.tqcontains(s.m_name)) + if (m_CaptureChannels2ID.contains(s.m_name)) writeCaptureMixerVolume(s.m_name, vol); - if (m_CaptureChannelsSwitch2ID.tqcontains(s.m_name)) + if (m_CaptureChannelsSwitch2ID.contains(s.m_name)) writeCaptureMixerSwitch(s.m_name, s.m_active); } } @@ -1451,7 +1451,7 @@ TQString AlsaSoundDevice::getSoundStreamClientDescription() const bool AlsaSoundDevice::mute (SoundStreamID id, bool mute) { - if (id.isValid() && (m_PlaybackStreamID == id || m_PassivePlaybackStreams.tqcontains(id))) { + if (id.isValid() && (m_PlaybackStreamID == id || m_PassivePlaybackStreams.contains(id))) { SoundStreamConfig &cfg = m_PlaybackStreams[id]; if (mute != cfg.m_Muted) { if (writePlaybackMixerVolume(cfg.m_Channel, cfg.m_Volume, cfg.m_Muted = mute)) { @@ -1465,7 +1465,7 @@ bool AlsaSoundDevice::mute (SoundStreamID id, bool mute) bool AlsaSoundDevice::unmute (SoundStreamID id, bool unmute) { - if (id.isValid() && (m_PlaybackStreamID == id || m_PassivePlaybackStreams.tqcontains(id))) { + if (id.isValid() && (m_PlaybackStreamID == id || m_PassivePlaybackStreams.contains(id))) { SoundStreamConfig &cfg = m_PlaybackStreams[id]; bool mute = !unmute; if (mute != cfg.m_Muted) { @@ -1480,7 +1480,7 @@ bool AlsaSoundDevice::unmute (SoundStreamID id, bool unmute) bool AlsaSoundDevice::isMuted(SoundStreamID id, bool &m) const { - if (id.isValid() && (m_PlaybackStreamID == id || m_PassivePlaybackStreams.tqcontains(id))) { + if (id.isValid() && (m_PlaybackStreamID == id || m_PassivePlaybackStreams.contains(id))) { const SoundStreamConfig &cfg = m_PlaybackStreams[id]; m = cfg.m_Muted; return true; diff --git a/kradio3/plugins/gui-docking-menu/docking.cpp b/kradio3/plugins/gui-docking-menu/docking.cpp index 2c07b3f..3392ea6 100644 --- a/kradio3/plugins/gui-docking-menu/docking.cpp +++ b/kradio3/plugins/gui-docking-menu/docking.cpp @@ -277,7 +277,7 @@ void RadioDocking::buildStationList() ++k; TQString shortcut = k < 10 ? "&"+TQString().setNum(k) : k == 10 ? "1&0" : TQString().setNum(k); - TQString name = rs.longName().tqreplace("&", "&&"); + TQString name = rs.longName().replace("&", "&&"); TQString item = shortcut + " " + name; int id = m_menu->insertItem(item); @@ -484,7 +484,7 @@ void RadioDocking::ShowHideWidgetPlugins() for (TQMapIterator<WidgetPluginBase*, int> it = m_widgetPluginIDs.begin(); it != m_widgetPluginIDs.end(); ++it) { WidgetPluginBase *p = it.key(); TQString name = p ? p->name() : TQString(); - if (p && tmpCache.tqcontains(name) && tmpCache[name]) { + if (p && tmpCache.contains(name) && tmpCache[name]) { p->showOnOrgDesktop(); } } @@ -511,7 +511,7 @@ void RadioDocking::slotMenuItemActivated(int id) void RadioDocking::noticeWidgetPluginShown(WidgetPluginBase *b, bool shown) { - if (!m_manager || !b || !m_widgetPluginIDs.tqcontains(b)) + if (!m_manager || !b || !m_widgetPluginIDs.contains(b)) return; m_manager->updateWidgetPluginMenuItem(b, m_pluginMenu, m_widgetPluginIDs, shown); @@ -533,7 +533,7 @@ bool RadioDocking::startRecordingWithFormat( const SoundFormat &/*proposed_format*/, SoundFormat &/*real_format*/) { - if (!id.isValid() || id != queryCurrentSoundStreamID() || m_StreamID2MenuID.tqcontains(id)) + if (!id.isValid() || id != queryCurrentSoundStreamID() || m_StreamID2MenuID.contains(id)) return false; TQString descr; @@ -555,7 +555,7 @@ bool RadioDocking::startRecordingWithFormat( bool RadioDocking::stopRecording (SoundStreamID id) { - if (!id.isValid() || !m_StreamID2MenuID.tqcontains(id)) + if (!id.isValid() || !m_StreamID2MenuID.contains(id)) return false; int menu_id = m_StreamID2MenuID[id]; @@ -584,7 +584,7 @@ void RadioDocking::slotRecordingMenu(int i) sendPowerOn(); sendStartRecording(id); } - } else if (m_MenuID2StreamID.tqcontains(i)) { + } else if (m_MenuID2StreamID.contains(i)) { sendStopRecording(m_MenuID2StreamID[i]); } } @@ -628,7 +628,7 @@ void RadioDocking::buildRecordingMenu() bool RadioDocking::noticeSoundStreamChanged(SoundStreamID id) { - if (m_StreamID2MenuID.tqcontains(id)) { + if (m_StreamID2MenuID.contains(id)) { TQString descr; querySoundStreamDescription(id, descr); m_recordingMenu->changeItem(m_StreamID2MenuID[id], @@ -665,7 +665,7 @@ void RadioDocking::dropEvent(TQDropEvent* event) if ( StationDragObject::decode(event, list) ) { TQStringList l = getStationSelection(); for (TQValueListConstIterator<TQString> it = list.begin(); it != list.end(); ++it) - if (!l.tqcontains(*it)) + if (!l.contains(*it)) l.append(*it); setStationSelection(l); } diff --git a/kradio3/plugins/gui-error-log/errorlog.cpp b/kradio3/plugins/gui-error-log/errorlog.cpp index 82498ce..b675d14 100644 --- a/kradio3/plugins/gui-error-log/errorlog.cpp +++ b/kradio3/plugins/gui-error-log/errorlog.cpp @@ -100,7 +100,7 @@ ErrorLog::ErrorLog(const TQString &name) TQFrame *debug = addPage(i18n("Debugging"), i18n("Debugging"), KGlobal::instance()->iconLoader()->loadIcon( - "tqfind", KIcon::NoGroup, KIcon::SizeMedium + "find", KIcon::NoGroup, KIcon::SizeMedium ) ); diff --git a/kradio3/plugins/gui-quickbar/quickbar.cpp b/kradio3/plugins/gui-quickbar/quickbar.cpp index 1ae3623..a591210 100644 --- a/kradio3/plugins/gui-quickbar/quickbar.cpp +++ b/kradio3/plugins/gui-quickbar/quickbar.cpp @@ -414,7 +414,7 @@ void QuickBar::dropEvent(TQDropEvent* event) if ( StationDragObject::decode(event, list) ) { TQStringList l = getStationSelection(); for (TQValueListConstIterator<TQString> it = list.begin(); it != list.end(); ++it) - if (!l.tqcontains(*it)) + if (!l.contains(*it)) l.append(*it); setStationSelection(l); } diff --git a/kradio3/plugins/gui-standard-display/radioview.cpp b/kradio3/plugins/gui-standard-display/radioview.cpp index 0a8e31f..299bbde 100644 --- a/kradio3/plugins/gui-standard-display/radioview.cpp +++ b/kradio3/plugins/gui-standard-display/radioview.cpp @@ -254,7 +254,7 @@ bool RadioView::removeElement (TQObject *_e) return false; ElementCfgListIterator it; - while ((it = elementConfigPages.tqfind(e)) != elementConfigPages.end()) { + while ((it = elementConfigPages.find(e)) != elementConfigPages.end()) { delete (*it).cfg; // it must not used behind, the element will be deleted automatically // by slotElementConfigPageDeleted @@ -432,7 +432,7 @@ bool RadioView::startRecordingWithFormat( const SoundFormat &/*proposed_format*/, SoundFormat &/*real_format*/) { - if (!id.isValid() || id != queryCurrentSoundStreamID() || m_StreamID2MenuID.tqcontains(id)) + if (!id.isValid() || id != queryCurrentSoundStreamID() || m_StreamID2MenuID.contains(id)) return false; TQString descr; @@ -454,7 +454,7 @@ bool RadioView::startRecordingWithFormat( bool RadioView::stopRecording (SoundStreamID id) { - if (!id.isValid() || !m_StreamID2MenuID.tqcontains(id)) + if (!id.isValid() || !m_StreamID2MenuID.contains(id)) return false; int menu_id = m_StreamID2MenuID[id]; @@ -472,7 +472,7 @@ bool RadioView::stopRecording (SoundStreamID id) bool RadioView::noticeSoundStreamChanged(SoundStreamID id) { - if (m_StreamID2MenuID.tqcontains(id)) { + if (m_StreamID2MenuID.contains(id)) { TQString descr; querySoundStreamDescription(id, descr); m_RecordingMenu->changeItem(m_StreamID2MenuID[id], @@ -632,7 +632,7 @@ void RadioView::noticeWidgetPluginShown(WidgetPluginBase *p, bool shown) btnConfigure->blockSignals(false); } - if (m_Plugins2MenuID.tqcontains(p)) { + if (m_Plugins2MenuID.contains(p)) { m_manager->updateWidgetPluginMenuItem(p, m_PluginMenu, m_Plugins2MenuID, shown); } } @@ -682,7 +682,7 @@ void RadioView::slotRecord() SoundFormat sf; queryIsRecordingRunning(id, r, sf); - if (!r && b /*!m_StreamID2MenuID.tqcontains(id)*/) { + if (!r && b /*!m_StreamID2MenuID.contains(id)*/) { if (!queryIsPowerOn()) sendPowerOn(); sendStartRecording(id); @@ -704,7 +704,7 @@ void RadioView::slotRecordingMenu(int i) sendPowerOn(); sendStartRecording(id); } - } else if (m_MenuID2StreamID.tqcontains(i)) { + } else if (m_MenuID2StreamID.contains(i)) { sendStopRecording(m_MenuID2StreamID[i]); } } @@ -749,7 +749,7 @@ void RadioView::slotConfigPageDeleted(TQObject *o) void RadioView::slotElementConfigPageDeleted(TQObject *o) { ElementCfgListIterator it; - while ((it = elementConfigPages.tqfind(o)) != elementConfigPages.end()) { + while ((it = elementConfigPages.find(o)) != elementConfigPages.end()) { elementConfigPages.remove(it); } } diff --git a/kradio3/plugins/lirc/lirc-configuration.cpp b/kradio3/plugins/lirc/lirc-configuration.cpp index f8bbfb1..02e3a06 100644 --- a/kradio3/plugins/lirc/lirc-configuration.cpp +++ b/kradio3/plugins/lirc/lirc-configuration.cpp @@ -123,7 +123,7 @@ void LIRCConfiguration::slotCancel() const TQMap<LIRC_Actions, TQString> &actions = m_LIRC->getActions(); const TQMap<LIRC_Actions, TQString> &alt_actions = m_LIRC->getAlternativeActions(); - for (unsigned i = 0; m_order.tqcontains(i) && i < m_order.count(); ++i) { + for (unsigned i = 0; m_order.contains(i) && i < m_order.count(); ++i) { LIRC_Actions action = m_order[i]; addKey(m_descriptions[action], actions[action], alt_actions[action]); } diff --git a/kradio3/plugins/oss-sound/oss-sound.cpp b/kradio3/plugins/oss-sound/oss-sound.cpp index e640191..37d3c3e 100644 --- a/kradio3/plugins/oss-sound/oss-sound.cpp +++ b/kradio3/plugins/oss-sound/oss-sound.cpp @@ -202,7 +202,7 @@ AboutPageInfo OSSSoundDevice::createAboutPage() bool OSSSoundDevice::preparePlayback(SoundStreamID id, const TQString &channel, bool active_mode, bool start_immediately) { - if (id.isValid() && m_revPlaybackChannels.tqcontains(channel)) { + if (id.isValid() && m_revPlaybackChannels.contains(channel)) { m_PlaybackStreams.insert(id, SoundStreamConfig(m_revPlaybackChannels[channel], active_mode)); if (start_immediately) startPlayback(id); @@ -215,7 +215,7 @@ bool OSSSoundDevice::preparePlayback(SoundStreamID id, const TQString &channel, bool OSSSoundDevice::prepareCapture(SoundStreamID id, const TQString &channel) { - if (id.isValid() && m_revCaptureChannels.tqcontains(channel)) { + if (id.isValid() && m_revCaptureChannels.contains(channel)) { m_CaptureStreams.insert(id, SoundStreamConfig(m_revCaptureChannels[channel])); return true; // FIXME: what to do if stream is already playing? @@ -225,8 +225,8 @@ bool OSSSoundDevice::prepareCapture(SoundStreamID id, const TQString &channel) bool OSSSoundDevice::releasePlayback(SoundStreamID id) { - if (id.isValid() && m_PlaybackStreams.tqcontains(id)) { - if (m_PlaybackStreamID == id || m_PassivePlaybackStreams.tqcontains(id)) { + if (id.isValid() && m_PlaybackStreams.contains(id)) { + if (m_PlaybackStreamID == id || m_PassivePlaybackStreams.contains(id)) { stopPlayback(id); } m_PlaybackStreams.remove(id); @@ -237,7 +237,7 @@ bool OSSSoundDevice::releasePlayback(SoundStreamID id) bool OSSSoundDevice::releaseCapture(SoundStreamID id) { - if (id.isValid() && m_CaptureStreams.tqcontains(id)) { + if (id.isValid() && m_CaptureStreams.contains(id)) { if (m_CaptureStreamID == id) { stopCapture(id); } @@ -261,7 +261,7 @@ bool OSSSoundDevice::supportsCapture() const bool OSSSoundDevice::startPlayback(SoundStreamID id) { - if (id.isValid() && m_PlaybackStreams.tqcontains(id) && m_EnablePlayback) { + if (id.isValid() && m_PlaybackStreams.contains(id) && m_EnablePlayback) { SoundStreamConfig &cfg = m_PlaybackStreams[id]; @@ -272,7 +272,7 @@ bool OSSSoundDevice::startPlayback(SoundStreamID id) ok = true; } } else { - if (!m_PassivePlaybackStreams.tqcontains(id)) + if (!m_PassivePlaybackStreams.contains(id)) m_PassivePlaybackStreams.append(id); ok = true; } @@ -300,12 +300,12 @@ bool OSSSoundDevice::pausePlayback(SoundStreamID /*id*/) bool OSSSoundDevice::stopPlayback(SoundStreamID id) { - if (id.isValid() && m_PlaybackStreams.tqcontains(id)) { + if (id.isValid() && m_PlaybackStreams.contains(id)) { SoundStreamConfig &cfg = m_PlaybackStreams[id]; if (!cfg.m_ActiveMode) { - if (m_PassivePlaybackStreams.tqcontains(id)) { + if (m_PassivePlaybackStreams.contains(id)) { // writeMixerVolume(cfg.m_Channel, 0); m_PassivePlaybackStreams.remove(id); } @@ -324,7 +324,7 @@ bool OSSSoundDevice::stopPlayback(SoundStreamID id) bool OSSSoundDevice::isPlaybackRunning(SoundStreamID id, bool &b) const { - if (id.isValid() && m_PlaybackStreams.tqcontains(id)) { + if (id.isValid() && m_PlaybackStreams.contains(id)) { b = true; return true; } else { @@ -337,7 +337,7 @@ bool OSSSoundDevice::startCaptureWithFormat(SoundStreamID id, SoundFormat &real_format, bool force_format) { - if (m_CaptureStreams.tqcontains(id) && m_EnableCapture) { + if (m_CaptureStreams.contains(id) && m_EnableCapture) { if (m_CaptureStreamID != id) { m_CapturePos = 0; @@ -402,7 +402,7 @@ bool OSSSoundDevice::isCaptureRunning(SoundStreamID id, bool &b, SoundFormat &sf bool OSSSoundDevice::noticeSoundStreamClosed(SoundStreamID id) { bool found = false; - if (m_PlaybackStreamID == id || m_PassivePlaybackStreams.tqcontains(id)) { + if (m_PlaybackStreamID == id || m_PassivePlaybackStreams.contains(id)) { stopPlayback(id); found = true; } @@ -419,13 +419,13 @@ bool OSSSoundDevice::noticeSoundStreamClosed(SoundStreamID id) bool OSSSoundDevice::noticeSoundStreamRedirected(SoundStreamID oldID, SoundStreamID newID) { bool found = false; - if (m_PlaybackStreams.tqcontains(oldID)) { + if (m_PlaybackStreams.contains(oldID)) { m_PlaybackStreams.insert(newID, m_PlaybackStreams[oldID]); if (newID != oldID) m_PlaybackStreams.remove(oldID); found = true; } - if (m_CaptureStreams.tqcontains(oldID)) { + if (m_CaptureStreams.contains(oldID)) { m_CaptureStreams.insert(newID, m_CaptureStreams[oldID]); if (newID != oldID) m_CaptureStreams.remove(oldID); @@ -436,7 +436,7 @@ bool OSSSoundDevice::noticeSoundStreamRedirected(SoundStreamID oldID, SoundStrea m_PlaybackStreamID = newID; if (m_CaptureStreamID == oldID) m_CaptureStreamID = newID; - if (m_PassivePlaybackStreams.tqcontains(oldID)) { + if (m_PassivePlaybackStreams.contains(oldID)) { m_PassivePlaybackStreams.remove(oldID); m_PassivePlaybackStreams.append(newID); } @@ -790,7 +790,7 @@ const TQStringList &OSSSoundDevice::getCaptureChannels() const bool OSSSoundDevice::setPlaybackVolume(SoundStreamID id, float volume) { - if (id.isValid() && (m_PlaybackStreamID == id || m_PassivePlaybackStreams.tqcontains(id))) { + if (id.isValid() && (m_PlaybackStreamID == id || m_PassivePlaybackStreams.contains(id))) { SoundStreamConfig &cfg = m_PlaybackStreams[id]; if (rint(100*volume) != rint(100*cfg.m_Volume)) { @@ -820,7 +820,7 @@ bool OSSSoundDevice::setCaptureVolume(SoundStreamID id, float volume) bool OSSSoundDevice::getPlaybackVolume(SoundStreamID id, float &volume) const { - if (id.isValid() && (m_PlaybackStreamID == id || m_PassivePlaybackStreams.tqcontains(id))) { + if (id.isValid() && (m_PlaybackStreamID == id || m_PassivePlaybackStreams.contains(id))) { const SoundStreamConfig &cfg = m_PlaybackStreams[id]; volume = cfg.m_Volume; return true; @@ -844,7 +844,7 @@ void OSSSoundDevice::checkMixerVolume(SoundStreamID id) { if (m_Mixer_fd >= 0 && id.isValid()) { - if (m_PassivePlaybackStreams.tqcontains(id) || m_PlaybackStreamID == id) { + if (m_PassivePlaybackStreams.contains(id) || m_PlaybackStreamID == id) { SoundStreamConfig &cfg = m_PlaybackStreams[id]; float v = readMixerVolume(cfg.m_Channel); diff --git a/kradio3/plugins/radio/radio-configuration-ui.ui b/kradio3/plugins/radio/radio-configuration-ui.ui index 3d538c7..28e936e 100644 --- a/kradio3/plugins/radio/radio-configuration-ui.ui +++ b/kradio3/plugins/radio/radio-configuration-ui.ui @@ -179,7 +179,7 @@ <string>&Search Stations</string> </property> <property name="iconSet"> - <iconset>"tqfind"</iconset> + <iconset>"find"</iconset> </property> </widget> <widget class="TQPushButton"> diff --git a/kradio3/plugins/radio/radio-configuration.cpp b/kradio3/plugins/radio/radio-configuration.cpp index f28b933..f306aeb 100644 --- a/kradio3/plugins/radio/radio-configuration.cpp +++ b/kradio3/plugins/radio/radio-configuration.cpp @@ -230,7 +230,7 @@ void RadioConfiguration::slotStationSelectionChanged(int idx) stackStationEdit->setDisabled(!s); if (s) { - RadioStationConfig *c = stationEditors.tqfind(s->getClassName()); + RadioStationConfig *c = stationEditors.find(s->getClassName()); if (!c) { c = s->createEditor(); if (c) { @@ -490,22 +490,22 @@ void RadioConfiguration::slotLastChangeNow() static TQString &urlEscapes(TQString &s) { - s.tqreplace(TQRegExp("%"), "%25"); - s.tqreplace(TQRegExp("\t"), "%09"); - s.tqreplace(TQRegExp("\n"), "%0A"); - s.tqreplace(TQRegExp("\n"), "%0D"); - s.tqreplace(TQRegExp(" "), "%20"); - s.tqreplace(TQRegExp("\\!"), "%21"); - s.tqreplace(TQRegExp("\""), "%22"); - s.tqreplace(TQRegExp("#"), "%23"); - s.tqreplace(TQRegExp("\\$"), "%24"); - s.tqreplace(TQRegExp("\\&"), "%26"); - s.tqreplace(TQRegExp("'"), "%27"); - s.tqreplace(TQRegExp(","), "%2C"); - s.tqreplace(TQRegExp(":"), "%3A"); - s.tqreplace(TQRegExp(";"), "%3B"); - s.tqreplace(TQRegExp("="), "%3D"); - s.tqreplace(TQRegExp("\\?"), "%3F"); + s.replace(TQRegExp("%"), "%25"); + s.replace(TQRegExp("\t"), "%09"); + s.replace(TQRegExp("\n"), "%0A"); + s.replace(TQRegExp("\n"), "%0D"); + s.replace(TQRegExp(" "), "%20"); + s.replace(TQRegExp("\\!"), "%21"); + s.replace(TQRegExp("\""), "%22"); + s.replace(TQRegExp("#"), "%23"); + s.replace(TQRegExp("\\$"), "%24"); + s.replace(TQRegExp("\\&"), "%26"); + s.replace(TQRegExp("'"), "%27"); + s.replace(TQRegExp(","), "%2C"); + s.replace(TQRegExp(":"), "%3A"); + s.replace(TQRegExp(";"), "%3B"); + s.replace(TQRegExp("="), "%3D"); + s.replace(TQRegExp("\\?"), "%3F"); return s; } diff --git a/kradio3/plugins/radio/radio.cpp b/kradio3/plugins/radio/radio.cpp index af14e66..1f2ac45 100644 --- a/kradio3/plugins/radio/radio.cpp +++ b/kradio3/plugins/radio/radio.cpp @@ -217,7 +217,7 @@ bool Radio::setPresetFile(const TQString &presetFile) int Radio::getStationIdx(const RadioStation &rs) const { RawStationList &sl = const_cast<RawStationList&>(m_stationList.all()); - return sl.tqfind(&rs); + return sl.find(&rs); } int Radio::getCurrentStationIdx() const @@ -245,7 +245,7 @@ bool Radio::setActiveDevice(IRadioDevice *rd, bool keepPower) // check if new station is in "connections" // special case: rd == NULL: power off active device, new active device = NULL - if (!rd || IRadioDeviceClient::iConnections.tqcontainsRef(rd)) { // new device is ok + if (!rd || IRadioDeviceClient::iConnections.containsRef(rd)) { // new device is ok // save old power state and power off old device bool oldPowerOn = false; @@ -433,13 +433,13 @@ void Radio::noticeDisconnectI(IRadioDeviceClient::cmplInterface *rd, bool pointe if (rd == m_activeDevice) { // search a new active device - if (IRadioDeviceClient::iConnections.tqfindRef(rd) >= 0) { + if (IRadioDeviceClient::iConnections.findRef(rd) >= 0) { IRadioDevice *new_rd = NULL; new_rd = IRadioDeviceClient::iConnections.next(); // choose next device as active device if next exists if (!new_rd) { - IRadioDeviceClient::iConnections.tqfindRef(rd); + IRadioDeviceClient::iConnections.findRef(rd); new_rd = IRadioDeviceClient::iConnections.prev(); // otherwise try prev then, may be NULL (no connections) } setActiveDevice(new_rd); diff --git a/kradio3/plugins/recording/recording-monitor.cpp b/kradio3/plugins/recording/recording-monitor.cpp index 6ce59a2..289c38f 100644 --- a/kradio3/plugins/recording/recording-monitor.cpp +++ b/kradio3/plugins/recording/recording-monitor.cpp @@ -249,7 +249,7 @@ bool RecordingMonitor::noticeSoundStreamCreated(SoundStreamID id) bool RecordingMonitor::noticeSoundStreamClosed(SoundStreamID id) { - if (m_SoundStreamID2idx.tqcontains(id)) { + if (m_SoundStreamID2idx.contains(id)) { int idx = m_SoundStreamID2idx[id]; m_idx2SoundStreamID.clear(); m_SoundStreamID2idx.remove(id); @@ -270,7 +270,7 @@ bool RecordingMonitor::noticeSoundStreamClosed(SoundStreamID id) bool RecordingMonitor::noticeSoundStreamChanged(SoundStreamID id) { - if (m_SoundStreamID2idx.tqcontains(id)) { + if (m_SoundStreamID2idx.contains(id)) { int idx = m_SoundStreamID2idx[id]; TQString tmp = TQString(); querySoundStreamDescription(id, tmp); @@ -356,7 +356,7 @@ void RecordingMonitor::slotStreamSelected(int idx) sendStopCapture(old_id); } - SoundStreamID id = m_idx2SoundStreamID.tqcontains(idx) ? m_idx2SoundStreamID[idx] : SoundStreamID::InvalidID; + SoundStreamID id = m_idx2SoundStreamID.contains(idx) ? m_idx2SoundStreamID[idx] : SoundStreamID::InvalidID; if (id.isValid()) { m_defaultStreamDescription = m_comboSoundStreamSelector->text(idx); diff --git a/kradio3/plugins/recording/recording.cpp b/kradio3/plugins/recording/recording.cpp index b85b22b..a430e02 100644 --- a/kradio3/plugins/recording/recording.cpp +++ b/kradio3/plugins/recording/recording.cpp @@ -310,7 +310,7 @@ bool Recording::setRecordingConfig(const RecordingConfig &c) // ISoundStreamClient bool Recording::startPlayback(SoundStreamID id) { - if (m_PreRecordingBuffers.tqcontains(id)) + if (m_PreRecordingBuffers.contains(id)) delete m_PreRecordingBuffers[id]; m_PreRecordingBuffers[id] = NULL; if (m_config.m_PreRecordingEnable) { @@ -323,7 +323,7 @@ bool Recording::startPlayback(SoundStreamID id) bool Recording::stopPlayback(SoundStreamID id) { - if (m_PreRecordingBuffers.tqcontains(id)) { + if (m_PreRecordingBuffers.contains(id)) { if (m_PreRecordingBuffers[id]) delete m_PreRecordingBuffers[id]; m_PreRecordingBuffers.remove(id); @@ -377,10 +377,10 @@ bool Recording::startRecordingWithFormat(SoundStreamID id, const SoundFormat &sf bool Recording::stopRecording(SoundStreamID id) { - if (m_EncodingThreads.tqcontains(id)) { + if (m_EncodingThreads.contains(id)) { sendStopCapture(id); if (m_config.m_PreRecordingEnable) { - if (!m_PreRecordingBuffers.tqcontains(id)) { + if (!m_PreRecordingBuffers.contains(id)) { if (m_PreRecordingBuffers[id] != NULL) { delete m_PreRecordingBuffers[id]; } @@ -406,7 +406,7 @@ bool Recording::noticeSoundStreamData(SoundStreamID id, const SoundMetaData &md ) { - if (m_PreRecordingBuffers.tqcontains(id) && m_PreRecordingBuffers[id] != NULL) { + if (m_PreRecordingBuffers.contains(id) && m_PreRecordingBuffers[id] != NULL) { FileRingBuffer &fbuf = *m_PreRecordingBuffers[id]; if (fbuf.getFreeSize() < size) { @@ -427,7 +427,7 @@ bool Recording::noticeSoundStreamData(SoundStreamID id, // fbuf.addData((char*)tmp, sizeof(tmp)); // //END DEBUG - if (m_EncodingThreads.tqcontains(id)) { + if (m_EncodingThreads.contains(id)) { //logDebug("recording packet: " + TQString::number(size)); @@ -464,7 +464,7 @@ bool Recording::noticeSoundStreamData(SoundStreamID id, return true; } - else if (m_EncodingThreads.tqcontains(id)) { + else if (m_EncodingThreads.contains(id)) { //logDebug("recording packet: " + TQString::number(size)); @@ -503,7 +503,7 @@ bool Recording::noticeSoundStreamData(SoundStreamID id, bool Recording::startEncoder(SoundStreamID ssid, const RecordingConfig &cfg) { - if (m_EncodingThreads.tqcontains(ssid)) + if (m_EncodingThreads.contains(ssid)) return false; SoundStreamID encID = createNewSoundStream(ssid, false); @@ -527,7 +527,7 @@ bool Recording::startEncoder(SoundStreamID ssid, const RecordingConfig &cfg) const RadioStation *rs = NULL; querySoundStreamRadioStation(ssid, rs); TQString station = rs ? rs->name() + "-" : ""; - station.tqreplace(TQRegExp("[/*?]"), "_"); + station.replace(TQRegExp("[/*?]"), "_"); TQDate date = TQDate::tqcurrentDate(); TQTime time = TQTime::currentTime(); @@ -579,7 +579,7 @@ bool Recording::startEncoder(SoundStreamID ssid, const RecordingConfig &cfg) void Recording::stopEncoder(SoundStreamID id) { - if (m_EncodingThreads.tqcontains(id)) { + if (m_EncodingThreads.contains(id)) { RecordingEncoding *thread = m_EncodingThreads[id]; @@ -627,7 +627,7 @@ bool Recording::event(TQEvent *_e) SoundStreamEvent *e = static_cast<SoundStreamEvent*>(_e); SoundStreamID id = e->getSoundStreamID(); - if (m_EncodingThreads.tqcontains(id)) { + if (m_EncodingThreads.contains(id)) { RecordingEncoding *thread = m_EncodingThreads[id]; @@ -663,7 +663,7 @@ bool Recording::event(TQEvent *_e) bool Recording::getSoundStreamDescription(SoundStreamID id, TQString &descr) const { - if (m_EncodedStreams2RawStreams.tqcontains(id)) { + if (m_EncodedStreams2RawStreams.contains(id)) { if (querySoundStreamDescription(m_EncodedStreams2RawStreams[id], descr)) { descr = name() + " - " + descr; return true; @@ -675,7 +675,7 @@ bool Recording::getSoundStreamDescription(SoundStreamID id, TQString &descr) con bool Recording::getSoundStreamRadioStation(SoundStreamID id, const RadioStation *&rs) const { - if (m_EncodedStreams2RawStreams.tqcontains(id)) { + if (m_EncodedStreams2RawStreams.contains(id)) { if (querySoundStreamRadioStation(m_EncodedStreams2RawStreams[id], rs)) { return true; } @@ -698,7 +698,7 @@ bool Recording::enumerateSoundStreams(TQMap<TQString, SoundStreamID> &list) cons bool Recording::noticeSoundStreamChanged(SoundStreamID id) { - if (m_RawStreams2EncodedStreams.tqcontains(id)) { + if (m_RawStreams2EncodedStreams.contains(id)) { notifySoundStreamChanged(m_RawStreams2EncodedStreams[id]); return true; } @@ -708,7 +708,7 @@ bool Recording::noticeSoundStreamChanged(SoundStreamID id) bool Recording::isRecordingRunning(SoundStreamID id, bool &b, SoundFormat &sf) const { - if (m_EncodingThreads.tqcontains(id)) { + if (m_EncodingThreads.contains(id)) { b = m_EncodingThreads[id]->running(); sf = getSoundFormat(); return true; @@ -719,13 +719,13 @@ bool Recording::isRecordingRunning(SoundStreamID id, bool &b, SoundFormat &sf) c bool Recording::noticeSoundStreamClosed(SoundStreamID id) { - if (m_PreRecordingBuffers.tqcontains(id)) { + if (m_PreRecordingBuffers.contains(id)) { if (m_PreRecordingBuffers[id]) delete m_PreRecordingBuffers[id]; m_PreRecordingBuffers.remove(id); } - if (m_EncodingThreads.tqcontains(id)) { + if (m_EncodingThreads.contains(id)) { sendStopRecording(id); return true; } diff --git a/kradio3/plugins/streaming/streaming.cpp b/kradio3/plugins/streaming/streaming.cpp index 6b2d371..7634fa2 100644 --- a/kradio3/plugins/streaming/streaming.cpp +++ b/kradio3/plugins/streaming/streaming.cpp @@ -184,7 +184,7 @@ AboutPageInfo StreamingDevice::createAboutPage() bool StreamingDevice::preparePlayback(SoundStreamID id, const TQString &channel, bool /*active_mode*/, bool start_immediately) { - if (id.isValid() && m_PlaybackChannels.tqfind(channel)) { + if (id.isValid() && m_PlaybackChannels.find(channel)) { m_AllPlaybackStreams.insert(id, channel); if (start_immediately) startPlayback(id); @@ -197,7 +197,7 @@ bool StreamingDevice::preparePlayback(SoundStreamID id, const TQString &channel, bool StreamingDevice::prepareCapture(SoundStreamID id, const TQString &channel) { logDebug("StreamingDevice::prepareCapture"); - if (id.isValid() && m_CaptureChannels.tqfind(channel)) { + if (id.isValid() && m_CaptureChannels.find(channel)) { m_AllCaptureStreams.insert(id, channel); return true; } @@ -206,9 +206,9 @@ bool StreamingDevice::prepareCapture(SoundStreamID id, const TQString &channel) bool StreamingDevice::releasePlayback(SoundStreamID id) { - if (id.isValid() && m_AllPlaybackStreams.tqcontains(id)) { + if (id.isValid() && m_AllPlaybackStreams.contains(id)) { stopPlayback(id); - if (!m_EnabledPlaybackStreams.tqcontains(id)) + if (!m_EnabledPlaybackStreams.contains(id)) m_AllPlaybackStreams.remove(id); return true; } @@ -218,9 +218,9 @@ bool StreamingDevice::releasePlayback(SoundStreamID id) bool StreamingDevice::releaseCapture(SoundStreamID id) { logDebug("StreamingDevice::releaseCapture"); - if (id.isValid() && m_AllCaptureStreams.tqcontains(id)) { + if (id.isValid() && m_AllCaptureStreams.contains(id)) { stopCapture(id); - if (!m_EnabledCaptureStreams.tqcontains(id)) + if (!m_EnabledCaptureStreams.contains(id)) m_AllCaptureStreams.remove(id); return true; } @@ -241,9 +241,9 @@ bool StreamingDevice::supportsCapture() const bool StreamingDevice::startPlayback(SoundStreamID id) { - if (id.isValid() && m_AllPlaybackStreams.tqcontains(id)) { + if (id.isValid() && m_AllPlaybackStreams.contains(id)) { m_EnabledPlaybackStreams.insert(id, m_AllPlaybackStreams[id]); - StreamingJob &x = *m_PlaybackChannels.tqfind(m_AllPlaybackStreams[id]); + StreamingJob &x = *m_PlaybackChannels.find(m_AllPlaybackStreams[id]); x.startPlayback(); return true; } else { @@ -261,8 +261,8 @@ bool StreamingDevice::pausePlayback(SoundStreamID /*id*/) bool StreamingDevice::stopPlayback(SoundStreamID id) { - if (id.isValid() && m_EnabledPlaybackStreams.tqcontains(id)) { - StreamingJob &x = *m_PlaybackChannels.tqfind(m_AllPlaybackStreams[id]); + if (id.isValid() && m_EnabledPlaybackStreams.contains(id)) { + StreamingJob &x = *m_PlaybackChannels.find(m_AllPlaybackStreams[id]); if (x.stopPlayback()) { m_EnabledPlaybackStreams.remove(id); } @@ -275,7 +275,7 @@ bool StreamingDevice::stopPlayback(SoundStreamID id) bool StreamingDevice::isPlaybackRunning(SoundStreamID id, bool &b) const { - if (id.isValid() && m_EnabledPlaybackStreams.tqcontains(id)) { + if (id.isValid() && m_EnabledPlaybackStreams.contains(id)) { b = true; return true; } else { @@ -289,9 +289,9 @@ bool StreamingDevice::startCaptureWithFormat(SoundStreamID id, bool force_format) { logDebug("StreamingDevice::startCaptureWithFormat"); - if (id.isValid() && m_AllCaptureStreams.tqcontains(id)) { + if (id.isValid() && m_AllCaptureStreams.contains(id)) { m_EnabledCaptureStreams.insert(id, m_AllCaptureStreams[id]); - StreamingJob &x = *m_CaptureChannels.tqfind(m_AllCaptureStreams[id]); + StreamingJob &x = *m_CaptureChannels.find(m_AllCaptureStreams[id]); x.startCapture(proposed_format, real_format, force_format); return true; } else { @@ -302,8 +302,8 @@ bool StreamingDevice::startCaptureWithFormat(SoundStreamID id, bool StreamingDevice::stopCapture(SoundStreamID id) { - if (id.isValid() && m_EnabledCaptureStreams.tqcontains(id)) { - StreamingJob &x = *m_CaptureChannels.tqfind(m_AllCaptureStreams[id]); + if (id.isValid() && m_EnabledCaptureStreams.contains(id)) { + StreamingJob &x = *m_CaptureChannels.find(m_AllCaptureStreams[id]); if (x.stopCapture()) { m_EnabledCaptureStreams.remove(id); } @@ -316,8 +316,8 @@ bool StreamingDevice::stopCapture(SoundStreamID id) bool StreamingDevice::isCaptureRunning(SoundStreamID id, bool &b, SoundFormat &sf) const { - if (id.isValid() && m_EnabledCaptureStreams.tqcontains(id)) { - StreamingJob &x = *m_CaptureChannels.tqfind(m_AllCaptureStreams[id]); + if (id.isValid() && m_EnabledCaptureStreams.contains(id)) { + StreamingJob &x = *m_CaptureChannels.find(m_AllCaptureStreams[id]); sf = x.getSoundFormat(); b = true; return true; @@ -339,22 +339,22 @@ bool StreamingDevice::noticeSoundStreamRedirected(SoundStreamID oldID, SoundStre { bool found = false; if (newID != oldID) { - if (m_AllPlaybackStreams.tqcontains(oldID)) { + if (m_AllPlaybackStreams.contains(oldID)) { m_AllPlaybackStreams.insert(newID, m_AllPlaybackStreams[oldID]); m_AllPlaybackStreams.remove(oldID); found = true; } - if (m_EnabledPlaybackStreams.tqcontains(oldID)) { + if (m_EnabledPlaybackStreams.contains(oldID)) { m_EnabledPlaybackStreams.insert(newID, m_EnabledPlaybackStreams[oldID]); m_EnabledPlaybackStreams.remove(oldID); found = true; } - if (m_AllCaptureStreams.tqcontains(oldID)) { + if (m_AllCaptureStreams.contains(oldID)) { m_AllCaptureStreams.insert(newID, m_AllCaptureStreams[oldID]); m_AllCaptureStreams.remove(oldID); found = true; } - if (m_EnabledCaptureStreams.tqcontains(oldID)) { + if (m_EnabledCaptureStreams.contains(oldID)) { m_EnabledCaptureStreams.insert(newID, m_EnabledCaptureStreams[oldID]); m_EnabledCaptureStreams.remove(oldID); found = true; @@ -370,8 +370,8 @@ bool StreamingDevice::noticeSoundStreamData(SoundStreamID id, const SoundMetaData &/*md*/ ) { - if (id.isValid() && m_EnabledPlaybackStreams.tqcontains(id)) { - StreamingJob &x = *m_CaptureChannels.tqfind(m_AllCaptureStreams[id]); + if (id.isValid() && m_EnabledPlaybackStreams.contains(id)) { + StreamingJob &x = *m_CaptureChannels.find(m_AllCaptureStreams[id]); x.playData(data, size, consumed_size); return true; } @@ -382,9 +382,9 @@ bool StreamingDevice::noticeSoundStreamData(SoundStreamID id, bool StreamingDevice::noticeReadyForPlaybackData(SoundStreamID id, size_t free_size) { - if (!id.isValid() || !m_AllCaptureStreams.tqcontains(id)) + if (!id.isValid() || !m_AllCaptureStreams.contains(id)) return false; - StreamingJob &x = *m_CaptureChannels.tqfind(m_AllCaptureStreams[id]); + StreamingJob &x = *m_CaptureChannels.find(m_AllCaptureStreams[id]); while (x.hasRecordedData() && free_size > 0) { const char *buffer = NULL; @@ -440,7 +440,7 @@ void StreamingDevice::logStreamWarning(const KURL &url, const TQString &s) bool StreamingDevice::getPlaybackStreamOptions(const TQString &channel, TQString &url, SoundFormat &sf, size_t &buffer_size) const { - if (m_PlaybackChannels.tqfind(channel)) { + if (m_PlaybackChannels.find(channel)) { const StreamingJob *j = m_PlaybackChannels[channel]; url = j->getURL(); sf = j->getSoundFormat(); @@ -453,7 +453,7 @@ bool StreamingDevice::getPlaybackStreamOptions(const TQString &channel, TQString bool StreamingDevice::getCaptureStreamOptions(const TQString &channel, TQString &url, SoundFormat &sf, size_t &buffer_size) const { - if (m_CaptureChannels.tqfind(channel)) { + if (m_CaptureChannels.find(channel)) { const StreamingJob *j = m_CaptureChannels[channel]; url = j->getURL(); sf = j->getSoundFormat(); diff --git a/kradio3/plugins/timeshifter/timeshifter-configuration.cpp b/kradio3/plugins/timeshifter/timeshifter-configuration.cpp index 2f68d68..167509a 100644 --- a/kradio3/plugins/timeshifter/timeshifter-configuration.cpp +++ b/kradio3/plugins/timeshifter/timeshifter-configuration.cpp @@ -88,7 +88,7 @@ void TimeShifterConfiguration::noticeConnectedSoundClient(ISoundStreamClient::th { if (i && pointer_valid && i->supportsPlayback() && m_Shifter) { const TQString &org_mid = m_Shifter->getPlaybackMixer(); - bool org_present = m_PlaybackMixerHelper.tqcontains(org_mid); + bool org_present = m_PlaybackMixerHelper.contains(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; @@ -119,7 +119,7 @@ bool TimeShifterConfiguration::setPlaybackMixer(const TQString &_mixer_id, const ISoundStreamClient *mixer = getSoundStreamClientWithID(mixer_id); if (mixer) { m_PlaybackChannelHelper.setData(mixer->getPlaybackChannels()); - m_PlaybackChannelHelper.setCurrentText(m_PlaybackChannelHelper.tqcontains(Channel) ? Channel : m_Shifter->getPlaybackMixerChannel()); + m_PlaybackChannelHelper.setCurrentText(m_PlaybackChannelHelper.contains(Channel) ? Channel : m_Shifter->getPlaybackMixerChannel()); } labelPlaybackMixerChannel->setEnabled(mixer != NULL); comboPlaybackMixerChannel->setEnabled(mixer != NULL); diff --git a/kradio3/plugins/v4lradio/v4lradio-configuration.cpp b/kradio3/plugins/v4lradio/v4lradio-configuration.cpp index ed8c61d..4abccf2 100644 --- a/kradio3/plugins/v4lradio/v4lradio-configuration.cpp +++ b/kradio3/plugins/v4lradio/v4lradio-configuration.cpp @@ -131,7 +131,7 @@ void V4LRadioConfiguration::noticeConnectedSoundClient(ISoundStreamClient::thisI { if (i && pointer_valid && i->supportsPlayback()) { const TQString &org_mid = queryPlaybackMixerID(); - bool org_present = m_PlaybackMixerHelper.tqcontains(org_mid); + bool org_present = m_PlaybackMixerHelper.contains(org_mid); const TQString &mid = org_present ? m_PlaybackMixerHelper.getCurrentItem() : org_mid; const TQString &org_ch = queryPlaybackMixerChannel(); const TQString &ch = org_present ? m_PlaybackChannelHelper.getCurrentText() : org_ch; @@ -139,7 +139,7 @@ void V4LRadioConfiguration::noticeConnectedSoundClient(ISoundStreamClient::thisI } if (i && pointer_valid && i->supportsCapture()) { const TQString &org_mid = queryCaptureMixerID(); - bool org_present = m_CaptureMixerHelper.tqcontains(org_mid); + bool org_present = m_CaptureMixerHelper.contains(org_mid); const TQString &mid = org_present ? m_CaptureMixerHelper.getCurrentItem() : org_mid; const TQString &org_ch = queryCaptureMixerChannel(); const TQString &ch = org_present ? m_CaptureChannelHelper.getCurrentText() : org_ch; @@ -185,7 +185,7 @@ bool V4LRadioConfiguration::noticePlaybackMixerChanged(const TQString &_mixer_id ISoundStreamClient *mixer = getSoundStreamClientWithID(mixer_id); if (mixer) { m_PlaybackChannelHelper.setData(mixer->getPlaybackChannels()); - m_PlaybackChannelHelper.setCurrentText(m_PlaybackChannelHelper.tqcontains(Channel) ? Channel : queryPlaybackMixerChannel()); + m_PlaybackChannelHelper.setCurrentText(m_PlaybackChannelHelper.contains(Channel) ? Channel : queryPlaybackMixerChannel()); } labelPlaybackMixerChannel->setEnabled(mixer != NULL); comboPlaybackMixerChannel->setEnabled(mixer != NULL); @@ -208,7 +208,7 @@ bool V4LRadioConfiguration::noticeCaptureMixerChanged(const TQString &_mixer_id, ISoundStreamClient *mixer = getSoundStreamClientWithID(mixer_id); if (mixer) { m_CaptureChannelHelper.setData(mixer->getCaptureChannels()); - m_CaptureChannelHelper.setCurrentText(m_CaptureChannelHelper.tqcontains(Channel) ? Channel : queryCaptureMixerChannel()); + m_CaptureChannelHelper.setCurrentText(m_CaptureChannelHelper.contains(Channel) ? Channel : queryCaptureMixerChannel()); } labelCaptureMixerChannel->setEnabled(mixer != NULL); comboCaptureMixerChannel->setEnabled(mixer != NULL); |