summaryrefslogtreecommitdiffstats
path: root/kresources/newexchange/exchangeglobals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/newexchange/exchangeglobals.cpp')
-rw-r--r--kresources/newexchange/exchangeglobals.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/kresources/newexchange/exchangeglobals.cpp b/kresources/newexchange/exchangeglobals.cpp
index 7cca837df..544051667 100644
--- a/kresources/newexchange/exchangeglobals.cpp
+++ b/kresources/newexchange/exchangeglobals.cpp
@@ -33,14 +33,14 @@
#include <kio/davjob.h>
#include <kdebug.h>
-KPIM::FolderLister::ContentType ExchangeGlobals::getContentType( const QDomElement &prop )
+KPIM::FolderLister::ContentType ExchangeGlobals::getContentType( const TQDomElement &prop )
{
- const QString &contentclass = prop.namedItem("contentclass").toElement().text();
+ const TQString &contentclass = prop.namedItem("contentclass").toElement().text();
kdDebug()<<"contentclass: "<<contentclass<<endl;
return getContentType( contentclass );
}
-KPIM::FolderLister::ContentType ExchangeGlobals::getContentType( const QString &contentclass )
+KPIM::FolderLister::ContentType ExchangeGlobals::getContentType( const TQString &contentclass )
{
if ( contentclass == "urn:content-classes:appointment" )
return KPIM::FolderLister::Event;
@@ -54,15 +54,15 @@ KPIM::FolderLister::ContentType ExchangeGlobals::getContentType( const QString &
}
-KPIM::FolderLister::ContentType ExchangeGlobals::getContentType( const QDomNode &folderNode )
+KPIM::FolderLister::ContentType ExchangeGlobals::getContentType( const TQDomNode &folderNode )
{
kdDebug()<<"ExchangeGlobals::getContentType(...)"<<endl;
- QDomNode n4;
+ TQDomNode n4;
for( n4 = folderNode.firstChild(); !n4.isNull(); n4 = n4.nextSibling() ) {
- QDomElement e = n4.toElement();
+ TQDomElement e = n4.toElement();
if ( e.tagName() == "contentclass" ) {
- QString contentclass( e.text() );
+ TQString contentclass( e.text() );
if ( contentclass == "urn:content-classes:contactfolder" )
return KPIM::FolderLister::Contact;
if ( contentclass == "urn:content-classes:calendarfolder" )
@@ -78,9 +78,9 @@ kdDebug()<<"ExchangeGlobals::getContentType(...)"<<endl;
return KPIM::FolderLister::Unknown;
}
-bool ExchangeGlobals::getFolderHasSubs( const QDomNode &folderNode )
+bool ExchangeGlobals::getFolderHasSubs( const TQDomNode &folderNode )
{
- QString hassubs = folderNode.namedItem( "hassubs" ).toElement().text();
+ TQString hassubs = folderNode.namedItem( "hassubs" ).toElement().text();
return hassubs == "1";
}
@@ -89,9 +89,9 @@ bool ExchangeGlobals::getFolderHasSubs( const QDomNode &folderNode )
KIO::Job *ExchangeGlobals::createListFoldersJob( const KURL &url )
{
- QDomDocument doc;
- QDomElement root = WebdavHandler::addDavElement( doc, doc, "d:propfind" );
- QDomElement prop = WebdavHandler::addElement( doc, root, "d:prop" );
+ TQDomDocument doc;
+ TQDomElement root = WebdavHandler::addDavElement( doc, doc, "d:propfind" );
+ TQDomElement prop = WebdavHandler::addElement( doc, root, "d:prop" );
WebdavHandler::addElement( doc, prop, "d:displayname" );
WebdavHandler::addElement( doc, prop, "d:contentclass" );
WebdavHandler::addElement( doc, prop, "d:hassubs" );
@@ -103,9 +103,9 @@ KIO::Job *ExchangeGlobals::createListFoldersJob( const KURL &url )
KIO::TransferJob *ExchangeGlobals::createListItemsJob( const KURL &url )
{
- QDomDocument doc;
- QDomElement root = WebdavHandler::addDavElement( doc, doc, "d:propfind" );
- QDomElement prop = WebdavHandler::addElement( doc, root, "d:prop" );
+ TQDomDocument doc;
+ TQDomElement root = WebdavHandler::addDavElement( doc, doc, "d:propfind" );
+ TQDomElement prop = WebdavHandler::addElement( doc, root, "d:prop" );
WebdavHandler::addElement( doc, prop, "d:getetag" );
WebdavHandler::addElement( doc, prop, "d:contentclass" );
kdDebug(5800) << "props = "<< doc.toString() << endl;
@@ -125,14 +125,14 @@ kdDebug() << "Person=" << KPIM::FolderLister::Contact << ", "
<< "Message=" << KPIM::FolderLister::Message << endl;
// Don't use an <allprop/> request!
- QDomDocument doc;
- QDomElement root = WebdavHandler::addDavElement( doc, doc, "d:propfind" );
- QDomElement prop = WebdavHandler::addElement( doc, root, "d:prop" );
- QDomAttr att_h = doc.createAttribute( "xmlns:h" );
+ TQDomDocument doc;
+ TQDomElement root = WebdavHandler::addDavElement( doc, doc, "d:propfind" );
+ TQDomElement prop = WebdavHandler::addElement( doc, root, "d:prop" );
+ TQDomAttr att_h = doc.createAttribute( "xmlns:h" );
att_h.setValue( "urn:schemas:mailheader:" );
root.setAttributeNode( att_h );
- QDomAttr att_m = doc.createAttribute( "xmlns:m" );
+ TQDomAttr att_m = doc.createAttribute( "xmlns:m" );
att_m.setValue( "urn:schemas:httpmail:" );
root.setAttributeNode( att_m );
@@ -158,7 +158,7 @@ kdDebug() << "Person=" << KPIM::FolderLister::Contact << ", "
KURL authURL = url;
KIO::DavJob *job = KIO::davPropFind( authURL, doc, "0", false );
/* KURL httpurl( url );
- QString proto("http");
+ TQString proto("http");
httpurl.setProtocol( proto );
KIO::TransferJob *job = KIO::get(httpurl, false, false);
job->addMetaData("customHTTPHeader", "Translate: f");
@@ -170,7 +170,7 @@ kdDebug() << "Person=" << KPIM::FolderLister::Contact << ", "
KIO::Job *ExchangeGlobals::createRemoveJob( const KURL &uploadurl,
const KPIM::GroupwareUploadItem::List &deletedItems )
{
- QStringList urls;
+ TQStringList urls;
KPIM::GroupwareUploadItem::List::const_iterator it;
kdDebug() << " ExchangeGlobals::createRemoveJob: , URL="<<uploadurl.url()<<endl;
for ( it = deletedItems.begin(); it != deletedItems.end(); ++it ) {
@@ -192,7 +192,7 @@ KIO::Job *ExchangeGlobals::createRemoveJob( const KURL &uploadurl,
// it calls getContentType of the ExchangeGlobals class, instead of the one
// from OGoGlobals!!!!
bool ExchangeGlobals::interpretListItemsJob( KPIM::GroupwareDataAdaptor *adaptor,
- KIO::Job *job, const QString &/*jobData*/ )
+ KIO::Job *job, const TQString &/*jobData*/ )
{
kdDebug()<<"ExchangeGlobals::interpretListItemsJob"<<endl;
KIO::DavJob *davjob = dynamic_cast<KIO::DavJob *>(job);
@@ -200,28 +200,28 @@ kdDebug()<<"ExchangeGlobals::interpretListItemsJob"<<endl;
if ( !davjob ) {
return false;
}
- QDomDocument doc = davjob->response();
+ TQDomDocument doc = davjob->response();
kdDebug(7000) << " Doc: " << doc.toString() << endl;
kdDebug(7000) << " IdMapper: " << adaptor->idMapper()->asString() << endl;
- QDomElement docElem = doc.documentElement();
- QDomNode n = docElem.firstChild();
+ TQDomElement docElem = doc.documentElement();
+ TQDomNode n = docElem.firstChild();
while( !n.isNull() ) {
- QDomElement e = n.toElement(); // try to convert the node to an element.
+ TQDomElement e = n.toElement(); // try to convert the node to an element.
n = n.nextSibling();
if ( e.isNull() )
continue;
const KURL &entry( e.namedItem("href").toElement().text() );
- QDomElement propstat = e.namedItem("propstat").toElement();
+ TQDomElement propstat = e.namedItem("propstat").toElement();
if ( propstat.isNull() )
continue;
- QDomElement prop = propstat.namedItem( "prop" ).toElement();
+ TQDomElement prop = propstat.namedItem( "prop" ).toElement();
if ( prop.isNull() )
continue;
- QDomElement elem = prop.namedItem("getetag").toElement();
- const QString &newFingerprint = elem.text();
+ TQDomElement elem = prop.namedItem("getetag").toElement();
+ const TQString &newFingerprint = elem.text();
if ( elem.isNull() || newFingerprint.isEmpty() )
continue;
@@ -237,7 +237,7 @@ kdDebug()<<"ExchangeGlobals::interpretListItemsJob"<<endl;
bool ExchangeGlobals::interpretCalendarDownloadItemsJob( KCal::CalendarAdaptor *adaptor,
- KIO::Job *job, const QString &/*jobData*/ )
+ KIO::Job *job, const TQString &/*jobData*/ )
{
KIO::DavJob *davjob = dynamic_cast<KIO::DavJob*>(job);
if ( !davjob || !adaptor ) return false;
@@ -251,7 +251,7 @@ kdDebug() << "ExchangeGlobals::interpretCalendarDownloadItemsJob(): QDomDocument
bool res = false;
KCal::Incidence::List::Iterator it = incidences.begin();
for ( ; it != incidences.end(); ++it ) {
- QString fpr = (*it)->customProperty( "KDEPIM-Exchange-Resource", "fingerprint" );
+ TQString fpr = (*it)->customProperty( "KDEPIM-Exchange-Resource", "fingerprint" );
KURL href( (*it)->customProperty( "KDEPIM-Exchange-Resource", "href" ) );
adaptor->calendarItemDownloaded( (*it), (*it)->uid(), href, fpr, href.prettyURL() );
res = true;
@@ -261,7 +261,7 @@ kdDebug() << "ExchangeGlobals::interpretCalendarDownloadItemsJob(): QDomDocument
bool ExchangeGlobals::interpretAddressBookDownloadItemsJob(
- KABC::AddressBookAdaptor *adaptor, KIO::Job *job, const QString &/*jobData*/ )
+ KABC::AddressBookAdaptor *adaptor, KIO::Job *job, const TQString &/*jobData*/ )
{
KIO::DavJob *davjob = dynamic_cast<KIO::DavJob*>(job);
if ( !davjob || !adaptor ) return false;
@@ -274,7 +274,7 @@ kdDebug() << "ExchangeGlobals::interpretAddressBookDownloadItemsJob(): QDomDocum
bool res = false;
KABC::Addressee::List::Iterator it = addressees.begin();
for ( ; it != addressees.end(); ++it ) {
- QString fpr = (*it).custom( "KDEPIM-Exchange-Resource", "fingerprint" );
+ TQString fpr = (*it).custom( "KDEPIM-Exchange-Resource", "fingerprint" );
KURL href( (*it).custom( "KDEPIM-Exchange-Resource", "href" ) );
adaptor->addressbookItemDownloaded( (*it), (*it).uid(), href, fpr, href.prettyURL() );
res = true;