summaryrefslogtreecommitdiffstats
path: root/kresources/egroupware/xmlrpciface.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kresources/egroupware/xmlrpciface.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/egroupware/xmlrpciface.h')
-rw-r--r--kresources/egroupware/xmlrpciface.h160
1 files changed, 80 insertions, 80 deletions
diff --git a/kresources/egroupware/xmlrpciface.h b/kresources/egroupware/xmlrpciface.h
index 0e5f6c927..a1460c21c 100644
--- a/kresources/egroupware/xmlrpciface.h
+++ b/kresources/egroupware/xmlrpciface.h
@@ -12,11 +12,11 @@
#include <kurl.h>
-#include <qbuffer.h>
-#include <qdom.h>
-#include <qobject.h>
-#include <qvariant.h>
-#include <qvaluelist.h>
+#include <tqbuffer.h>
+#include <tqdom.h>
+#include <tqobject.h>
+#include <tqvariant.h>
+#include <tqvaluelist.h>
namespace KIO
{
@@ -36,42 +36,42 @@ namespace KXMLRPC
public:
- static Query *create( const QVariant &id = QVariant(),
- QObject *parent = 0, const char *name = 0 );
+ static Query *create( const TQVariant &id = TQVariant(),
+ TQObject *parent = 0, const char *name = 0 );
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 message( const QValueList<QVariant> &result, const QVariant &id );
- void fault( int, const QString&, const QVariant &id );
+ void message( const TQValueList<TQVariant> &result, const TQVariant &id );
+ void fault( int, const TQString&, const TQVariant &id );
void finished( Query* );
private slots:
- void slotData( KIO::Job *job, const QByteArray &data );
+ 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;
- QString marshal( const QVariant &v ) const;
- QVariant demarshal( const QDomElement &e ) const;
+ TQString markupCall( const TQString &method,
+ const TQValueList<TQVariant> &args ) const;
+ TQString marshal( const TQVariant &v ) const;
+ TQVariant demarshal( const TQDomElement &e ) const;
- Query( const QVariant &id, QObject *parent = 0, const char *name = 0 );
+ Query( const TQVariant &id, TQObject *parent = 0, const char *name = 0 );
~Query();
- QByteArray m_buffer;
- QVariant m_id;
+ TQByteArray m_buffer;
+ TQVariant m_id;
- QValueList<KIO::Job*> m_pendingJobs;
+ TQValueList<KIO::Job*> m_pendingJobs;
};
class Server : public QObject
@@ -79,85 +79,85 @@ namespace KXMLRPC
Q_OBJECT
public:
Server( const KURL &url = KURL(),
- QObject *parent = 0, const char *name = 0 );
+ TQObject *parent = 0, const char *name = 0 );
~Server();
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* obj1, const char* faultSlot,
- QObject* obj2, const char* messageSlot, const QVariant &id = QVariant() );
+ void call( const TQString &method, const TQValueList<T> &arg,
+ TQObject* obj1, const char* faultSlot,
+ TQObject* obj2, const char* messageSlot, const TQVariant &id = TQVariant() );
public slots:
- void call( const QString &method, const QValueList<QVariant> &args,
- QObject* faultObj, const char* faultSlot,
- QObject* msgObj, const char* messageSlot,
- const QVariant &id = QVariant() );
- void call( const QString &method, const QVariant &arg,
- QObject* faultObj, const char* faultSlot,
- QObject* msgObj, const char* messageSlot,
- const QVariant &id = QVariant() );
- void call( const QString &method, int arg ,
- QObject* faultObj, const char* faultSlot,
- QObject* msgObj, const char* messageSlot,
- const QVariant &id = QVariant() );
- void call( const QString &method, bool arg,
- QObject* faultObj, const char* faultSlot,
- QObject* msgObj, const char* messageSlot,
- const QVariant &id = QVariant() );
- void call( const QString &method, double arg,
- QObject* faultObj, const char* faultSlot,
- QObject* msgObj, const char* messageSlot,
- const QVariant &id = QVariant() );
- void call( const QString &method, const QString &arg,
- QObject* faultObj, const char* faultSlot,
- QObject* msgObj, const char* messageSlot,
- const QVariant &id = QVariant() );
- void call( const QString &method, const QCString &arg ,
- QObject* faultObj, const char* faultSlot,
- QObject* msgObj, const char* messageSlot,
- const QVariant &id = QVariant() );
- void call( const QString &method, const QByteArray &arg,
- QObject* faultObj, const char* faultSlot,
- QObject* msgObj, const char* messageSlot,
- const QVariant &id = QVariant() );
- void call( const QString &method, const QDateTime &arg,
- QObject* faultObj, const char* faultSlot,
- QObject* msgObj, const char* messageSlot,
- const QVariant &id = QVariant() );
- void call( const QString &method, const QStringList &arg,
- QObject* faultObj, const char* faultSlot,
- QObject* msgObj, const char* messageSlot,
- const QVariant &id = QVariant() );
+ void call( const TQString &method, const TQValueList<TQVariant> &args,
+ TQObject* faultObj, const char* faultSlot,
+ TQObject* msgObj, const char* messageSlot,
+ const TQVariant &id = TQVariant() );
+ void call( const TQString &method, const TQVariant &arg,
+ TQObject* faultObj, const char* faultSlot,
+ TQObject* msgObj, const char* messageSlot,
+ const TQVariant &id = TQVariant() );
+ void call( const TQString &method, int arg ,
+ TQObject* faultObj, const char* faultSlot,
+ TQObject* msgObj, const char* messageSlot,
+ const TQVariant &id = TQVariant() );
+ void call( const TQString &method, bool arg,
+ TQObject* faultObj, const char* faultSlot,
+ TQObject* msgObj, const char* messageSlot,
+ const TQVariant &id = TQVariant() );
+ void call( const TQString &method, double arg,
+ TQObject* faultObj, const char* faultSlot,
+ TQObject* msgObj, const char* messageSlot,
+ const TQVariant &id = TQVariant() );
+ void call( const TQString &method, const TQString &arg,
+ TQObject* faultObj, const char* faultSlot,
+ TQObject* msgObj, const char* messageSlot,
+ const TQVariant &id = TQVariant() );
+ void call( const TQString &method, const TQCString &arg ,
+ TQObject* faultObj, const char* faultSlot,
+ TQObject* msgObj, const char* messageSlot,
+ const TQVariant &id = TQVariant() );
+ void call( const TQString &method, const TQByteArray &arg,
+ TQObject* faultObj, const char* faultSlot,
+ TQObject* msgObj, const char* messageSlot,
+ const TQVariant &id = TQVariant() );
+ void call( const TQString &method, const TQDateTime &arg,
+ TQObject* faultObj, const char* faultSlot,
+ TQObject* msgObj, const char* messageSlot,
+ const TQVariant &id = TQVariant() );
+ void call( const TQString &method, const TQStringList &arg,
+ TQObject* faultObj, const char* faultSlot,
+ TQObject* msgObj, const char* messageSlot,
+ const TQVariant &id = TQVariant() );
private slots:
void queryFinished( Query* );
private:
KURL m_url;
- QString m_userAgent;
+ TQString m_userAgent;
- QValueList<Query*> mPendingQueries;
+ TQValueList<Query*> mPendingQueries;
};
}
template <typename T>
-void KXMLRPC::Server::call( const QString &method, const QValueList<T> &arg,
- QObject* faultObj, const char* faultSlot,
- QObject* msgObj, const char* messageSlot, const QVariant &id )
+void KXMLRPC::Server::call( const TQString &method, const TQValueList<T> &arg,
+ TQObject* faultObj, const char* faultSlot,
+ TQObject* msgObj, const char* messageSlot, const TQVariant &id )
{
- 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 );
return call( method, args, faultObj, faultSlot, msgObj, messageSlot, id );
}