summaryrefslogtreecommitdiffstats
path: root/kode/kwsdl/wscl
diff options
context:
space:
mode:
Diffstat (limited to 'kode/kwsdl/wscl')
-rw-r--r--kode/kwsdl/wscl/conversation.cpp28
-rw-r--r--kode/kwsdl/wscl/conversation.h42
-rw-r--r--kode/kwsdl/wscl/documents.cpp8
-rw-r--r--kode/kwsdl/wscl/documents.h18
-rw-r--r--kode/kwsdl/wscl/interaction.cpp4
-rw-r--r--kode/kwsdl/wscl/interaction.h10
-rw-r--r--kode/kwsdl/wscl/parser.cpp38
-rw-r--r--kode/kwsdl/wscl/parser.h2
-rw-r--r--kode/kwsdl/wscl/transition.cpp12
-rw-r--r--kode/kwsdl/wscl/transition.h24
10 files changed, 93 insertions, 93 deletions
diff --git a/kode/kwsdl/wscl/conversation.cpp b/kode/kwsdl/wscl/conversation.cpp
index 692f566fb..97de47d47 100644
--- a/kode/kwsdl/wscl/conversation.cpp
+++ b/kode/kwsdl/wscl/conversation.cpp
@@ -31,72 +31,72 @@ Conversation::~Conversation()
{
}
-void Conversation::setName( const QString &name )
+void Conversation::setName( const TQString &name )
{
mName = name;
}
-QString Conversation::name() const
+TQString Conversation::name() const
{
return mName;
}
-void Conversation::setVersion( const QString &version )
+void Conversation::setVersion( const TQString &version )
{
mVersion = version;
}
-QString Conversation::version() const
+TQString Conversation::version() const
{
return mVersion;
}
-void Conversation::setDescription( const QString &description )
+void Conversation::setDescription( const TQString &description )
{
mDescription = description;
}
-QString Conversation::description() const
+TQString Conversation::description() const
{
return mDescription;
}
-void Conversation::setNameSpace( const QString &nameSpace )
+void Conversation::setNameSpace( const TQString &nameSpace )
{
mNameSpace = nameSpace;
}
-QString Conversation::nameSpace() const
+TQString Conversation::nameSpace() const
{
return mNameSpace;
}
-void Conversation::setSchema( const QString &schema )
+void Conversation::setSchema( const TQString &schema )
{
mSchema = schema;
}
-QString Conversation::schema() const
+TQString Conversation::schema() const
{
return mSchema;
}
-void Conversation::setInitialInteraction( const QString &initialInteraction )
+void Conversation::setInitialInteraction( const TQString &initialInteraction )
{
mInitialInteraction = initialInteraction;
}
-QString Conversation::initialInteraction() const
+TQString Conversation::initialInteraction() const
{
return mInitialInteraction;
}
-void Conversation::setFinalInteraction( const QString &finalInteraction )
+void Conversation::setFinalInteraction( const TQString &finalInteraction )
{
mFinalInteraction = finalInteraction;
}
-QString Conversation::finalInteraction() const
+TQString Conversation::finalInteraction() const
{
return mFinalInteraction;
}
diff --git a/kode/kwsdl/wscl/conversation.h b/kode/kwsdl/wscl/conversation.h
index 757edfab9..448bd3e09 100644
--- a/kode/kwsdl/wscl/conversation.h
+++ b/kode/kwsdl/wscl/conversation.h
@@ -33,26 +33,26 @@ class Conversation
Conversation();
~Conversation();
- void setName( const QString &name );
- QString name() const;
+ void setName( const TQString &name );
+ TQString name() const;
- void setVersion( const QString &version );
- QString version() const;
+ void setVersion( const TQString &version );
+ TQString version() const;
- void setDescription( const QString &description );
- QString description() const;
+ void setDescription( const TQString &description );
+ TQString description() const;
- void setNameSpace( const QString &nameSpace );
- QString nameSpace() const;
+ void setNameSpace( const TQString &nameSpace );
+ TQString nameSpace() const;
- void setSchema( const QString &schema );
- QString schema() const;
+ void setSchema( const TQString &schema );
+ TQString schema() const;
- void setInitialInteraction( const QString &initialInteraction );
- QString initialInteraction() const;
+ void setInitialInteraction( const TQString &initialInteraction );
+ TQString initialInteraction() const;
- void setFinalInteraction( const QString &finalInteraction );
- QString finalInteraction() const;
+ void setFinalInteraction( const TQString &finalInteraction );
+ TQString finalInteraction() const;
void setInteractions( const Interaction::List &interactions );
Interaction::List interactions() const;
@@ -61,13 +61,13 @@ class Conversation
Transition::List transitions() const;
private:
- QString mName;
- QString mVersion;
- QString mDescription;
- QString mNameSpace;
- QString mSchema;
- QString mInitialInteraction;
- QString mFinalInteraction;
+ TQString mName;
+ TQString mVersion;
+ TQString mDescription;
+ TQString mNameSpace;
+ TQString mSchema;
+ TQString mInitialInteraction;
+ TQString mFinalInteraction;
Interaction::List mInteractions;
Transition::List mTransitions;
diff --git a/kode/kwsdl/wscl/documents.cpp b/kode/kwsdl/wscl/documents.cpp
index 92b7928e4..d020e63be 100644
--- a/kode/kwsdl/wscl/documents.cpp
+++ b/kode/kwsdl/wscl/documents.cpp
@@ -23,22 +23,22 @@
using namespace WSCL;
-void XMLDocument::setId( const QString &id )
+void XMLDocument::setId( const TQString &id )
{
mId = id;
}
-QString XMLDocument::id() const
+TQString XMLDocument::id() const
{
return mId;
}
-void XMLDocument::setSchema( const QString &schema )
+void XMLDocument::setSchema( const TQString &schema )
{
mSchema = schema;
}
-QString XMLDocument::schema() const
+TQString XMLDocument::schema() const
{
return mSchema;
}
diff --git a/kode/kwsdl/wscl/documents.h b/kode/kwsdl/wscl/documents.h
index 2bba60ad1..638aaa2d7 100644
--- a/kode/kwsdl/wscl/documents.h
+++ b/kode/kwsdl/wscl/documents.h
@@ -22,25 +22,25 @@
#ifndef WSCL_DOCUMENTS_H
#define WSCL_DOCUMENTS_H
-#include <qstring.h>
-#include <qvaluelist.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
namespace WSCL {
class XMLDocument
{
public:
- typedef QValueList<XMLDocument> List;
+ typedef TQValueList<XMLDocument> List;
- void setId( const QString &id );
- QString id() const;
+ void setId( const TQString &id );
+ TQString id() const;
- void setSchema( const QString &schema );
- QString schema() const;
+ void setSchema( const TQString &schema );
+ TQString schema() const;
private:
- QString mId;
- QString mSchema;
+ TQString mId;
+ TQString mSchema;
};
class ReceiveSendDocument
diff --git a/kode/kwsdl/wscl/interaction.cpp b/kode/kwsdl/wscl/interaction.cpp
index ff88408a9..78db369c6 100644
--- a/kode/kwsdl/wscl/interaction.cpp
+++ b/kode/kwsdl/wscl/interaction.cpp
@@ -32,12 +32,12 @@ Interaction::~Interaction()
{
}
-void Interaction::setId( const QString &id )
+void Interaction::setId( const TQString &id )
{
mId = id;
}
-QString Interaction::id() const
+TQString Interaction::id() const
{
return mId;
}
diff --git a/kode/kwsdl/wscl/interaction.h b/kode/kwsdl/wscl/interaction.h
index 2700d7c00..50ececb8c 100644
--- a/kode/kwsdl/wscl/interaction.h
+++ b/kode/kwsdl/wscl/interaction.h
@@ -22,7 +22,7 @@
#ifndef WSCL_INTERACTION_H
#define WSCL_INTERACTION_H
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include "documents.h"
@@ -31,7 +31,7 @@ namespace WSCL {
class Interaction
{
public:
- typedef QValueList<Interaction> List;
+ typedef TQValueList<Interaction> List;
enum Type
{
@@ -45,8 +45,8 @@ class Interaction
Interaction();
~Interaction();
- void setId( const QString &id );
- QString id() const;
+ void setId( const TQString &id );
+ TQString id() const;
void setType( Type type );
Type type() const;
@@ -64,7 +64,7 @@ class Interaction
SendDocument sendDocument() const;
private:
- QString mId;
+ TQString mId;
Type mType;
SendReceiveDocument mSendReceiveDocument;
diff --git a/kode/kwsdl/wscl/parser.cpp b/kode/kwsdl/wscl/parser.cpp
index 129c3c3dc..a21d05fe8 100644
--- a/kode/kwsdl/wscl/parser.cpp
+++ b/kode/kwsdl/wscl/parser.cpp
@@ -19,7 +19,7 @@
Boston, MA 02110-1301, USA.
*/
-#include <qdom.h>
+#include <tqdom.h>
#include "parser.h"
@@ -33,10 +33,10 @@ Parser::~Parser()
{
}
-void Parser::parse( const QString &xml )
+void Parser::parse( const TQString &xml )
{
- QDomDocument doc( "kwscl" );
- QString errorMsg;
+ TQDomDocument doc( "kwscl" );
+ TQString errorMsg;
int errorLine, errorColumn;
bool ok = doc.setContent( xml, true, &errorMsg, &errorLine, &errorColumn );
if ( !ok ) {
@@ -44,13 +44,13 @@ void Parser::parse( const QString &xml )
return;
}
- QDomNodeList nodes = doc.elementsByTagName( "Conversation" );
+ TQDomNodeList nodes = doc.elementsByTagName( "Conversation" );
if ( nodes.count() <= 0 ) {
qDebug( "No conversation tag found in wscl data" );
return;
}
- QDomElement conversationElement = nodes.item( 0 ).toElement();
+ TQDomElement conversationElement = nodes.item( 0 ).toElement();
mConversation.setName( conversationElement.attribute( "name" ) );
mConversation.setVersion( conversationElement.attribute( "version" ) );
@@ -60,16 +60,16 @@ void Parser::parse( const QString &xml )
mConversation.setInitialInteraction( conversationElement.attribute( "initialInteraction" ) );
mConversation.setFinalInteraction( conversationElement.attribute( "finalInteraction" ) );
- QDomNode node = conversationElement.firstChild();
+ TQDomNode node = conversationElement.firstChild();
while ( !node.isNull() ) {
- QDomElement element = node.toElement();
+ TQDomElement element = node.toElement();
if ( !element.isNull() ) {
if ( element.tagName() == "ConversationInteractions" ) {
Interaction::List interactions;
- QDomNode interactionNode = element.firstChild();
+ TQDomNode interactionNode = element.firstChild();
while ( !interactionNode.isNull() ) {
- QDomElement interactionElement = interactionNode.toElement();
+ TQDomElement interactionElement = interactionNode.toElement();
if ( !interactionElement.isNull() ) {
if ( interactionElement.tagName() != "Interaction" ) {
qDebug( "Expected tag name 'Interaction', got '%s'", interactionElement.tagName().latin1() );
@@ -78,7 +78,7 @@ void Parser::parse( const QString &xml )
Interaction interaction;
interaction.setId( interactionElement.attribute( "id" ) );
- const QString type = interactionElement.attribute( "interactionType" );
+ const TQString type = interactionElement.attribute( "interactionType" );
if ( type == "ReceiveSend" )
interaction.setType( Interaction::ReceiveSend );
else if ( type == "SendReceive" )
@@ -97,11 +97,11 @@ void Parser::parse( const QString &xml )
XMLDocument inputDocument;
XMLDocument outputDocument;
- QDomNode contentNode = interactionElement.firstChild();
+ TQDomNode contentNode = interactionElement.firstChild();
while ( !contentNode.isNull() ) {
- QDomElement contentElement = contentNode.toElement();
+ TQDomElement contentElement = contentNode.toElement();
if ( !contentElement.isNull() ) {
- const QString tagName = contentElement.tagName();
+ const TQString tagName = contentElement.tagName();
if ( tagName == "InboundXMLDocument" ) {
XMLDocument document;
document.setId( contentElement.attribute( "id" ) );
@@ -170,9 +170,9 @@ void Parser::parse( const QString &xml )
} else if ( element.tagName() == "ConversationTransitions" ) {
Transition::List transitions;
- QDomNode transitionNode = element.firstChild();
+ TQDomNode transitionNode = element.firstChild();
while ( !transitionNode.isNull() ) {
- QDomElement transitionElement = transitionNode.toElement();
+ TQDomElement transitionElement = transitionNode.toElement();
if ( !transitionElement.isNull() ) {
if ( transitionElement.tagName() != "Transition" ) {
qDebug( "Expected tag name 'Transition', got '%s'", transitionElement.tagName().latin1() );
@@ -181,11 +181,11 @@ void Parser::parse( const QString &xml )
Transition transition;
- QDomNode contentNode = transitionElement.firstChild();
+ TQDomNode contentNode = transitionElement.firstChild();
while ( !contentNode.isNull() ) {
- QDomElement contentElement = contentNode.toElement();
+ TQDomElement contentElement = contentNode.toElement();
if ( !contentElement.isNull() ) {
- const QString tagName = contentElement.tagName();
+ const TQString tagName = contentElement.tagName();
if ( tagName == "SourceInteraction" )
transition.setSourceInteraction( contentElement.attribute( "href" ) );
else if ( tagName == "DestinationInteraction" )
diff --git a/kode/kwsdl/wscl/parser.h b/kode/kwsdl/wscl/parser.h
index 8f8824747..49b5a2184 100644
--- a/kode/kwsdl/wscl/parser.h
+++ b/kode/kwsdl/wscl/parser.h
@@ -32,7 +32,7 @@ class Parser
Parser();
~Parser();
- void parse( const QString &xml );
+ void parse( const TQString &xml );
void reset();
Conversation conversation() const;
diff --git a/kode/kwsdl/wscl/transition.cpp b/kode/kwsdl/wscl/transition.cpp
index c3a088a04..9e4ae491d 100644
--- a/kode/kwsdl/wscl/transition.cpp
+++ b/kode/kwsdl/wscl/transition.cpp
@@ -31,32 +31,32 @@ Transition::~Transition()
{
}
-void Transition::setSourceInteraction( const QString &sourceInteraction )
+void Transition::setSourceInteraction( const TQString &sourceInteraction )
{
mSourceInteraction = sourceInteraction;
}
-QString Transition::sourceInteraction() const
+TQString Transition::sourceInteraction() const
{
return mSourceInteraction;
}
-void Transition::setDestinationInteraction( const QString &destinationInteraction )
+void Transition::setDestinationInteraction( const TQString &destinationInteraction )
{
mDestinationInteraction = destinationInteraction;
}
-QString Transition::destinationInteraction() const
+TQString Transition::destinationInteraction() const
{
return mDestinationInteraction;
}
-void Transition::setSourceInteractionCondition( const QString &sourceInteractionCondition )
+void Transition::setSourceInteractionCondition( const TQString &sourceInteractionCondition )
{
mSourceInteractionCondition = sourceInteractionCondition;
}
-QString Transition::sourceInteractionCondition() const
+TQString Transition::sourceInteractionCondition() const
{
return mSourceInteractionCondition;
}
diff --git a/kode/kwsdl/wscl/transition.h b/kode/kwsdl/wscl/transition.h
index cb6d0a563..1a64691fb 100644
--- a/kode/kwsdl/wscl/transition.h
+++ b/kode/kwsdl/wscl/transition.h
@@ -22,32 +22,32 @@
#ifndef WSCL_TRANSITION_H
#define WSCL_TRANSITION_H
-#include <qstring.h>
-#include <qvaluelist.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
namespace WSCL {
class Transition
{
public:
- typedef QValueList<Transition> List;
+ typedef TQValueList<Transition> List;
Transition();
~Transition();
- void setSourceInteraction( const QString &sourceInteraction );
- QString sourceInteraction() const;
+ void setSourceInteraction( const TQString &sourceInteraction );
+ TQString sourceInteraction() const;
- void setDestinationInteraction( const QString &destinationInteraction );
- QString destinationInteraction() const;
+ void setDestinationInteraction( const TQString &destinationInteraction );
+ TQString destinationInteraction() const;
- void setSourceInteractionCondition( const QString &sourceInteractionCondition );
- QString sourceInteractionCondition() const;
+ void setSourceInteractionCondition( const TQString &sourceInteractionCondition );
+ TQString sourceInteractionCondition() const;
private:
- QString mSourceInteraction;
- QString mDestinationInteraction;
- QString mSourceInteractionCondition;
+ TQString mSourceInteraction;
+ TQString mDestinationInteraction;
+ TQString mSourceInteractionCondition;
};
}