diff options
Diffstat (limited to 'src/kbsiteinfo.cpp')
-rw-r--r-- | src/kbsiteinfo.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/kbsiteinfo.cpp b/src/kbsiteinfo.cpp index 63ba875..353f9a4 100644 --- a/src/kbsiteinfo.cpp +++ b/src/kbsiteinfo.cpp @@ -13,10 +13,10 @@ #include <kstandarddirs.h> -#include <qdom.h> -#include <qfile.h> -#include <qdir.h> -#include <qtextstream.h> +#include <ntqdom.h> +#include <ntqfile.h> +#include <ntqdir.h> +#include <ntqtextstream.h> #include "kbsiteinfo.h" @@ -54,9 +54,9 @@ list<KbSiteInfo> KbSiteInfo::ParseBookmarks() list<KbSiteInfo> bookmarks; bookmarks.clear(); - QDomDocument doc( "KasablancaBookmarks" ); + TQDomDocument doc( "KasablancaBookmarks" ); - QFile filein(locateLocal("appdata", "bookmarks.xml")); + TQFile filein(locateLocal("appdata", "bookmarks.xml")); if( !filein.open( IO_ReadOnly ) ) return bookmarks; @@ -68,15 +68,15 @@ list<KbSiteInfo> KbSiteInfo::ParseBookmarks() filein.close(); - QDomElement root = doc.documentElement(); + TQDomElement root = doc.documentElement(); if( root.tagName() != "kasablanca" ) return bookmarks; - QDomNode curNode = root.firstChild(); + TQDomNode curNode = root.firstChild(); while( !curNode.isNull() ) { - QDomElement siteElement = curNode.toElement(); + TQDomElement siteElement = curNode.toElement(); if( !siteElement.isNull() ) { @@ -90,11 +90,11 @@ list<KbSiteInfo> KbSiteInfo::ParseBookmarks() entry.SetDefaultDirectory(""); entry.SetName(siteElement.attribute( "name", "" )); - QDomNode siteNode = siteElement.firstChild(); + TQDomNode siteNode = siteElement.firstChild(); while( !siteNode.isNull() ) { - QDomElement curElement = siteNode.toElement(); + TQDomElement curElement = siteNode.toElement(); if( !curElement.isNull() ) { @@ -123,8 +123,8 @@ list<KbSiteInfo> KbSiteInfo::ParseBookmarks() bool KbSiteInfo::WriteBookmarks(list<KbSiteInfo> bookmarks) { - QDomDocument doc( "KasablancaBookmarks" ); - QDomElement root = doc.createElement( "kasablanca" ); + TQDomDocument doc( "KasablancaBookmarks" ); + TQDomElement root = doc.createElement( "kasablanca" ); doc.appendChild( root ); list<KbSiteInfo>::iterator end_bookmarks = bookmarks.end(); @@ -132,12 +132,12 @@ bool KbSiteInfo::WriteBookmarks(list<KbSiteInfo> bookmarks) { if ((*i).IsLegit()) { - QDomElement siteElement = doc.createElement("site"); + TQDomElement siteElement = doc.createElement("site"); siteElement.setAttribute("name", (*i).GetName()); root.appendChild( siteElement ); - QDomText text; - QDomElement curElement; + TQDomText text; + TQDomElement curElement; curElement = doc.createElement( "user" ); siteElement.appendChild( curElement ); @@ -156,22 +156,22 @@ bool KbSiteInfo::WriteBookmarks(list<KbSiteInfo> bookmarks) curElement = doc.createElement( "pasv" ); siteElement.appendChild( curElement ); - text = doc.createTextNode(QString::number((*i).GetPasv())); + text = doc.createTextNode(TQString::number((*i).GetPasv())); curElement.appendChild(text); curElement = doc.createElement( "tls" ); siteElement.appendChild( curElement ); - text = doc.createTextNode(QString::number((*i).GetTls())); + text = doc.createTextNode(TQString::number((*i).GetTls())); curElement.appendChild(text); curElement = doc.createElement( "alternativefxp" ); siteElement.appendChild( curElement ); - text = doc.createTextNode(QString::number((*i).GetAlternativeFxp())); + text = doc.createTextNode(TQString::number((*i).GetAlternativeFxp())); curElement.appendChild(text); curElement = doc.createElement( "correctpasv" ); siteElement.appendChild( curElement ); - text = doc.createTextNode(QString::number((*i).GetCorrectPasv())); + text = doc.createTextNode(TQString::number((*i).GetCorrectPasv())); curElement.appendChild(text); curElement = doc.createElement( "defaultdirectory" ); @@ -181,11 +181,11 @@ bool KbSiteInfo::WriteBookmarks(list<KbSiteInfo> bookmarks) } } - QFile fileout(locateLocal("appdata", "bookmarks.xml")); + TQFile fileout(locateLocal("appdata", "bookmarks.xml")); if( !fileout.open( IO_WriteOnly ) ) return false; - QTextStream ts( &fileout ); + TQTextStream ts( &fileout ); ts << doc.toString(); fileout.close(); |