diff options
Diffstat (limited to 'src/fetch/entrezfetcher.cpp')
-rw-r--r-- | src/fetch/entrezfetcher.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/fetch/entrezfetcher.cpp b/src/fetch/entrezfetcher.cpp index 0d38009..51839ec 100644 --- a/src/fetch/entrezfetcher.cpp +++ b/src/fetch/entrezfetcher.cpp @@ -64,7 +64,7 @@ bool EntrezFetcher::canFetch(int type) const { return type == Data::Collection::Bibtex; } -void EntrezFetcher::readConfigHook(const KConfigGroup& config_) { +void EntrezFetcher::readConfigHook(const TDEConfigGroup& config_) { TQString s = config_.readEntry("Database", TQString::fromLatin1(ENTREZ_DEFAULT_DATABASE)); // default to pubmed if(!s.isEmpty()) { m_dbname = s; @@ -130,11 +130,11 @@ void EntrezFetcher::search(FetchKey key_, const TQString& value_) { m_step = Search; // myLog() << "EntrezFetcher::doSearch() - 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 EntrezFetcher::continueSearch() { @@ -156,12 +156,12 @@ void EntrezFetcher::stop() { emit signalDone(this); } -void EntrezFetcher::slotData(KIO::Job*, const TQByteArray& data_) { +void EntrezFetcher::slotData(TDEIO::Job*, const TQByteArray& data_) { TQDataStream stream(m_data, IO_WriteOnly | IO_Append); stream.writeRawBytes(data_.data(), data_.size()); } -void EntrezFetcher::slotComplete(KIO::Job* job_) { +void EntrezFetcher::slotComplete(TDEIO::Job* job_) { // since the fetch is done, don't worry about holding the job pointer m_job = 0; @@ -255,11 +255,11 @@ void EntrezFetcher::doSummary() { m_step = Summary; // myLog() << "EntrezFetcher::searchResults() - 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 EntrezFetcher::summaryResults() { @@ -477,7 +477,7 @@ EntrezFetcher::ConfigWidget::ConfigWidget(TQWidget* parent_, const EntrezFetcher addFieldsWidget(EntrezFetcher::customFields(), fetcher_ ? fetcher_->m_fields : TQStringList()); } -void EntrezFetcher::ConfigWidget::saveConfig(KConfigGroup& config_) { +void EntrezFetcher::ConfigWidget::saveConfig(TDEConfigGroup& config_) { saveFieldsConfig(config_); slotSetModified(false); } |