From 145d30f0b8cbacc3599379e8717299734f3bb534 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 25 Jan 2013 00:14:31 -0600 Subject: Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4 --- src/translators/filelistingimporter.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/translators/filelistingimporter.cpp') diff --git a/src/translators/filelistingimporter.cpp b/src/translators/filelistingimporter.cpp index 673cd21..934d4b0 100644 --- a/src/translators/filelistingimporter.cpp +++ b/src/translators/filelistingimporter.cpp @@ -69,12 +69,12 @@ Tellico::Data::CollPtr FileListingImporter::collection() { TQString volume = volumeName(); m_job = m_recursive->isChecked() - ? KIO::listRecursive(url(), true, false) - : KIO::listDir(url(), true, false); - connect(m_job, TQT_SIGNAL(entries(KIO::Job*, const KIO::UDSEntryList&)), - TQT_SLOT(slotEntries(KIO::Job*, const KIO::UDSEntryList&))); + ? TDEIO::listRecursive(url(), true, false) + : TDEIO::listDir(url(), true, false); + connect(m_job, TQT_SIGNAL(entries(TDEIO::Job*, const TDEIO::UDSEntryList&)), + TQT_SLOT(slotEntries(TDEIO::Job*, const TDEIO::UDSEntryList&))); - if(!KIO::NetAccess::synchronousRun(m_job, Kernel::self()->widget()) || m_cancelled) { + if(!TDEIO::NetAccess::synchronousRun(m_job, Kernel::self()->widget()) || m_cancelled) { return 0; } @@ -114,18 +114,18 @@ Tellico::Data::CollPtr FileListingImporter::collection() { // remove "./" from the string entry->setField(folder, tmp.right(tmp.length()-2)); entry->setField(type, it.current()->mimetype()); - entry->setField(size, KIO::convertSize(it.current()->size())); + entry->setField(size, TDEIO::convertSize(it.current()->size())); entry->setField(perm, it.current()->permissionsString()); entry->setField(owner, it.current()->user()); entry->setField(group, it.current()->group()); - time_t t = it.current()->time(KIO::UDS_CREATION_TIME); + time_t t = it.current()->time(TDEIO::UDS_CREATION_TIME); if(t > 0) { TQDateTime dt; dt.setTime_t(t); entry->setField(created, dt.toString(Qt::ISODate)); } - t = it.current()->time(KIO::UDS_MODIFICATION_TIME); + t = it.current()->time(TDEIO::UDS_MODIFICATION_TIME); if(t > 0) { TQDateTime dt; dt.setTime_t(t); @@ -206,14 +206,14 @@ TQWidget* FileListingImporter::widget(TQWidget* parent_, const char* name_) { return m_widget; } -void FileListingImporter::slotEntries(KIO::Job* job_, const KIO::UDSEntryList& list_) { +void FileListingImporter::slotEntries(TDEIO::Job* job_, const TDEIO::UDSEntryList& list_) { if(m_cancelled) { job_->kill(); m_job = 0; return; } - for(KIO::UDSEntryList::ConstIterator it = list_.begin(); it != list_.end(); ++it) { + for(TDEIO::UDSEntryList::ConstIterator it = list_.begin(); it != list_.end(); ++it) { KFileItem* item = new KFileItem(*it, url(), false, true); if(item->isFile()) { m_files.append(item); -- cgit v1.2.1