summaryrefslogtreecommitdiffstats
path: root/src/translators/filelistingimporter.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:14:31 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:14:31 -0600
commit145d30f0b8cbacc3599379e8717299734f3bb534 (patch)
tree3713677dce079619063612b12788282fd32e53af /src/translators/filelistingimporter.cpp
parent5b6d393e0a2c88cce8f433607c091ae883ef54f9 (diff)
downloadtellico-145d30f0b8cbacc3599379e8717299734f3bb534.tar.gz
tellico-145d30f0b8cbacc3599379e8717299734f3bb534.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'src/translators/filelistingimporter.cpp')
-rw-r--r--src/translators/filelistingimporter.cpp20
1 files changed, 10 insertions, 10 deletions
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);