summaryrefslogtreecommitdiffstats
path: root/kode/kwsdl/kung/dispatcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kode/kwsdl/kung/dispatcher.cpp')
-rw-r--r--kode/kwsdl/kung/dispatcher.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kode/kwsdl/kung/dispatcher.cpp b/kode/kwsdl/kung/dispatcher.cpp
index 79f6bd949..d337d19f3 100644
--- a/kode/kwsdl/kung/dispatcher.cpp
+++ b/kode/kwsdl/kung/dispatcher.cpp
@@ -19,9 +19,9 @@
Boston, MA 02110-1301, USA.
*/
-#include <qapplication.h>
-#include <qtimer.h>
-#include <qwidget.h>
+#include <tqapplication.h>
+#include <tqtimer.h>
+#include <tqwidget.h>
#include <kinputdialog.h>
#include <klocale.h>
@@ -37,7 +37,7 @@
#include "dispatcher.h"
Dispatcher::Dispatcher()
- : QObject( 0, "Dispatcher" ),
+ : TQObject( 0, "Dispatcher" ),
mConversationManager( 0 )
{
}
@@ -57,10 +57,10 @@ void Dispatcher::setWSDL( const KWSDL::WSDL &wsdl )
mConversationManager = new GeneralConversationManager( mWSDL );
mTransport = new Transport( mWSDL.service().ports().first().mLocation );
- connect( mTransport, SIGNAL( result( const QString& ) ),
- this, SLOT( result( const QString& ) ) );
- connect( mTransport, SIGNAL( error( const QString& ) ),
- this, SLOT( error( const QString& ) ) );
+ connect( mTransport, TQT_SIGNAL( result( const TQString& ) ),
+ this, TQT_SLOT( result( const TQString& ) ) );
+ connect( mTransport, TQT_SIGNAL( error( const TQString& ) ),
+ this, TQT_SLOT( error( const TQString& ) ) );
}
void Dispatcher::run()
@@ -75,9 +75,9 @@ void Dispatcher::nextMessage()
return;
}
- QStringList items = mConversationManager->nextActions( mLastMessage, QString() );
+ TQStringList items = mConversationManager->nextActions( mLastMessage, TQString() );
- mCurrentMessage = QString();
+ mCurrentMessage = TQString();
if ( items.count() > 1 ) {
mCurrentMessage = KInputDialog::getItem( i18n( "Select a functionality of the service:" ), i18n( "Functions" ),
items );
@@ -91,25 +91,25 @@ void Dispatcher::nextMessage()
KWSDL::Message message = mWSDL.findMessage( mCurrentMessage );
InputField *field = new PageInputField( message.name(), message );
- QWidget *page = field->createWidget( 0 );
+ TQWidget *page = field->createWidget( 0 );
InputDialog dlg( page, 0 );
if ( dlg.exec() ) {
- QDomDocument doc( "kwsdl" );
+ TQDomDocument doc( "kwsdl" );
doc.appendChild( doc.createProcessingInstruction( "xml", "version=\"1.0\" encoding=\"UTF-8\"" ) );
- QDomElement env = doc.createElement( "SOAP-ENV:Envelope" );
+ TQDomElement env = doc.createElement( "SOAP-ENV:Envelope" );
env.setAttribute( "xmlns:SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/" );
env.setAttribute( "xmlns:xsi", "http://www.w3.org/1999/XMLSchema-instance" );
env.setAttribute( "xmlns:xsd", "http://www.w3.org/1999/XMLSchema" );
doc.appendChild( env );
- QDomElement body = doc.createElement( "SOAP-ENV:Body" );
+ TQDomElement body = doc.createElement( "SOAP-ENV:Body" );
env.appendChild( body );
field->xmlData( doc, body );
- QDomElement method = body.firstChild().toElement();
- QString nameSpace = mWSDL.findBindingOperation( "", message.name() ).input().nameSpace();
+ TQDomElement method = body.firstChild().toElement();
+ TQString nameSpace = mWSDL.findBindingOperation( "", message.name() ).input().nameSpace();
method.setAttribute( "xmlns:ns1", "urn:GoogleSearch" );
method.setAttribute( "SOAP-ENV:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/" );
body.appendChild( method );
@@ -122,32 +122,32 @@ void Dispatcher::nextMessage()
qApp->quit();
}
-void Dispatcher::result( const QString &xml )
+void Dispatcher::result( const TQString &xml )
{
qDebug( "Got data %s", xml.latin1() );
KWSDL::Message message = mWSDL.findOutputMessage( mCurrentMessage );
InputField *field = new PageInputField( message.name(), message );
- QDomDocument doc;
+ TQDomDocument doc;
doc.setContent( xml, true );
field->setXMLData( doc.documentElement().firstChild().firstChild().toElement() );
- QWidget *page = field->createWidget( 0 );
+ TQWidget *page = field->createWidget( 0 );
OutputDialog dlg( page, 0 );
dlg.exec();
mLastMessage = mCurrentMessage;
- QTimer::singleShot( 0, this, SLOT( nextMessage() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( nextMessage() ) );
}
-void Dispatcher::error( const QString &errorMsg )
+void Dispatcher::error( const TQString &errorMsg )
{
KMessageBox::error( 0, errorMsg );
- QTimer::singleShot( 0, this, SLOT( nextMessage() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( nextMessage() ) );
}
#include "dispatcher.moc"