diff options
Diffstat (limited to 'kresources/groupdav')
-rw-r--r-- | kresources/groupdav/groupdavaddressbookadaptor.h | 16 | ||||
-rw-r--r-- | kresources/groupdav/groupdavcalendaradaptor.h | 16 | ||||
-rw-r--r-- | kresources/groupdav/groupdavglobals.cpp | 62 | ||||
-rw-r--r-- | kresources/groupdav/groupdavglobals.h | 14 | ||||
-rw-r--r-- | kresources/groupdav/kabc_resourcegroupdav.h | 2 |
5 files changed, 55 insertions, 55 deletions
diff --git a/kresources/groupdav/groupdavaddressbookadaptor.h b/kresources/groupdav/groupdavaddressbookadaptor.h index 377b71622..f66d7b863 100644 --- a/kresources/groupdav/groupdavaddressbookadaptor.h +++ b/kresources/groupdav/groupdavaddressbookadaptor.h @@ -29,7 +29,7 @@ #include <kabc/addressee.h> #include <kurl.h> -#include <qdom.h> +#include <tqdom.h> namespace KABC { @@ -40,9 +40,9 @@ class GroupDavAddressBookAdaptor : public DavAddressBookAdaptor void customAdaptDownloadUrl( KURL &url ); void customAdaptUploadUrl( KURL &url ); - QString mimeType() const { return "text/x-vcard"; } - QCString identifier() const { return "KABCResourceGroupDAV"; } - QString defaultNewItemName( KPIM::GroupwareUploadItem */*item*/ ) { return "new.vcf"; } + TQString mimeType() const { return "text/x-vcard"; } + TQCString identifier() const { return "KABCResourceGroupDAV"; } + TQString defaultNewItemName( KPIM::GroupwareUploadItem */*item*/ ) { return "new.vcf"; } long flags() const { return 0; } @@ -58,16 +58,16 @@ class GroupDavAddressBookAdaptor : public DavAddressBookAdaptor // Interpreting Jobs - bool interpretListItemsJob( KIO::Job *job, const QString &/*jobData*/ ) + bool interpretListItemsJob( KIO::Job *job, const TQString &/*jobData*/ ) { return GroupDavGlobals::interpretListItemsJob( this, job ); } - bool interpretDownloadItemsJob( KIO::Job *job, const QString &jobData ) + bool interpretDownloadItemsJob( KIO::Job *job, const TQString &jobData ) { return GroupDavGlobals::interpretAddressBookDownloadItemsJob( this, job, jobData ); } - bool getFolderHasSubs( const QDomNode &folderNode ) + bool getFolderHasSubs( const TQDomNode &folderNode ) { return GroupDavGlobals::getFolderHasSubs( folderNode ); } - KPIM::FolderLister::ContentType getContentType( const QDomNode &folderNode ) + KPIM::FolderLister::ContentType getContentType( const TQDomNode &folderNode ) { return GroupDavGlobals::getContentType( folderNode ); } }; diff --git a/kresources/groupdav/groupdavcalendaradaptor.h b/kresources/groupdav/groupdavcalendaradaptor.h index c4434d064..64e8e86ed 100644 --- a/kresources/groupdav/groupdavcalendaradaptor.h +++ b/kresources/groupdav/groupdavcalendaradaptor.h @@ -41,17 +41,17 @@ class GroupDavCalendarAdaptor : public DavCalendarAdaptor public: GroupDavCalendarAdaptor(); - QValueList<KPIM::FolderLister::ContentType> supportedTypes() + TQValueList<KPIM::FolderLister::ContentType> supportedTypes() { - QValueList<KPIM::FolderLister::ContentType> types; + TQValueList<KPIM::FolderLister::ContentType> types; types << KPIM::FolderLister::Event; types << KPIM::FolderLister::Todo; return types; } void customAdaptDownloadUrl( KURL &url ); void customAdaptUploadUrl( KURL &url ); - QCString identifier() const { return "KCalResourceGroupDAV"; } - QString defaultNewItemName( KPIM::GroupwareUploadItem */*item*/ ) { return "new.ics"; } + TQCString identifier() const { return "KCalResourceGroupDAV"; } + TQString defaultNewItemName( KPIM::GroupwareUploadItem */*item*/ ) { return "new.ics"; } long flags() const { return 0; } @@ -67,15 +67,15 @@ class GroupDavCalendarAdaptor : public DavCalendarAdaptor // Interpreting Jobs - bool interpretListItemsJob( KIO::Job *job, const QString &/*jobData*/ ) + bool interpretListItemsJob( KIO::Job *job, const TQString &/*jobData*/ ) { return GroupDavGlobals::interpretListItemsJob( this, job ); } - bool interpretDownloadItemsJob( KIO::Job *job, const QString &jobData ) + bool interpretDownloadItemsJob( KIO::Job *job, const TQString &jobData ) { return GroupDavGlobals::interpretCalendarDownloadItemsJob( this, job, jobData ); } - bool getFolderHasSubs( const QDomNode &folderNode ) + bool getFolderHasSubs( const TQDomNode &folderNode ) { return GroupDavGlobals::getFolderHasSubs( folderNode ); } - KPIM::FolderLister::ContentType getContentType( const QDomNode &folderNode ) + KPIM::FolderLister::ContentType getContentType( const TQDomNode &folderNode ) { return GroupDavGlobals::getContentType( folderNode ); } }; } diff --git a/kresources/groupdav/groupdavglobals.cpp b/kresources/groupdav/groupdavglobals.cpp index f94180195..17b6f443a 100644 --- a/kresources/groupdav/groupdavglobals.cpp +++ b/kresources/groupdav/groupdavglobals.cpp @@ -37,31 +37,31 @@ #include <kio/davjob.h> #include <kio/job.h> -QString GroupDavGlobals::extractFingerprint( KIO::Job *job, const QString &/*jobData*/ ) +TQString GroupDavGlobals::extractFingerprint( KIO::Job *job, const TQString &/*jobData*/ ) { - const QString& headers = job->queryMetaData( "HTTP-Headers" ); + const TQString& headers = job->queryMetaData( "HTTP-Headers" ); return WebdavHandler::getEtagFromHeaders( headers ); } -KPIM::FolderLister::ContentType GroupDavGlobals::getContentType( const QDomElement &prop ) +KPIM::FolderLister::ContentType GroupDavGlobals::getContentType( const TQDomElement &prop ) { - QDomElement ctype = prop.namedItem("getcontenttype").toElement(); + TQDomElement ctype = prop.namedItem("getcontenttype").toElement(); if ( ctype.isNull() ) return KPIM::FolderLister::Unknown; - const QString &type = ctype.text(); + const TQString &type = ctype.text(); kdDebug()<<"Found content type: "<<type<<endl; /// TODO: Not yet implemented in GroupDav! return KPIM::FolderLister::Unknown; } -KPIM::FolderLister::ContentType GroupDavGlobals::getContentType( const QDomNode &folderNode ) +KPIM::FolderLister::ContentType GroupDavGlobals::getContentType( const TQDomNode &folderNode ) { - QDomNode n4; + TQDomNode n4; kdDebug()<<"GroupDavGlobals::getContentType(...)"<<endl; int type = KPIM::FolderLister::Unknown; for( n4 = folderNode.firstChild(); !n4.isNull(); n4 = n4.nextSibling() ) { - QDomElement e = n4.toElement(); + TQDomElement e = n4.toElement(); if ( e.tagName() == "resourcetype" ) { if ( !e.namedItem( "vevent-collection" ).isNull() ) @@ -80,11 +80,11 @@ kdDebug()<<"GroupDavGlobals::getContentType(...)"<<endl; return (KPIM::FolderLister::ContentType)type; } -bool GroupDavGlobals::getFolderHasSubs( const QDomNode &folderNode ) +bool GroupDavGlobals::getFolderHasSubs( const TQDomNode &folderNode ) { // a folder is identified by the collection item in the resourcetype: // <a:resourcetype xmlns:a="DAV:"><a:collection xmlns:a="DAV:"/>...</a:resourcetype> - QDomElement e = folderNode.namedItem("resourcetype").toElement(); + TQDomElement e = folderNode.namedItem("resourcetype").toElement(); if ( !e.namedItem( "collection" ).isNull() ) return true; else return false; @@ -95,9 +95,9 @@ bool GroupDavGlobals::getFolderHasSubs( const QDomNode &folderNode ) KIO::Job *GroupDavGlobals::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:resourcetype" ); // WebdavHandler::addElement( doc, prop, "d:hassubs" ); @@ -109,9 +109,9 @@ KIO::Job *GroupDavGlobals::createListFoldersJob( const KURL &url ) KIO::TransferJob *GroupDavGlobals::createListItemsJob( const KURL &url ) { - QDomDocument doc; - QDomElement root = WebdavHandler::addDavElement( doc, doc, "propfind" ); - QDomElement prop = WebdavHandler::addDavElement( doc, root, "prop" ); + TQDomDocument doc; + TQDomElement root = WebdavHandler::addDavElement( doc, doc, "propfind" ); + TQDomElement prop = WebdavHandler::addDavElement( doc, root, "prop" ); WebdavHandler::addDavElement( doc, prop, "getetag" ); // WebdavHandler::addDavElement( doc, prop, "getcontenttype" ); kdDebug(5800) << "props = "<< doc.toString() << endl; @@ -130,7 +130,7 @@ KIO::TransferJob *GroupDavGlobals::createDownloadJob( KPIM::GroupwareDataAdaptor kdDebug()<<"GroupDavGlobals::createDownloadJob, url="<<url.url()<<endl; KIO::TransferJob *job = KIO::get( url, false, false ); if ( adaptor ) { - QString mt = adaptor->mimeType(); + TQString mt = adaptor->mimeType(); job->addMetaData( "accept", mt ); } job->addMetaData( "PropagateHttpHeader", "true" ); @@ -158,7 +158,7 @@ KIO::Job *GroupDavGlobals::createRemoveJob( KPIM::GroupwareDataAdaptor *adaptor, } return delJob; -/* QStringList urls; +/* TQStringList urls; KPIM::GroupwareUploadItem::List::const_iterator it; kdDebug(5800) << " GroupDavGlobals::createRemoveJob, BaseURL="<<uploadurl.url()<<endl; for ( it = deletedItems.constBegin(); it != deletedItems.constEnd(); ++it ) { @@ -190,28 +190,28 @@ bool GroupDavGlobals::interpretListItemsJob( KPIM::GroupwareDataAdaptor *adaptor 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; @@ -225,12 +225,12 @@ bool GroupDavGlobals::interpretListItemsJob( KPIM::GroupwareDataAdaptor *adaptor bool GroupDavGlobals::interpretCalendarDownloadItemsJob( KCal::CalendarAdaptor *adaptor, - KIO::Job *job, const QString &jobData ) + KIO::Job *job, const TQString &jobData ) { kdDebug(5800) << "GroupDavGlobals::interpretCalendarDownloadItemsJob, iCalendar=" << endl; kdDebug(5800) << jobData << endl; if ( !adaptor || !job ) return false; - KCal::CalendarLocal calendar( QString::fromLatin1("UTC") ); + KCal::CalendarLocal calendar( TQString::fromLatin1("UTC") ); KCal::ICalFormat ical; calendar.setTimeZoneId( adaptor->resource()->timeZoneId() ); KCal::Incidence::List incidences; @@ -247,7 +247,7 @@ kdDebug(5800) << jobData << endl; KIO::SimpleJob *sjob = dynamic_cast<KIO::SimpleJob *>(job); KURL remoteId; if ( sjob ) remoteId = sjob->url(); - QString fingerprint = extractFingerprint( job, jobData ); + TQString fingerprint = extractFingerprint( job, jobData ); adaptor->calendarItemDownloaded( inc, inc->uid(), remoteId, fingerprint, remoteId.prettyURL() ); return true; @@ -259,7 +259,7 @@ kdDebug(5800) << jobData << endl; bool GroupDavGlobals::interpretAddressBookDownloadItemsJob( - KABC::AddressBookAdaptor *adaptor, KIO::Job *job, const QString &jobData ) + KABC::AddressBookAdaptor *adaptor, KIO::Job *job, const TQString &jobData ) { kdDebug(5800) << "GroupDavGlobals::interpretAddressBookDownloadItemsJob, vCard=" << endl; kdDebug(5800) << jobData << endl; @@ -278,7 +278,7 @@ kdDebug(5800) << jobData << endl; KIO::SimpleJob *sjob = dynamic_cast<KIO::SimpleJob*>(job); KURL remoteId; if ( sjob ) remoteId = sjob->url(); - QString fingerprint = extractFingerprint( job, jobData ); + TQString fingerprint = extractFingerprint( job, jobData ); adaptor->addressbookItemDownloaded( a, a.uid(), remoteId, fingerprint, remoteId.prettyURL() ); return true; diff --git a/kresources/groupdav/groupdavglobals.h b/kresources/groupdav/groupdavglobals.h index dc379f94e..7a89f1def 100644 --- a/kresources/groupdav/groupdavglobals.h +++ b/kresources/groupdav/groupdavglobals.h @@ -26,7 +26,7 @@ #include <groupwareuploadjob.h> #include <folderlister.h> #include <kurl.h> -#include <qdom.h> +#include <tqdom.h> namespace KPIM { class GroupwareDataAdaptor; @@ -47,10 +47,10 @@ class GroupDavGlobals { public: GroupDavGlobals() {} - static QString extractFingerprint( KIO::Job *job, const QString &/*jobData*/ ); - static KPIM::FolderLister::ContentType getContentType( const QDomElement &prop ); - static KPIM::FolderLister::ContentType getContentType( const QDomNode &folderNode ); - static bool getFolderHasSubs( const QDomNode &folderNode ); + static TQString extractFingerprint( KIO::Job *job, const TQString &/*jobData*/ ); + static KPIM::FolderLister::ContentType getContentType( const TQDomElement &prop ); + static KPIM::FolderLister::ContentType getContentType( const TQDomNode &folderNode ); + static bool getFolderHasSubs( const TQDomNode &folderNode ); static KIO::Job *createListFoldersJob( const KURL &url ); @@ -64,9 +64,9 @@ class GroupDavGlobals static bool interpretListItemsJob( KPIM::GroupwareDataAdaptor *adaptor, KIO::Job *job ); static bool interpretCalendarDownloadItemsJob( KCal::CalendarAdaptor *adaptor, - KIO::Job *job, const QString &jobData ); + KIO::Job *job, const TQString &jobData ); static bool interpretAddressBookDownloadItemsJob( KABC::AddressBookAdaptor *adaptor, - KIO::Job *job, const QString &jobData ); + KIO::Job *job, const TQString &jobData ); }; diff --git a/kresources/groupdav/kabc_resourcegroupdav.h b/kresources/groupdav/kabc_resourcegroupdav.h index 807e0ec3a..e6765758c 100644 --- a/kresources/groupdav/kabc_resourcegroupdav.h +++ b/kresources/groupdav/kabc_resourcegroupdav.h @@ -34,7 +34,7 @@ class KDE_EXPORT ResourceGroupDav : public ResourceGroupwareBase public: ResourceGroupDav( const KConfig * ); // ResourceGroupDav( const KURL &url, -// const QString &user, const QString &password ); +// const TQString &user, const TQString &password ); protected: void init(); }; |