diff options
Diffstat (limited to 'src/fetch/srufetcher.cpp')
-rw-r--r-- | src/fetch/srufetcher.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/fetch/srufetcher.cpp b/src/fetch/srufetcher.cpp index 24d9ec0..505fa74 100644 --- a/src/fetch/srufetcher.cpp +++ b/src/fetch/srufetcher.cpp @@ -81,7 +81,7 @@ bool SRUFetcher::canFetch(int type) const { return type == Data::Collection::Book || type == Data::Collection::Bibtex; } -void SRUFetcher::readConfigHook(const KConfigGroup& config_) { +void SRUFetcher::readConfigHook(const TDEConfigGroup& config_) { m_host = config_.readEntry("Host"); int p = config_.readNumEntry("Port", SRU_DEFAULT_PORT); if(p > 0) { @@ -183,11 +183,11 @@ void SRUFetcher::search(FetchKey key_, const TQString& value_) { #endif // myDebug() << u.prettyURL() << 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 SRUFetcher::stop() { @@ -203,12 +203,12 @@ void SRUFetcher::stop() { emit signalDone(this); } -void SRUFetcher::slotData(KIO::Job*, const TQByteArray& data_) { +void SRUFetcher::slotData(TDEIO::Job*, const TQByteArray& data_) { TQDataStream stream(m_data, IO_WriteOnly | IO_Append); stream.writeRawBytes(data_.data(), data_.size()); } -void SRUFetcher::slotComplete(KIO::Job* job_) { +void SRUFetcher::slotComplete(TDEIO::Job* job_) { // since the fetch is done, don't worry about holding the job pointer m_job = 0; @@ -495,7 +495,7 @@ SRUConfigWidget::SRUConfigWidget(TQWidget* parent_, const SRUFetcher* fetcher_ / KAcceleratorManager::manage(optionsWidget()); } -void SRUConfigWidget::saveConfig(KConfigGroup& config_) { +void SRUConfigWidget::saveConfig(TDEConfigGroup& config_) { TQString s = m_hostEdit->text().stripWhiteSpace(); if(!s.isEmpty()) { config_.writeEntry("Host", s); |