diff options
author | Timothy Pearson <[email protected]> | 2013-01-25 00:36:20 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-25 00:36:20 -0600 |
commit | f21aaec952493cb5688c73de6e82a569ddbd7fb2 (patch) | |
tree | 78ccb5117063da3e08e3277e11054b912a9f2ae7 /dcoprss | |
parent | c48e769eb275917717e2b55eb869f7e559293ac8 (diff) | |
download | tdenetwork-f21aaec952493cb5688c73de6e82a569ddbd7fb2.tar.gz tdenetwork-f21aaec952493cb5688c73de6e82a569ddbd7fb2.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'dcoprss')
-rw-r--r-- | dcoprss/service.cpp | 4 | ||||
-rw-r--r-- | dcoprss/xmlrpciface.cpp | 20 | ||||
-rw-r--r-- | dcoprss/xmlrpciface.h | 8 |
3 files changed, 16 insertions, 16 deletions
diff --git a/dcoprss/service.cpp b/dcoprss/service.cpp index 54e987b2..de9f0499 100644 --- a/dcoprss/service.cpp +++ b/dcoprss/service.cpp @@ -79,7 +79,7 @@ void RSSService::exit() void RSSService::loadLinks() { - KConfig *conf = kapp->config(); + TDEConfig *conf = kapp->config(); conf->setGroup("RSS Links"); const TQStringList links = conf->readListEntry ("links"); TQStringList::ConstIterator it = links.begin(); @@ -90,7 +90,7 @@ void RSSService::loadLinks() void RSSService::saveLinks() { - KConfig *conf = kapp->config(); + TDEConfig *conf = kapp->config(); conf->setGroup("RSS Links"); TQStringList lst; TQDictIterator<RSSDocument> itr(m_list); diff --git a/dcoprss/xmlrpciface.cpp b/dcoprss/xmlrpciface.cpp index 73060216..fa024f5d 100644 --- a/dcoprss/xmlrpciface.cpp +++ b/dcoprss/xmlrpciface.cpp @@ -52,28 +52,28 @@ void Query::call( const TQString &server, const TQString &method, TQDataStream stream( postData, IO_WriteOnly ); stream.writeRawBytes( xmlMarkup.utf8(), xmlMarkup.length() ); - KIO::TransferJob *job = KIO::http_post( KURL( server ), postData, false ); + TDEIO::TransferJob *job = TDEIO::http_post( KURL( server ), postData, false ); job->addMetaData( "UserAgent", userAgent ); job->addMetaData( "content-type", "Content-Type: text/xml; charset=utf-8" ); - connect( job, TQT_SIGNAL( infoMessage( KIO::Job *, const TQString & ) ), - this, TQT_SLOT( slotInfoMessage( KIO::Job *, const TQString & ) ) ); - connect( job, TQT_SIGNAL( data( KIO::Job *, const TQByteArray & ) ), - this, TQT_SLOT( slotData( KIO::Job *, const TQByteArray & ) ) ); - connect( job, TQT_SIGNAL( result( KIO::Job * ) ), - this, TQT_SLOT( slotResult( KIO::Job * ) ) ); + connect( job, TQT_SIGNAL( infoMessage( TDEIO::Job *, const TQString & ) ), + this, TQT_SLOT( slotInfoMessage( TDEIO::Job *, const TQString & ) ) ); + connect( job, TQT_SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ), + this, TQT_SLOT( slotData( TDEIO::Job *, const TQByteArray & ) ) ); + connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), + this, TQT_SLOT( slotResult( TDEIO::Job * ) ) ); } -void Query::slotInfoMessage( KIO::Job *, const TQString &msg ) +void Query::slotInfoMessage( TDEIO::Job *, const TQString &msg ) { emit infoMessage( msg ); } -void Query::slotData( KIO::Job *, const TQByteArray &data ) +void Query::slotData( TDEIO::Job *, const TQByteArray &data ) { m_buffer.writeBlock( data ); } -void Query::slotResult( KIO::Job *job ) +void Query::slotResult( TDEIO::Job *job ) { Result response; response.m_server = m_server; diff --git a/dcoprss/xmlrpciface.h b/dcoprss/xmlrpciface.h index 2bc10458..f5816144 100644 --- a/dcoprss/xmlrpciface.h +++ b/dcoprss/xmlrpciface.h @@ -36,7 +36,7 @@ class TQDomDocument; class TQDomElement; -namespace KIO +namespace TDEIO { class Job; } @@ -91,9 +91,9 @@ namespace KXMLRPC void finished( const KXMLRPC::Query::Result &result ); private slots: - void slotInfoMessage( KIO::Job *job, const TQString &msg ); - void slotData( KIO::Job *job, const TQByteArray &data ); - void slotResult( KIO::Job *job ); + void slotInfoMessage( TDEIO::Job *job, const TQString &msg ); + void slotData( TDEIO::Job *job, const TQByteArray &data ); + void slotResult( TDEIO::Job *job ); private: bool isMessageResponse( const TQDomDocument &doc ) const; |