summaryrefslogtreecommitdiffstats
path: root/src/webqueryarxiv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webqueryarxiv.cpp')
-rw-r--r--src/webqueryarxiv.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/webqueryarxiv.cpp b/src/webqueryarxiv.cpp
index 93261ad..1405a34 100644
--- a/src/webqueryarxiv.cpp
+++ b/src/webqueryarxiv.cpp
@@ -21,9 +21,9 @@
#include <ntqbuffer.h>
#include <ntqspinbox.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <klineedit.h>
-#include <kmessagebox.h>
+#include <tdemessagebox.h>
#include <kurl.h>
#include <fileimporterbibtex.h>
@@ -169,17 +169,17 @@ namespace KBibTeX
KURL url = KURL( TQString( "http://www.arxiv.org/find/all/1/all:+%2/0/1/0/all/0/1?per_page=%1" ).arg( m_numberOfResults ).arg( query.replace( "%", "%25" ).replace( "+", "%2B" ).replace( " ", "%20" ).replace( "#", "%23" ).replace( "&", "%26" ).replace( "?", "%3F" ) ) );
m_currentJobMutex.lock();
- KIO::Job *job = KIO::storedGet( url, FALSE, FALSE );
- connect( job, SIGNAL( result( KIO::Job * ) ), this, SLOT( unlockJob( KIO::Job * ) ) );
- connect( job, SIGNAL( result( KIO::Job * ) ), this, SLOT( arXivResult( KIO::Job * ) ) );
+ TDEIO::Job *job = TDEIO::storedGet( url, FALSE, FALSE );
+ connect( job, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( unlockJob( TDEIO::Job * ) ) );
+ connect( job, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( arXivResult( TDEIO::Job * ) ) );
}
- void WebQueryArXiv::unlockJob( KIO::Job * )
+ void WebQueryArXiv::unlockJob( TDEIO::Job * )
{
m_currentJobMutex.unlock();
}
- void WebQueryArXiv::arXivResult( KIO::Job *job )
+ void WebQueryArXiv::arXivResult( TDEIO::Job *job )
{
if ( job->error() == 0 && !m_aborted )
{
@@ -187,7 +187,7 @@ namespace KBibTeX
TQBuffer data;
data.open( IO_WriteOnly );
- data.writeBlock( dynamic_cast<KIO::StoredTransferJob*>( job )->data() );
+ data.writeBlock( dynamic_cast<TDEIO::StoredTransferJob*>( job )->data() );
data.close();
data.open( IO_ReadOnly );
TQTextStream ts( &data );
@@ -226,12 +226,12 @@ namespace KBibTeX
{
m_aborted = false;
m_currentJobMutex.lock();
- KIO::Job *job = KIO::storedGet( abstractURL, FALSE, FALSE );
- connect( job, SIGNAL( result( KIO::Job * ) ), this, SLOT( unlockJob( KIO::Job * ) ) );
- connect( job, SIGNAL( result( KIO::Job * ) ), this, SLOT( arXivAbstractResult( KIO::Job * ) ) );
+ TDEIO::Job *job = TDEIO::storedGet( abstractURL, FALSE, FALSE );
+ connect( job, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( unlockJob( TDEIO::Job * ) ) );
+ connect( job, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( arXivAbstractResult( TDEIO::Job * ) ) );
}
- void WebQueryArXiv::arXivAbstractResult( KIO::Job *job )
+ void WebQueryArXiv::arXivAbstractResult( TDEIO::Job *job )
{
if ( job->error() == 0 && !m_aborted )
{
@@ -240,7 +240,7 @@ namespace KBibTeX
TQBuffer data;
data.open( IO_WriteOnly );
- data.writeBlock( dynamic_cast<KIO::StoredTransferJob*>( job )->data() );
+ data.writeBlock( dynamic_cast<TDEIO::StoredTransferJob*>( job )->data() );
data.close();
data.open( IO_ReadOnly );
TQTextStream ts( &data );
@@ -553,9 +553,9 @@ namespace KBibTeX
KURL url = m_urls.first();
m_urls.remove( url );
m_currentJobMutex.lock();
- KIO::Job *job = KIO::storedGet( url, FALSE, FALSE );
- connect( job, SIGNAL( result( KIO::Job * ) ), this, SLOT( unlockJob( KIO::Job * ) ) );
- connect( job, SIGNAL( result( KIO::Job * ) ), this, SLOT( arXivAbstractResult( KIO::Job * ) ) );
+ TDEIO::Job *job = TDEIO::storedGet( url, FALSE, FALSE );
+ connect( job, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( unlockJob( TDEIO::Job * ) ) );
+ connect( job, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( arXivAbstractResult( TDEIO::Job * ) ) );
}
else
setEndSearch( WebQuery::statusSuccess );