diff options
Diffstat (limited to 'src/fetch/discogsfetcher.cpp')
-rw-r--r-- | src/fetch/discogsfetcher.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/fetch/discogsfetcher.cpp b/src/fetch/discogsfetcher.cpp index 2d3384b..f24e642 100644 --- a/src/fetch/discogsfetcher.cpp +++ b/src/fetch/discogsfetcher.cpp @@ -65,7 +65,7 @@ bool DiscogsFetcher::canFetch(int type) const { return type == Data::Collection::Album; } -void DiscogsFetcher::readConfigHook(const KConfigGroup& config_) { +void DiscogsFetcher::readConfigHook(const TDEConfigGroup& config_) { TQString k = config_.readEntry("API Key"); if(!k.isEmpty()) { m_apiKey = k; @@ -127,11 +127,11 @@ void DiscogsFetcher::doSearch() { #endif // myDebug() << "DiscogsFetcher::search() - url: " << u.url() << endl; - m_job = KIO::get(u, 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*))); + m_job = TDEIO::get(u, 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*))); } void DiscogsFetcher::stop() { @@ -147,12 +147,12 @@ void DiscogsFetcher::stop() { emit signalDone(this); } -void DiscogsFetcher::slotData(KIO::Job*, const TQByteArray& data_) { +void DiscogsFetcher::slotData(TDEIO::Job*, const TQByteArray& data_) { TQDataStream stream(m_data, IO_WriteOnly | IO_Append); stream.writeRawBytes(data_.data(), data_.size()); } -void DiscogsFetcher::slotComplete(KIO::Job* job_) { +void DiscogsFetcher::slotComplete(TDEIO::Job* job_) { // myDebug() << "DiscogsFetcher::slotComplete()" << endl; if(job_->error()) { job_->showErrorDialog(Kernel::self()->widget()); @@ -387,7 +387,7 @@ DiscogsFetcher::ConfigWidget::ConfigWidget(TQWidget* parent_, const DiscogsFetch } } -void DiscogsFetcher::ConfigWidget::saveConfig(KConfigGroup& config_) { +void DiscogsFetcher::ConfigWidget::saveConfig(TDEConfigGroup& config_) { TQString apiKey = m_apiKeyEdit->text().stripWhiteSpace(); if(!apiKey.isEmpty()) { config_.writeEntry("API Key", apiKey); |