diff options
Diffstat (limited to 'kresources/slox')
-rw-r--r-- | kresources/slox/kabcresourceslox.cpp | 4 | ||||
-rw-r--r-- | kresources/slox/kcalresourceslox.cpp | 14 | ||||
-rw-r--r-- | kresources/slox/sloxbase.h | 2 | ||||
-rw-r--r-- | kresources/slox/webdavhandler.cpp | 8 | ||||
-rw-r--r-- | kresources/slox/webdavhandler.h | 6 |
5 files changed, 17 insertions, 17 deletions
diff --git a/kresources/slox/kabcresourceslox.cpp b/kresources/slox/kabcresourceslox.cpp index f45108b42..6412de4a0 100644 --- a/kresources/slox/kabcresourceslox.cpp +++ b/kresources/slox/kabcresourceslox.cpp @@ -218,7 +218,7 @@ bool ResourceSlox::asyncLoad() TQT_SIGNAL( progressItemCanceled( KPIM::ProgressItem * ) ), TQT_SLOT( cancelDownload() ) ); - mPrefs->setLastSync( TQDateTime::tqcurrentDateTime() ); + mPrefs->setLastSync( TQDateTime::currentDateTime() ); return true; } @@ -255,7 +255,7 @@ void ResourceSlox::slotResult( KIO::Job *job ) Addressee a; a.setUid( uid ); - mWebdavHandler.clearSloxAttributetqStatus(); + mWebdavHandler.clearSloxAttributeStatus(); TQDomNode n; for( n = item.domNode.firstChild(); !n.isNull(); n = n.nextSibling() ) { diff --git a/kresources/slox/kcalresourceslox.cpp b/kresources/slox/kcalresourceslox.cpp index a47c64b6f..39e3be399 100644 --- a/kresources/slox/kcalresourceslox.cpp +++ b/kresources/slox/kcalresourceslox.cpp @@ -237,7 +237,7 @@ void KCalResourceSlox::requestEvents() TQT_SIGNAL( progressItemCanceled( KPIM::ProgressItem * ) ), TQT_SLOT( cancelLoadEvents() ) ); - mPrefs->setLastEventSync( TQDateTime::tqcurrentDateTime() ); + mPrefs->setLastEventSync( TQDateTime::currentDateTime() ); } void KCalResourceSlox::requestTodos() @@ -282,7 +282,7 @@ void KCalResourceSlox::requestTodos() TQT_SIGNAL( progressItemCanceled( KPIM::ProgressItem * ) ), TQT_SLOT( cancelLoadTodos() ) ); - mPrefs->setLastTodoSync( TQDateTime::tqcurrentDateTime() ); + mPrefs->setLastTodoSync( TQDateTime::currentDateTime() ); } void KCalResourceSlox::uploadIncidences() @@ -629,11 +629,11 @@ void KCalResourceSlox::parseMembersAttribute( const TQDomElement &e, TQString status = memberElement.attribute( "confirm" ); if ( !status.isEmpty() ) { if ( status == "accept" ) { - a->setqStatus( Attendee::Accepted ); + a->seStatus( Attendee::Accepted ); } else if ( status == "decline" ) { - a->setqStatus( Attendee::Declined ); + a->seStatus( Attendee::Declined ); } else { - a->setqStatus( Attendee::NeedsAction ); + a->seStatus( Attendee::NeedsAction ); } } } else { @@ -953,7 +953,7 @@ void KCalResourceSlox::slotLoadTodosResult( KIO::Job *job ) todo->setCustomProperty( "SLOX", "ID", item.sloxId ); - mWebdavHandler.clearSloxAttributetqStatus(); + mWebdavHandler.clearSloxAttributeStatus(); TQDomNode n; for( n = item.domNode.firstChild(); !n.isNull(); n = n.nextSibling() ) { @@ -1032,7 +1032,7 @@ void KCalResourceSlox::slotLoadEventsResult( KIO::Job *job ) bool doesRecur = false; - mWebdavHandler.clearSloxAttributetqStatus(); + mWebdavHandler.clearSloxAttributeStatus(); for( n = item.domNode.firstChild(); !n.isNull(); n = n.nextSibling() ) { TQDomElement e = n.toElement(); diff --git a/kresources/slox/sloxbase.h b/kresources/slox/sloxbase.h index 6f291c8f6..8e9309c9d 100644 --- a/kresources/slox/sloxbase.h +++ b/kresources/slox/sloxbase.h @@ -35,7 +35,7 @@ class KDE_EXPORT SloxBase { FolderId, LastSync, ObjectType, - ObjectqStatus, + ObjecStatus, CreatedBy, Categories, IncidenceTitle, // incidence fields diff --git a/kresources/slox/webdavhandler.cpp b/kresources/slox/webdavhandler.cpp index cb8acde02..6b2c733a4 100644 --- a/kresources/slox/webdavhandler.cpp +++ b/kresources/slox/webdavhandler.cpp @@ -129,9 +129,9 @@ TQValueList<SloxItem> WebdavHandler::getSloxItems( SloxBase *res, const TQDomDoc item.status = SloxItem::New; } - TQDomNode sloxtqStatus = prop.namedItem( res->fieldName( SloxBase::ObjectqStatus ) ); - if ( !sloxtqStatus.isNull() ) { - TQDomElement sloxStatusElement = sloxtqStatus.toElement(); + TQDomNode sloxStatus = prop.namedItem( res->fieldName( SloxBase::ObjecStatus ) ); + if ( !sloxStatus.isNull() ) { + TQDomElement sloxStatusElement = sloxStatus.toElement(); if ( sloxStatusElement.text() == "DELETE" ) { item.status = SloxItem::Delete; } else if ( sloxStatusElement.text() == "CREATE" ) { @@ -276,7 +276,7 @@ void WebdavHandler::parseSloxAttribute( const TQDomElement &e ) } } -void WebdavHandler::clearSloxAttributetqStatus() +void WebdavHandler::clearSloxAttributeStatus() { if ( mRes->resType() == "ox" ) mWritable = true; // parseSloxAttribute() won't work for OX diff --git a/kresources/slox/webdavhandler.h b/kresources/slox/webdavhandler.h index 8dedf0a72..136be879e 100644 --- a/kresources/slox/webdavhandler.h +++ b/kresources/slox/webdavhandler.h @@ -37,14 +37,14 @@ class SloxBase; class KDE_EXPORT SloxItem { public: - enum tqStatus { Invalid, Delete, Create, New }; + enum Status { Invalid, Delete, Create, New }; SloxItem(); TQDomNode domNode; TQString sloxId; TQString clientId; - tqStatus status; + Status status; TQString response; TQString responseDescription; }; @@ -78,7 +78,7 @@ class KDE_EXPORT WebdavHandler static TQValueList<SloxItem> getSloxItems( SloxBase *res, const TQDomDocument &doc ); - void clearSloxAttributetqStatus(); + void clearSloxAttributeStatus(); void parseSloxAttribute( const TQDomElement & ); void setSloxAttributes( KCal::Incidence * ); void setSloxAttributes( KABC::Addressee & ); |