diff options
author | Slávek Banko <[email protected]> | 2013-06-29 16:33:55 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-07-04 03:57:45 +0200 |
commit | f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db (patch) | |
tree | 0414ba9f0823b98d2a159c11513ddcda84b932cc /src/webquerysciencedirect.cpp | |
parent | 5f5e7c5455d52826b0bd50f64fcffb7695ce970d (diff) | |
download | kbibtex-f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db.tar.gz kbibtex-f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db.zip |
Initial TDE conversion
Diffstat (limited to 'src/webquerysciencedirect.cpp')
-rw-r--r-- | src/webquerysciencedirect.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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 <ntqfile.h> #include <kpushbutton.h> -#include <klocale.h> +#include <tdelocale.h> #include <kcombobox.h> #include <kiconloader.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 <settings.h> #include <fileimporterris.h> @@ -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() ) { |