summaryrefslogtreecommitdiffstats
path: root/src/translators/htmlexporter.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-25 00:14:31 -0600
committerTimothy Pearson <[email protected]>2013-01-25 00:14:31 -0600
commit145d30f0b8cbacc3599379e8717299734f3bb534 (patch)
tree3713677dce079619063612b12788282fd32e53af /src/translators/htmlexporter.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/htmlexporter.cpp')
-rw-r--r--src/translators/htmlexporter.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/translators/htmlexporter.cpp b/src/translators/htmlexporter.cpp
index 6cb38b4..2e006a3 100644
--- a/src/translators/htmlexporter.cpp
+++ b/src/translators/htmlexporter.cpp
@@ -483,8 +483,8 @@ TQWidget* HTMLExporter::widget(TQWidget* parent_, const char* name_/*=0*/) {
return m_widget;
}
-void HTMLExporter::readOptions(KConfig* config_) {
- KConfigGroup exportConfig(config_, TQString::fromLatin1("ExportOptions - %1").arg(formatString()));
+void HTMLExporter::readOptions(TDEConfig* config_) {
+ TDEConfigGroup exportConfig(config_, TQString::fromLatin1("ExportOptions - %1").arg(formatString()));
m_printHeaders = exportConfig.readBoolEntry("Print Field Headers", m_printHeaders);
m_printGrouped = exportConfig.readBoolEntry("Print Grouped", m_printGrouped);
m_exportEntryFiles = exportConfig.readBoolEntry("Export Entry Files", m_exportEntryFiles);
@@ -495,8 +495,8 @@ void HTMLExporter::readOptions(KConfig* config_) {
+ m_entryXSLTFile + TQString::fromLatin1(".xsl"));
}
-void HTMLExporter::saveOptions(KConfig* config_) {
- KConfigGroup cfg(config_, TQString::fromLatin1("ExportOptions - %1").arg(formatString()));
+void HTMLExporter::saveOptions(TDEConfig* config_) {
+ TDEConfigGroup cfg(config_, TQString::fromLatin1("ExportOptions - %1").arg(formatString()));
m_printHeaders = m_checkPrintHeaders->isChecked();
cfg.writeEntry("Print Field Headers", m_printHeaders);
m_printGrouped = m_checkPrintGrouped->isChecked();
@@ -562,7 +562,7 @@ TQString HTMLExporter::handleLink(const TQString& link_) {
// the tmpDir() when exporting entry files from a collection, but those images
// don't actually exist, and they get copied in writeImages() instead.
// so we only need to keep track of the url if it exists
- const bool exists = KIO::NetAccess::exists(u, false, 0);
+ const bool exists = TDEIO::NetAccess::exists(u, false, 0);
if(exists) {
m_files.append(u);
}
@@ -620,10 +620,10 @@ void HTMLExporter::createDir() {
myDebug() << "HTMLExporter::createDir() - called on empty URL!" << endl;
return;
}
- if(KIO::NetAccess::exists(dir, false, 0)) {
+ if(TDEIO::NetAccess::exists(dir, false, 0)) {
m_checkCreateDir = false;
} else {
- m_checkCreateDir = !KIO::NetAccess::mkdir(dir, m_widget);
+ m_checkCreateDir = !TDEIO::NetAccess::mkdir(dir, m_widget);
}
}
@@ -647,12 +647,12 @@ bool HTMLExporter::copyFiles() {
target = fileDir();
}
target.setFileName((*it).fileName());
- bool success = KIO::NetAccess::file_copy(*it, target, -1, true /* overwrite */, false /* resume */, m_widget);
+ bool success = TDEIO::NetAccess::file_copy(*it, target, -1, true /* overwrite */, false /* resume */, m_widget);
if(success) {
m_copiedFiles.add((*it).url());
} else {
kdWarning() << "HTMLExporter::copyFiles() - can't copy " << target << endl;
- kdWarning() << KIO::NetAccess::lastErrorString() << endl;
+ kdWarning() << TDEIO::NetAccess::lastErrorString() << endl;
}
if(j%stepSize == 0) {
if(options() & ExportProgress) {
@@ -741,11 +741,11 @@ bool HTMLExporter::writeEntryFiles() {
dataDir.setPath(TDEGlobal::dirs()->findResourceDir("appdata", TQString::fromLatin1("pics/tellico.png")) + "pics/");
KURL target = fileDir();
target.addPath(TQString::fromLatin1("pics/"));
- KIO::NetAccess::mkdir(target, m_widget);
+ TDEIO::NetAccess::mkdir(target, m_widget);
for(TQStringList::ConstIterator it = dataImages.begin(); it != dataImages.end(); ++it) {
dataDir.setFileName(*it);
target.setFileName(*it);
- KIO::NetAccess::copy(dataDir, target, m_widget);
+ TDEIO::NetAccess::copy(dataDir, target, m_widget);
}
return true;