summaryrefslogtreecommitdiffstats
path: root/kioslaves/opengroupware
diff options
context:
space:
mode:
Diffstat (limited to 'kioslaves/opengroupware')
-rw-r--r--kioslaves/opengroupware/opengroupware.cpp46
-rw-r--r--kioslaves/opengroupware/opengroupware.h12
-rw-r--r--kioslaves/opengroupware/webdavhandler.cpp32
-rw-r--r--kioslaves/opengroupware/webdavhandler.h24
4 files changed, 57 insertions, 57 deletions
diff --git a/kioslaves/opengroupware/opengroupware.cpp b/kioslaves/opengroupware/opengroupware.cpp
index 76abeb10..55525aff 100644
--- a/kioslaves/opengroupware/opengroupware.cpp
+++ b/kioslaves/opengroupware/opengroupware.cpp
@@ -84,8 +84,8 @@ int kdemain( int argc, char **argv )
return 0;
}
-OpenGroupware::OpenGroupware( const QCString &protocol, const QCString &pool,
- const QCString &app )
+OpenGroupware::OpenGroupware( const TQCString &protocol, const TQCString &pool,
+ const TQCString &app )
: SlaveBase( protocol, pool, app )
{
}
@@ -103,7 +103,7 @@ void OpenGroupware::get( const KURL &url )
mimeType( "text/plain" );
- QString path = url.path();
+ TQString path = url.path();
debugMessage( "Path: " + path );
if ( path.startsWith( "/freebusy/" ) ) {
@@ -113,7 +113,7 @@ void OpenGroupware::get( const KURL &url )
} else if ( path.startsWith( "/addressbook/" ) ) {
getAddressbook( url );
} else {
- QString error = i18n("Unknown path. Known paths are '/freebusy/', "
+ TQString error = i18n("Unknown path. Known paths are '/freebusy/', "
"'/calendar/' and '/addressbook/'.");
errorMessage( error );
}
@@ -123,16 +123,16 @@ void OpenGroupware::get( const KURL &url )
void OpenGroupware::getFreeBusy( const KURL &url )
{
- QString file = url.filename();
+ TQString file = url.filename();
if ( file.right( 4 ) != ".ifb" ) {
- QString error = i18n("Illegal filename. File has to have '.ifb' suffix.");
+ TQString error = i18n("Illegal filename. File has to have '.ifb' suffix.");
errorMessage( error );
} else {
- QString email = file.left( file.length() - 4 );
+ TQString email = file.left( file.length() - 4 );
debugMessage( "Email: " + email );
- QString user = url.user();
- QString pass = url.pass();
+ TQString user = url.user();
+ TQString pass = url.pass();
debugMessage( "URL: " );
debugMessage( "User: " + user );
@@ -146,8 +146,8 @@ void OpenGroupware::getFreeBusy( const KURL &url )
// FIXME get from server
// FIXME: Read range from configuration or URL parameters.
- QDate start = QDate::currentDate().addDays( -3 );
- QDate end = QDate::currentDate().addDays( 60 );
+ TQDate start = TQDate::currentDate().addDays( -3 );
+ TQDate end = TQDate::currentDate().addDays( 60 );
fb->setDtStart( start );
fb->setDtEnd( end );
@@ -157,15 +157,15 @@ void OpenGroupware::getFreeBusy( const KURL &url )
}
#if 0
- QDateTime s = QDateTime( QDate( 2004, 9, 27 ), QTime( 10, 0 ) );
- QDateTime e = QDateTime( QDate( 2004, 9, 27 ), QTime( 11, 0 ) );
+ TQDateTime s = TQDateTime( TQDate( 2004, 9, 27 ), TQTime( 10, 0 ) );
+ TQDateTime e = TQDateTime( TQDate( 2004, 9, 27 ), TQTime( 11, 0 ) );
fb->addPeriod( s, e );
#endif
KCal::ICalFormat format;
- QString ical = format.createScheduleMessage( fb, KCal::Scheduler::Publish );
+ TQString ical = format.createScheduleMessage( fb, KCal::Scheduler::Publish );
data( ical.utf8() );
@@ -178,10 +178,10 @@ void OpenGroupware::getCalendar( const KURL &_url )
{
KURL url( _url ); // we'll be changing it
- QString user = url.user();
- QString pass = url.pass();
+ TQString user = url.user();
+ TQString pass = url.pass();
- QDomDocument props = WebdavHandler::createAllPropsRequest();
+ TQDomDocument props = WebdavHandler::createAllPropsRequest();
debugMessage( "URL: " );
debugMessage( "User: " + user );
@@ -194,8 +194,8 @@ void OpenGroupware::getCalendar( const KURL &_url )
// FIXME do progress handling
mListEventsJob = KIO::davPropFind( url, props, "0", false );
- connect( mListEventsJob, SIGNAL( result( KIO::Job * ) ),
- SLOT( slotGetCalendarListingResult( KIO::Job * ) ) );
+ connect( mListEventsJob, TQT_SIGNAL( result( KIO::Job * ) ),
+ TQT_SLOT( slotGetCalendarListingResult( KIO::Job * ) ) );
}
void OpenGroupware::getAddressbook( const KURL &url )
@@ -203,12 +203,12 @@ void OpenGroupware::getAddressbook( const KURL &url )
}
-void OpenGroupware::errorMessage( const QString &msg )
+void OpenGroupware::errorMessage( const TQString &msg )
{
error( KIO::ERR_SLAVE_DEFINED, msg );
}
-void OpenGroupware::debugMessage( const QString &msg )
+void OpenGroupware::debugMessage( const TQString &msg )
{
#if 0
data( ( msg + "\n" ).utf8() );
@@ -228,13 +228,13 @@ void OpenGroupware::slotGetCalendarListingResult( KIO::Job *job )
} else {
kdDebug() << "ResourceSlox::slotResult() success" << endl;
- QDomDocument doc = mListEventsJob->response();
+ TQDomDocument doc = mListEventsJob->response();
}
KCal::ICalFormat format;
KCal::CalendarLocal calendar;
- QString ical = format.toString( &calendar );
+ TQString ical = format.toString( &calendar );
data( ical.utf8() );
diff --git a/kioslaves/opengroupware/opengroupware.h b/kioslaves/opengroupware/opengroupware.h
index 04eadf45..1a7b143e 100644
--- a/kioslaves/opengroupware/opengroupware.h
+++ b/kioslaves/opengroupware/opengroupware.h
@@ -22,7 +22,7 @@
#include <kio/slavebase.h>
-#include <qobject.h>
+#include <tqobject.h>
namespace KIO {
class Job;
@@ -30,18 +30,18 @@ namespace KIO {
}
-class OpenGroupware : public QObject, public KIO::SlaveBase
+class OpenGroupware : public TQObject, public KIO::SlaveBase
{
Q_OBJECT
public:
- OpenGroupware( const QCString &protocol, const QCString &pool,
- const QCString &app );
+ OpenGroupware( const TQCString &protocol, const TQCString &pool,
+ const TQCString &app );
void get( const KURL &url );
protected:
- void debugMessage( const QString & );
- void errorMessage( const QString & );
+ void debugMessage( const TQString & );
+ void errorMessage( const TQString & );
void getFreeBusy( const KURL &url );
void getCalendar( const KURL &url );
diff --git a/kioslaves/opengroupware/webdavhandler.cpp b/kioslaves/opengroupware/webdavhandler.cpp
index 68330200..1177624c 100644
--- a/kioslaves/opengroupware/webdavhandler.cpp
+++ b/kioslaves/opengroupware/webdavhandler.cpp
@@ -29,7 +29,7 @@
#include <kdebug.h>
#include <kconfig.h>
-#include <qfile.h>
+#include <tqfile.h>
WebdavHandler::WebdavHandler()
@@ -37,41 +37,41 @@ WebdavHandler::WebdavHandler()
}
-QDomElement WebdavHandler::addElement( QDomDocument &doc, QDomNode &node,
- const QString &tag )
+TQDomElement WebdavHandler::addElement( TQDomDocument &doc, TQDomNode &node,
+ const TQString &tag )
{
- QDomElement el = doc.createElement( tag );
+ TQDomElement el = doc.createElement( tag );
node.appendChild( el );
return el;
}
-QDomElement WebdavHandler::addDavElement( QDomDocument &doc, QDomNode &node,
- const QString &tag )
+TQDomElement WebdavHandler::addDavElement( TQDomDocument &doc, TQDomNode &node,
+ const TQString &tag )
{
- QDomElement el = doc.createElementNS( "DAV", tag );
+ TQDomElement el = doc.createElementNS( "DAV", tag );
node.appendChild( el );
return el;
}
-QDomElement WebdavHandler::addSloxElement( QDomDocument &doc, QDomNode &node,
- const QString &tag,
- const QString &text )
+TQDomElement WebdavHandler::addSloxElement( TQDomDocument &doc, TQDomNode &node,
+ const TQString &tag,
+ const TQString &text )
{
- QDomElement el = doc.createElementNS( "SLOX", tag );
+ TQDomElement el = doc.createElementNS( "SLOX", tag );
if ( !text.isEmpty() ) {
- QDomText textnode = doc.createTextNode( text );
+ TQDomText textnode = doc.createTextNode( text );
el.appendChild( textnode );
}
node.appendChild( el );
return el;
}
-QDomDocument WebdavHandler::createAllPropsRequest()
+TQDomDocument WebdavHandler::createAllPropsRequest()
{
- QDomDocument doc;
+ TQDomDocument doc;
- QDomElement root = WebdavHandler::addDavElement( doc, doc, "propfind" );
- QDomElement prop = WebdavHandler::addDavElement( doc, root, "prop" );
+ TQDomElement root = WebdavHandler::addDavElement( doc, doc, "propfind" );
+ TQDomElement prop = WebdavHandler::addDavElement( doc, root, "prop" );
WebdavHandler::addDavElement( doc, prop, "getcontentlength");
WebdavHandler::addDavElement( doc, prop, "getlastmodified" );
WebdavHandler::addDavElement( doc, prop, "displayname" );
diff --git a/kioslaves/opengroupware/webdavhandler.h b/kioslaves/opengroupware/webdavhandler.h
index 3c132081..367ff3aa 100644
--- a/kioslaves/opengroupware/webdavhandler.h
+++ b/kioslaves/opengroupware/webdavhandler.h
@@ -20,10 +20,10 @@
#ifndef WEBDAVHANDLER_H
#define WEBDAVHANDLER_H
-#include <qvaluelist.h>
-#include <qstring.h>
-#include <qdatetime.h>
-#include <qdom.h>
+#include <tqvaluelist.h>
+#include <tqstring.h>
+#include <tqdatetime.h>
+#include <tqdom.h>
class WebdavHandler
{
@@ -31,14 +31,14 @@ class WebdavHandler
WebdavHandler();
- static QDomElement addElement( QDomDocument &, QDomNode &,
- const QString &tag );
- static QDomElement addDavElement( QDomDocument &, QDomNode &,
- const QString &tag );
- static QDomElement addSloxElement( QDomDocument &, QDomNode &,
- const QString &tag,
- const QString &text = QString::null );
- static QDomDocument createAllPropsRequest();
+ static TQDomElement addElement( TQDomDocument &, TQDomNode &,
+ const TQString &tag );
+ static TQDomElement addDavElement( TQDomDocument &, TQDomNode &,
+ const TQString &tag );
+ static TQDomElement addSloxElement( TQDomDocument &, TQDomNode &,
+ const TQString &tag,
+ const TQString &text = TQString::null );
+ static TQDomDocument createAllPropsRequest();
};
#endif