diff options
Diffstat (limited to 'src/fetch/imdbfetcher.cpp')
-rw-r--r-- | src/fetch/imdbfetcher.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/fetch/imdbfetcher.cpp b/src/fetch/imdbfetcher.cpp index 8880df9..d23881b 100644 --- a/src/fetch/imdbfetcher.cpp +++ b/src/fetch/imdbfetcher.cpp @@ -97,7 +97,7 @@ bool IMDBFetcher::canFetch(int type) const { return type == Data::Collection::Video; } -void IMDBFetcher::readConfigHook(const KConfigGroup& config_) { +void IMDBFetcher::readConfigHook(const TDEConfigGroup& config_) { TQString h = config_.readEntry("Host"); if(!h.isEmpty()) { m_host = h; @@ -164,13 +164,13 @@ void IMDBFetcher::search(FetchKey key_, const TQString& value_) { // myDebug() << "IMDBFetcher::search() url = " << m_url << endl; #endif - m_job = KIO::get(m_url, false, false); - connect(m_job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), - TQT_SLOT(slotData(KIO::Job*, const TQByteArray&))); - connect(m_job, TQT_SIGNAL(result(KIO::Job*)), - TQT_SLOT(slotComplete(KIO::Job*))); - connect(m_job, TQT_SIGNAL(redirection(KIO::Job *, const KURL&)), - TQT_SLOT(slotRedirection(KIO::Job*, const KURL&))); + m_job = TDEIO::get(m_url, false, false); + connect(m_job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)), + TQT_SLOT(slotData(TDEIO::Job*, const TQByteArray&))); + connect(m_job, TQT_SIGNAL(result(TDEIO::Job*)), + TQT_SLOT(slotComplete(TDEIO::Job*))); + connect(m_job, TQT_SIGNAL(redirection(TDEIO::Job *, const KURL&)), + TQT_SLOT(slotRedirection(TDEIO::Job*, const KURL&))); } void IMDBFetcher::continueSearch() { @@ -217,17 +217,17 @@ void IMDBFetcher::stop() { emit signalDone(this); } -void IMDBFetcher::slotData(KIO::Job*, const TQByteArray& data_) { +void IMDBFetcher::slotData(TDEIO::Job*, const TQByteArray& data_) { TQDataStream stream(m_data, IO_WriteOnly | IO_Append); stream.writeRawBytes(data_.data(), data_.size()); } -void IMDBFetcher::slotRedirection(KIO::Job*, const KURL& toURL_) { +void IMDBFetcher::slotRedirection(TDEIO::Job*, const KURL& toURL_) { m_url = toURL_; m_redirected = true; } -void IMDBFetcher::slotComplete(KIO::Job* job_) { +void IMDBFetcher::slotComplete(TDEIO::Job* job_) { // since the fetch is done, don't worry about holding the job pointer m_job = 0; @@ -608,13 +608,13 @@ void IMDBFetcher::parseMultipleNameResults() { // redirected is true since that's how I tell if an exact match has been found m_redirected = true; m_data.truncate(0); - m_job = KIO::get(m_url, false, false); - connect(m_job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), - TQT_SLOT(slotData(KIO::Job*, const TQByteArray&))); - connect(m_job, TQT_SIGNAL(result(KIO::Job*)), - TQT_SLOT(slotComplete(KIO::Job*))); - connect(m_job, TQT_SIGNAL(redirection(KIO::Job *, const KURL&)), - TQT_SLOT(slotRedirection(KIO::Job*, const KURL&))); + m_job = TDEIO::get(m_url, false, false); + connect(m_job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)), + TQT_SLOT(slotData(TDEIO::Job*, const TQByteArray&))); + connect(m_job, TQT_SIGNAL(result(TDEIO::Job*)), + TQT_SLOT(slotComplete(TDEIO::Job*))); + connect(m_job, TQT_SIGNAL(redirection(TDEIO::Job *, const KURL&)), + TQT_SLOT(slotRedirection(TDEIO::Job*, const KURL&))); // do not stop() here } @@ -1106,13 +1106,13 @@ void IMDBFetcher::updateEntry(Data::EntryPtr entry_) { m_matches.clear(); m_url = link; m_redirected = true; // m_redirected is used as a flag later to tell if we get a single result - m_job = KIO::get(m_url, false, false); - connect(m_job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), - TQT_SLOT(slotData(KIO::Job*, const TQByteArray&))); - connect(m_job, TQT_SIGNAL(result(KIO::Job*)), - TQT_SLOT(slotComplete(KIO::Job*))); - connect(m_job, TQT_SIGNAL(redirection(KIO::Job *, const KURL&)), - TQT_SLOT(slotRedirection(KIO::Job*, const KURL&))); + m_job = TDEIO::get(m_url, false, false); + connect(m_job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)), + TQT_SLOT(slotData(TDEIO::Job*, const TQByteArray&))); + connect(m_job, TQT_SIGNAL(result(TDEIO::Job*)), + TQT_SLOT(slotComplete(TDEIO::Job*))); + connect(m_job, TQT_SIGNAL(redirection(TDEIO::Job *, const KURL&)), + TQT_SLOT(slotRedirection(TDEIO::Job*, const KURL&))); return; } // optimistically try searching for title and rely on Collection::sameEntry() to figure things out @@ -1179,7 +1179,7 @@ IMDBFetcher::ConfigWidget::ConfigWidget(TQWidget* parent_, const IMDBFetcher* fe } } -void IMDBFetcher::ConfigWidget::saveConfig(KConfigGroup& config_) { +void IMDBFetcher::ConfigWidget::saveConfig(TDEConfigGroup& config_) { TQString host = m_hostEdit->text().stripWhiteSpace(); if(!host.isEmpty()) { config_.writeEntry("Host", host); |