summaryrefslogtreecommitdiffstats
path: root/src/fileimporterexternal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileimporterexternal.cpp')
-rw-r--r--src/fileimporterexternal.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/fileimporterexternal.cpp b/src/fileimporterexternal.cpp
index 3b23946..814f81d 100644
--- a/src/fileimporterexternal.cpp
+++ b/src/fileimporterexternal.cpp
@@ -17,10 +17,10 @@
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-#include <qprocess.h>
-#include <qwaitcondition.h>
-#include <qapplication.h>
-#include <qbuffer.h>
+#include <ntqprocess.h>
+#include <ntqwaitcondition.h>
+#include <ntqapplication.h>
+#include <ntqbuffer.h>
#include <fileimporterbibtex.h>
#include "fileimporterexternal.h"
@@ -31,7 +31,7 @@ namespace BibTeX
FileImporterExternal::FileImporterExternal( Importer importer, File::FileFormat fileformat )
: FileImporter(), m_importer( importer ), m_fileformat( fileformat )
{
- wc = new QWaitCondition();
+ wc = new TQWaitCondition();
}
@@ -40,11 +40,11 @@ namespace BibTeX
delete wc;
}
- File* FileImporterExternal::load( QIODevice *iodevice )
+ File* FileImporterExternal::load( TQIODevice *iodevice )
{
m_mutex.lock();
File * result = NULL;
- QBuffer buffer;
+ TQBuffer buffer;
if ( fetchInput( iodevice, buffer ) )
{
@@ -65,25 +65,25 @@ namespace BibTeX
process->kill();
}
- bool FileImporterExternal::fetchInput( QIODevice *input, QBuffer &output )
+ bool FileImporterExternal::fetchInput( TQIODevice *input, TQBuffer &output )
{
bool result = FALSE;
- QString commandLine;
+ TQString commandLine;
switch ( m_fileformat )
{
default:
return FALSE;
}
- QStringList args = QStringList::split( ' ', commandLine );
+ TQStringList args = TQStringList::split( ' ', commandLine );
output.open( IO_WriteOnly );
- writeTo = new QTextStream( &output );
- writeTo->setEncoding( QTextStream::UnicodeUTF8 );
+ writeTo = new TQTextStream( &output );
+ writeTo->setEncoding( TQTextStream::UnicodeUTF8 );
- QApplication::setOverrideCursor( Qt::waitCursor );
+ TQApplication::setOverrideCursor( TQt::waitCursor );
- process = new QProcess( args );
+ process = new TQProcess( args );
connect( process, SIGNAL( processExited() ), this, SLOT( slotProcessExited() ) );
connect( process, SIGNAL( readyReadStdout() ), this, SLOT( slotReadProcessOutput() ) );
connect( process, SIGNAL( readyReadStderr() ), this, SLOT( slotReadProcessOutput() ) );
@@ -94,16 +94,16 @@ namespace BibTeX
while ( !process->isRunning() )
{
wc->wait( 250 );
- qApp->processEvents();
+ tqApp->processEvents();
}
- qApp->processEvents();
- QByteArray buf = input->readAll();
+ tqApp->processEvents();
+ TQByteArray buf = input->readAll();
process->writeToStdin( buf );
- qApp->processEvents();
+ tqApp->processEvents();
while ( process->isRunning() )
{
wc->wait( 250 );
- qApp->processEvents();
+ tqApp->processEvents();
}
result = process->normalExit();
@@ -119,7 +119,7 @@ namespace BibTeX
writeTo = NULL;
output.close();
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
return result;
}
@@ -133,8 +133,8 @@ namespace BibTeX
if ( writeTo != NULL )
while ( process->canReadLineStdout() )
{
- QString line = process->readLineStdout();
- // qDebug( "line=%s", line.latin1() );
+ TQString line = process->readLineStdout();
+ // tqDebug( "line=%s", line.latin1() );
( *writeTo ) << line.latin1();
( *writeTo ) << endl;
}