diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kresources/egroupware/xmlrpciface.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/egroupware/xmlrpciface.cpp')
-rw-r--r-- | kresources/egroupware/xmlrpciface.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kresources/egroupware/xmlrpciface.cpp b/kresources/egroupware/xmlrpciface.cpp index 68bade033..bd31a194a 100644 --- a/kresources/egroupware/xmlrpciface.cpp +++ b/kresources/egroupware/xmlrpciface.cpp @@ -54,9 +54,9 @@ namespace KXMLRPC }; } -Query *Query::create( const TQVariant &id, TQObject *parent, const char *name ) +Query *Query::create( const TQVariant &id, TQObject *tqparent, const char *name ) { - return new Query( id, parent, name ); + return new Query( id, tqparent, name ); } void Query::call( const TQString &server, const TQString &method, @@ -222,7 +222,7 @@ TQString Query::marshal( const TQVariant &arg ) const case TQVariant::ByteArray: return "<value><base64>" + KCodecs::base64Encode( arg.toByteArray() ) + "</base64></value>\r\n"; case TQVariant::DateTime: - return "<value><datetime.iso8601>" + arg.toDateTime().toString( Qt::ISODate ) + "</datetime.iso8601></value>\r\n"; + return "<value><datetime.iso8601>" + arg.toDateTime().toString( TQt::ISODate ) + "</datetime.iso8601></value>\r\n"; case TQVariant::List: { TQString markup = "<value><array><data>\r\n"; @@ -253,7 +253,7 @@ TQString Query::marshal( const TQVariant &arg ) const default: kdWarning() << "Failed to marshal unknown variant type: " << arg.type() << endl; }; - return TQString::null; + return TQString(); } TQVariant Query::demarshal( const TQDomElement &elem ) const @@ -279,7 +279,7 @@ TQVariant Query::demarshal( const TQDomElement &elem ) const else if ( typeName == "base64" ) return TQVariant( KCodecs::base64Decode( typeElement.text().latin1() ) ); else if ( typeName == "datetime" || typeName == "datetime.iso8601" ) - return TQVariant( TQDateTime::fromString( typeElement.text(), Qt::ISODate ) ); + return TQVariant( TQDateTime::fromString( typeElement.text(), TQt::ISODate ) ); else if ( typeName == "array" ) { TQValueList<TQVariant> values; @@ -310,8 +310,8 @@ TQVariant Query::demarshal( const TQDomElement &elem ) const return TQVariant(); } -Query::Query( const TQVariant &id, TQObject *parent, const char *name ) - : TQObject( parent, name ), m_id( id ) +Query::Query( const TQVariant &id, TQObject *tqparent, const char *name ) + : TQObject( tqparent, name ), m_id( id ) {} Query::~Query() @@ -321,8 +321,8 @@ Query::~Query() (*it)->kill(); } -Server::Server( const KURL &url, TQObject *parent, const char *name ) - : TQObject( parent, name ) +Server::Server( const KURL &url, TQObject *tqparent, const char *name ) + : TQObject( tqparent, name ) { if ( url.isValid() ) m_url = url; |