summaryrefslogtreecommitdiffstats
path: root/kftpgrabber/src/misc/plugins/bookmarkimport/kftp/kftpimportkftpplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kftpgrabber/src/misc/plugins/bookmarkimport/kftp/kftpimportkftpplugin.cpp')
-rw-r--r--kftpgrabber/src/misc/plugins/bookmarkimport/kftp/kftpimportkftpplugin.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kftpgrabber/src/misc/plugins/bookmarkimport/kftp/kftpimportkftpplugin.cpp b/kftpgrabber/src/misc/plugins/bookmarkimport/kftp/kftpimportkftpplugin.cpp
index 3ea06d8..c376501 100644
--- a/kftpgrabber/src/misc/plugins/bookmarkimport/kftp/kftpimportkftpplugin.cpp
+++ b/kftpgrabber/src/misc/plugins/bookmarkimport/kftp/kftpimportkftpplugin.cpp
@@ -35,35 +35,35 @@
#include "kftpimportkftpplugin.h"
-#include <qdir.h>
-#include <qfile.h>
+#include <ntqdir.h>
+#include <ntqfile.h>
#include <kgenericfactory.h>
-#include <klocale.h>
-#include <kconfig.h>
+#include <tdelocale.h>
+#include <tdeconfig.h>
#include <kmdcodec.h>
K_EXPORT_COMPONENT_FACTORY(kftpimportplugin_kftp,
KGenericFactory<KFTPImportKftpPlugin>("kftpimportplugin_kftp"))
-KFTPImportKftpPlugin::KFTPImportKftpPlugin(QObject *parent, const char *name, const QStringList&)
+KFTPImportKftpPlugin::KFTPImportKftpPlugin(TQObject *parent, const char *name, const TQStringList&)
: KFTPBookmarkImportPlugin(parent, name)
{
- KGlobal::locale()->insertCatalogue("kftpgrabber");
+ TDEGlobal::locale()->insertCatalogue("kftpgrabber");
}
-QDomDocument KFTPImportKftpPlugin::getImportedXml()
+TQDomDocument KFTPImportKftpPlugin::getImportedXml()
{
return m_domDocument;
}
-void KFTPImportKftpPlugin::import(const QString &fileName)
+void KFTPImportKftpPlugin::import(const TQString &fileName)
{
- m_domDocument.setContent(QString("<category name=\"%1\"/>").arg(i18n("KFTPGrabber import")));
+ m_domDocument.setContent(TQString("<category name=\"%1\"/>").arg(i18n("KFTPGrabber import")));
// There is actually nothing to import, we just have to read the existing XML and
// remove site ids.
- QFile file(fileName);
+ TQFile file(fileName);
if (!file.open(IO_ReadOnly)) {
emit progress(100);
return;
@@ -76,10 +76,10 @@ void KFTPImportKftpPlugin::import(const QString &fileName)
stripIds();
// Now append the bookmarks
- QDomNode n = m_workDocument.documentElement().firstChild();
+ TQDomNode n = m_workDocument.documentElement().firstChild();
while (!n.isNull()) {
- QDomNode import = m_domDocument.importNode(n, true);
+ TQDomNode import = m_domDocument.importNode(n, true);
m_domDocument.documentElement().appendChild(import);
n = n.nextSibling();
@@ -88,12 +88,12 @@ void KFTPImportKftpPlugin::import(const QString &fileName)
emit progress(100);
}
-void KFTPImportKftpPlugin::stripIds(QDomNode node)
+void KFTPImportKftpPlugin::stripIds(TQDomNode node)
{
if (node.isNull())
node = m_workDocument.documentElement();
- QDomNode n = node.firstChild();
+ TQDomNode n = node.firstChild();
while (!n.isNull()) {
if (n.toElement().tagName() == "category") {
@@ -110,9 +110,9 @@ void KFTPImportKftpPlugin::stripIds(QDomNode node)
}
}
-QString KFTPImportKftpPlugin::getDefaultPath()
+TQString KFTPImportKftpPlugin::getDefaultPath()
{
- return QString("");
+ return TQString("");
}
#include "kftpimportkftpplugin.moc"