summaryrefslogtreecommitdiffstats
path: root/kftpgrabber/src/misc/plugins/bookmarkimport/ncftp/kftpimportncftpplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kftpgrabber/src/misc/plugins/bookmarkimport/ncftp/kftpimportncftpplugin.cpp')
-rw-r--r--kftpgrabber/src/misc/plugins/bookmarkimport/ncftp/kftpimportncftpplugin.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kftpgrabber/src/misc/plugins/bookmarkimport/ncftp/kftpimportncftpplugin.cpp b/kftpgrabber/src/misc/plugins/bookmarkimport/ncftp/kftpimportncftpplugin.cpp
index e146f88..abf8ba8 100644
--- a/kftpgrabber/src/misc/plugins/bookmarkimport/ncftp/kftpimportncftpplugin.cpp
+++ b/kftpgrabber/src/misc/plugins/bookmarkimport/ncftp/kftpimportncftpplugin.cpp
@@ -34,44 +34,44 @@
*/
#include "kftpimportncftpplugin.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_ncftp,
KGenericFactory<KFTPImportNcftpPlugin>("kftpimportplugin_ncftp"))
-KFTPImportNcftpPlugin::KFTPImportNcftpPlugin(QObject *parent, const char *name, const QStringList&)
+KFTPImportNcftpPlugin::KFTPImportNcftpPlugin(TQObject *parent, const char *name, const TQStringList&)
: KFTPBookmarkImportPlugin(parent, name)
{
- KGlobal::locale()->insertCatalogue("kftpgrabber");
- m_domDocument.setContent(QString("<category name=\"%1\"/>").arg(i18n("NcFtp import")));
+ TDEGlobal::locale()->insertCatalogue("kftpgrabber");
+ m_domDocument.setContent(TQString("<category name=\"%1\"/>").arg(i18n("NcFtp import")));
}
-QDomDocument KFTPImportNcftpPlugin::getImportedXml()
+TQDomDocument KFTPImportNcftpPlugin::getImportedXml()
{
return m_domDocument;
}
-void KFTPImportNcftpPlugin::import(const QString &fileName)
+void KFTPImportNcftpPlugin::import(const TQString &fileName)
{
/*
ARNES FTP serve,ftp.arnes.si,username,*encoded*cGFzc3dvcmQA,,/remote,I,21,4294967295,1,1,-1,1,193.2.1.79,Komentar,,,,,S,-1,/local
Redhat,ftp.redhat.com,,,,,I,21,1102099812,-1,-1,-1,1,66.187.224.30,,,,,,S,-1,
*/
- QFile f(fileName);
+ TQFile f(fileName);
if (!f.open(IO_ReadOnly)) {
emit progress(100);
return;
}
- QTextStream stream(&f);
- QString line;
+ TQTextStream stream(&f);
+ TQString line;
int lineNum = 0;
while (!stream.atEnd()) {
@@ -79,17 +79,17 @@ void KFTPImportNcftpPlugin::import(const QString &fileName)
if (++lineNum <= 2) continue;
// Add the imported bookmark
- QDomElement parentElement = m_domDocument.documentElement();
+ TQDomElement parentElement = m_domDocument.documentElement();
// Set name
- QDomElement siteElement = m_domDocument.createElement("server");
+ TQDomElement siteElement = m_domDocument.createElement("server");
siteElement.setAttribute("name", subSection(line, 0));
parentElement.appendChild(siteElement);
// Set host
- QString tmp = subSection(line, 1);
- QDomElement tmpElement = m_domDocument.createElement("host");
- QDomText txtNode = m_domDocument.createTextNode(tmp);
+ TQString tmp = subSection(line, 1);
+ TQDomElement tmpElement = m_domDocument.createElement("host");
+ TQDomText txtNode = m_domDocument.createTextNode(tmp);
tmpElement.appendChild(txtNode);
siteElement.appendChild(tmpElement);
@@ -108,7 +108,7 @@ void KFTPImportNcftpPlugin::import(const QString &fileName)
siteElement.appendChild(tmpElement);
// Set local directory
- tmp = subSection(line, 21, QDir::homeDirPath());
+ tmp = subSection(line, 21, TQDir::homeDirPath());
tmpElement = m_domDocument.createElement("deflocalpath");
txtNode = m_domDocument.createTextNode(tmp);
tmpElement.appendChild(txtNode);
@@ -150,16 +150,16 @@ void KFTPImportNcftpPlugin::import(const QString &fileName)
emit progress(100);
}
-QString KFTPImportNcftpPlugin::subSection(const QString &text, int section, const QString &def)
+TQString KFTPImportNcftpPlugin::subSection(const TQString &text, int section, const TQString &def)
{
- QString tmp = text.section(',', section, section);
+ TQString tmp = text.section(',', section, section);
return tmp.isEmpty() ? def : tmp;
}
-QString KFTPImportNcftpPlugin::getDefaultPath()
+TQString KFTPImportNcftpPlugin::getDefaultPath()
{
- return QString(".ncftp/bookmarks");
+ return TQString(".ncftp/bookmarks");
}
#include "kftpimportncftpplugin.moc"