summaryrefslogtreecommitdiffstats
path: root/dcoprss/xmlrpciface.h
diff options
context:
space:
mode:
Diffstat (limited to 'dcoprss/xmlrpciface.h')
-rw-r--r--dcoprss/xmlrpciface.h132
1 files changed, 66 insertions, 66 deletions
diff --git a/dcoprss/xmlrpciface.h b/dcoprss/xmlrpciface.h
index f7897e10..d3b1a4b0 100644
--- a/dcoprss/xmlrpciface.h
+++ b/dcoprss/xmlrpciface.h
@@ -27,11 +27,11 @@
#include <kurl.h>
-#include <qbuffer.h>
-#include <qdatastream.h>
-#include <qobject.h>
-#include <qvariant.h>
-#include <qvaluelist.h>
+#include <tqbuffer.h>
+#include <tqdatastream.h>
+#include <tqobject.h>
+#include <tqvariant.h>
+#include <tqvaluelist.h>
class QDomDocument;
class QDomElement;
@@ -54,62 +54,62 @@ namespace KXMLRPC
class Result
{
friend class Query;
- friend QDataStream &operator>>( QDataStream &s, Query::Result &r );
+ friend TQDataStream &operator>>( TQDataStream &s, Query::Result &r );
public:
Result() { }
bool success() const { return m_success; }
int errorCode() const { return m_errorCode; }
- QString errorString() const { return m_errorString; }
- QValueList<QVariant> data() const { return m_data; }
- QString server() const { return m_server; }
- QString method() const { return m_method; }
- QValueList<QVariant> args() const { return m_args; }
+ TQString errorString() const { return m_errorString; }
+ TQValueList<TQVariant> data() const { return m_data; }
+ TQString server() const { return m_server; }
+ TQString method() const { return m_method; }
+ TQValueList<TQVariant> args() const { return m_args; }
private:
bool m_success;
int m_errorCode;
- QString m_errorString;
- QValueList<QVariant> m_data;
- QString m_server;
- QString m_method;
- QValueList<QVariant> m_args;
+ TQString m_errorString;
+ TQValueList<TQVariant> m_data;
+ TQString m_server;
+ TQString m_method;
+ TQValueList<TQVariant> m_args;
};
- static Query *create( QObject *parent = 0, const char *name = 0 );
- static QString marshal( const QVariant &v );
- static QVariant demarshal( const QDomElement &e );
+ static Query *create( TQObject *parent = 0, const char *name = 0 );
+ static TQString marshal( const TQVariant &v );
+ static TQVariant demarshal( const TQDomElement &e );
public slots:
- void call( const QString &server, const QString &method,
- const QValueList<QVariant> &args = QValueList<QVariant>(),
- const QString &userAgent = "KDE-XMLRPC" );
+ void call( const TQString &server, const TQString &method,
+ const TQValueList<TQVariant> &args = TQValueList<TQVariant>(),
+ const TQString &userAgent = "KDE-XMLRPC" );
signals:
- void infoMessage( const QString &msg );
+ void infoMessage( const TQString &msg );
void finished( const KXMLRPC::Query::Result &result );
private slots:
- void slotInfoMessage( KIO::Job *job, const QString &msg );
- void slotData( KIO::Job *job, const QByteArray &data );
+ void slotInfoMessage( KIO::Job *job, const TQString &msg );
+ void slotData( KIO::Job *job, const TQByteArray &data );
void slotResult( KIO::Job *job );
private:
- bool isMessageResponse( const QDomDocument &doc ) const;
- bool isFaultResponse( const QDomDocument &doc ) const;
+ bool isMessageResponse( const TQDomDocument &doc ) const;
+ bool isFaultResponse( const TQDomDocument &doc ) const;
- Result parseMessageResponse( const QDomDocument &doc ) const;
- Result parseFaultResponse( const QDomDocument &doc ) const;
+ Result parseMessageResponse( const TQDomDocument &doc ) const;
+ Result parseFaultResponse( const TQDomDocument &doc ) const;
- QString markupCall( const QString &method,
- const QValueList<QVariant> &args ) const;
+ TQString markupCall( const TQString &method,
+ const TQValueList<TQVariant> &args ) const;
- Query( QObject *parent = 0, const char *name = 0 );
+ Query( TQObject *parent = 0, const char *name = 0 );
- QBuffer m_buffer;
- QString m_server;
- QString m_method;
- QValueList<QVariant> m_args;
+ TQBuffer m_buffer;
+ TQString m_server;
+ TQString m_method;
+ TQValueList<TQVariant> m_args;
};
class Server : public QObject
@@ -117,44 +117,44 @@ namespace KXMLRPC
Q_OBJECT
public:
Server( const KURL &url = KURL(),
- QObject *parent = 0, const char *name = 0 );
+ TQObject *parent = 0, const char *name = 0 );
const KURL &url() const { return m_url; }
void setUrl( const KURL &url );
- QString userAgent() const { return m_userAgent; }
- void setUserAgent( const QString &userAgent) { m_userAgent = userAgent; }
+ TQString userAgent() const { return m_userAgent; }
+ void setUserAgent( const TQString &userAgent) { m_userAgent = userAgent; }
template <typename T>
- void call( const QString &method, const QValueList<T> &arg,
- QObject *object, const char *slot );
-
- static QValueList<QVariant> toVariantList( const QVariant &arg );
- static QValueList<QVariant> toVariantList( int arg );
- static QValueList<QVariant> toVariantList( bool arg );
- static QValueList<QVariant> toVariantList( double arg );
- static QValueList<QVariant> toVariantList( const QString &arg );
- static QValueList<QVariant> toVariantList( const QCString &arg );
- static QValueList<QVariant> toVariantList( const QByteArray &arg );
- static QValueList<QVariant> toVariantList( const QDateTime &arg );
- static QValueList<QVariant> toVariantList( const QStringList &arg );
+ void call( const TQString &method, const TQValueList<T> &arg,
+ TQObject *object, const char *slot );
+
+ static TQValueList<TQVariant> toVariantList( const TQVariant &arg );
+ static TQValueList<TQVariant> toVariantList( int arg );
+ static TQValueList<TQVariant> toVariantList( bool arg );
+ static TQValueList<TQVariant> toVariantList( double arg );
+ static TQValueList<TQVariant> toVariantList( const TQString &arg );
+ static TQValueList<TQVariant> toVariantList( const TQCString &arg );
+ static TQValueList<TQVariant> toVariantList( const TQByteArray &arg );
+ static TQValueList<TQVariant> toVariantList( const TQDateTime &arg );
+ static TQValueList<TQVariant> toVariantList( const TQStringList &arg );
signals:
- void infoMessage( const QString &msg );
+ void infoMessage( const TQString &msg );
public slots:
- void call( const QString &method, const QValueList<QVariant> &args,
- QObject *object, const char *slot );
- void call( const QString &method, const QValueList<QVariant> &args,
- QObject *object, const char *slot,
- QObject *infoObject, const char *infoSlot );
+ void call( const TQString &method, const TQValueList<TQVariant> &args,
+ TQObject *object, const char *slot );
+ void call( const TQString &method, const TQValueList<TQVariant> &args,
+ TQObject *object, const char *slot,
+ TQObject *infoObject, const char *infoSlot );
private:
KURL m_url;
- QString m_userAgent;
+ TQString m_userAgent;
};
- inline QDataStream &operator>>( QDataStream &s, Query::Result &r )
+ inline TQDataStream &operator>>( TQDataStream &s, Query::Result &r )
{
return s >> r.m_errorCode >> r.m_errorString >> r.m_data
>> r.m_server >> r.m_method >> r.m_args;
@@ -162,20 +162,20 @@ namespace KXMLRPC
}
template <typename T>
-void KXMLRPC::Server::call( const QString &method, const QValueList<T> &arg,
- QObject *object, const char *slot )
+void KXMLRPC::Server::call( const TQString &method, const TQValueList<T> &arg,
+ TQObject *object, const char *slot )
{
- QValueList<QVariant> args;
+ TQValueList<TQVariant> args;
- typename QValueList<T>::ConstIterator it = arg.begin();
- typename QValueList<T>::ConstIterator end = arg.end();
+ typename TQValueList<T>::ConstIterator it = arg.begin();
+ typename TQValueList<T>::ConstIterator end = arg.end();
for ( ; it != end; ++it )
- args << QVariant( *it );
+ args << TQVariant( *it );
call( method, args, object, slot );
}
-inline QDataStream &operator<<( QDataStream &s, const KXMLRPC::Query::Result &r )
+inline TQDataStream &operator<<( TQDataStream &s, const KXMLRPC::Query::Result &r )
{
return s << r.errorCode() << r.errorString() << r.data()
<< r.server() << r.method() << r.args();