From f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 29 Jun 2013 16:33:55 +0200 Subject: Initial TDE conversion --- src/webquerysciencedirect.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/webquerysciencedirect.cpp') diff --git a/src/webquerysciencedirect.cpp b/src/webquerysciencedirect.cpp index 2b62da1..0e041a0 100644 --- a/src/webquerysciencedirect.cpp +++ b/src/webquerysciencedirect.cpp @@ -24,12 +24,12 @@ #include #include -#include +#include #include #include -#include -#include -#include +#include +#include +#include #include #include @@ -84,7 +84,7 @@ namespace KBibTeX TQLabel *label = new TQLabel( i18n( "Title, abstract, keywords:" ), this ); hLayout->addWidget( label ); lineEditQuery = new KLineEdit( this ); - KCompletion *completionQuery = lineEditQuery->completionObject(); + TDECompletion *completionQuery = lineEditQuery->completionObject(); hLayout->addWidget( lineEditQuery ); label->setBuddy( lineEditQuery ); connect( clearSearchText, SIGNAL( clicked() ), lineEditQuery, SLOT( clear() ) ); @@ -363,21 +363,21 @@ namespace KBibTeX m_incomingData = ""; TQString data = TQString( "_ob=DownloadURL&_method=finish&_acct=%1&_userid=%2&_ArticleListID=%3&count=10&md5=%4&JAVASCRIPT_ON=&format=cite&citation-type=RIS&RETURN_URL=http://www.sciencedirect.com/science/home" ).arg( m_account ).arg( m_userid ).arg( m_articleListID ).arg( m_md5 ); KURL url = KURL( "http://www.sciencedirect.com/science" ); - KIO::TransferJob *job = KIO::http_post( url, data.utf8(), false ); + TDEIO::TransferJob *job = TDEIO::http_post( url, 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 * ) ) ); return true; } - void WebQueryScienceDirect::slotData( KIO::Job *, const TQByteArray &data ) + void WebQueryScienceDirect::slotData( TDEIO::Job *, const TQByteArray &data ) { if ( data.size() > 0 ) m_incomingData.append( TQCString( data, data.size() + 1 ) ); } - void WebQueryScienceDirect::slotResult( KIO::Job *job ) + void WebQueryScienceDirect::slotResult( TDEIO::Job *job ) { if ( job->error() ) { -- cgit v1.2.1