summaryrefslogtreecommitdiffstats
path: root/src/webqueryieeexplore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webqueryieeexplore.cpp')
-rw-r--r--src/webqueryieeexplore.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/webqueryieeexplore.cpp b/src/webqueryieeexplore.cpp
index 1ffbd9e..cc28192 100644
--- a/src/webqueryieeexplore.cpp
+++ b/src/webqueryieeexplore.cpp
@@ -20,13 +20,13 @@
#include <ntqspinbox.h>
#include <ntqfile.h>
-#include <kio/jobclasses.h>
-#include <kio/job.h>
-#include <kio/netaccess.h>
+#include <tdeio/jobclasses.h>
+#include <tdeio/job.h>
+#include <tdeio/netaccess.h>
#include <klineedit.h>
#include <kurl.h>
-#include <klocale.h>
-#include <kmessagebox.h>
+#include <tdelocale.h>
+#include <tdemessagebox.h>
#include <settings.h>
#include <entryfield.h>
@@ -150,7 +150,7 @@ namespace KBibTeX
}
else if ( !m_aborted )
{
- TQString message = KIO::NetAccess::lastErrorString();
+ TQString message = TDEIO::NetAccess::lastErrorString();
if ( message.isEmpty() )
message.prepend( '\n' );
message.prepend( TQString( i18n( "Querying database '%1' failed." ) ).arg( title() ) );
@@ -173,19 +173,19 @@ namespace KBibTeX
m_incomingData = "";
TQString data = "dlSelect=cite&fileFormate=BibTex&arnumber=%3Carnumber%3E" + TQString::number( arnum ) + "%3C%2Farnumber%3E&Submit=Download";
- KIO::TransferJob *job = KIO::http_post( m_risURL, data.utf8(), false );
+ TDEIO::TransferJob *job = TDEIO::http_post( m_risURL, data.utf8(), false );
job->addMetaData( "content-type", "Content-Type: application/x-www-form-urlencoded" );
- connect( job, SIGNAL( data( KIO::Job *, const TQByteArray & ) ), this, SLOT( slotData( KIO::Job *, const TQByteArray & ) ) );
- connect( job, SIGNAL( result( KIO::Job * ) ), this, SLOT( slotResult( KIO::Job * ) ) );
+ connect( job, SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ), this, SLOT( slotData( TDEIO::Job *, const TQByteArray & ) ) );
+ connect( job, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( slotResult( TDEIO::Job * ) ) );
}
- void WebQueryIEEExplore::slotData( KIO::Job *, const TQByteArray &data )
+ void WebQueryIEEExplore::slotData( TDEIO::Job *, const TQByteArray &data )
{
if ( data.size() > 0 )
m_incomingData.append( TQCString( data, data.size() + 1 ) );
}
- void WebQueryIEEExplore::slotResult( KIO::Job *job )
+ void WebQueryIEEExplore::slotResult( TDEIO::Job *job )
{
TQRegExp m_date( "^(((\\d{1,2}(-\\d{1,2}))\\s+)?(([A-Z][a-z]{2,3})(/([A-Z][a-z]{2,3}))?)\\.?\\s+)?(\\d{4})$" );
if ( job->error() )