diff options
Diffstat (limited to 'src/translators/griffithimporter.cpp')
-rw-r--r-- | src/translators/griffithimporter.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/translators/griffithimporter.cpp b/src/translators/griffithimporter.cpp index ea4da5e..d5693e1 100644 --- a/src/translators/griffithimporter.cpp +++ b/src/translators/griffithimporter.cpp @@ -46,18 +46,18 @@ Tellico::Data::CollPtr GriffithImporter::collection() { return 0; } - TQString griffith = KGlobal::dirs()->findResource("appdata", TQString::fromLatin1("griffith2tellico.py")); + TQString griffith = TDEGlobal::dirs()->findResource("appdata", TQString::fromLatin1("griffith2tellico.py")); if(griffith.isEmpty()) { myWarning() << "GriffithImporter::collection() - griffith2tellico.py not found!" << endl; return 0; } - m_process = new KProcess(); - connect(m_process, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), TQT_SLOT(slotData(KProcess*, char*, int))); - connect(m_process, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), TQT_SLOT(slotError(KProcess*, char*, int))); - connect(m_process, TQT_SIGNAL(processExited(KProcess*)), TQT_SLOT(slotProcessExited(KProcess*))); + m_process = new TDEProcess(); + connect(m_process, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), TQT_SLOT(slotData(TDEProcess*, char*, int))); + connect(m_process, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), TQT_SLOT(slotError(TDEProcess*, char*, int))); + connect(m_process, TQT_SIGNAL(processExited(TDEProcess*)), TQT_SLOT(slotProcessExited(TDEProcess*))); *m_process << python << griffith; - if(!m_process->start(KProcess::Block, KProcess::AllOutput)) { + if(!m_process->start(TDEProcess::Block, TDEProcess::AllOutput)) { myDebug() << "ExecExternalFetcher::startSearch() - process failed to start" << endl; return 0; } @@ -65,19 +65,19 @@ Tellico::Data::CollPtr GriffithImporter::collection() { return m_coll; } -void GriffithImporter::slotData(KProcess*, char* buffer_, int len_) { +void GriffithImporter::slotData(TDEProcess*, char* buffer_, int len_) { TQDataStream stream(m_data, IO_WriteOnly | IO_Append); stream.writeRawBytes(buffer_, len_); } -void GriffithImporter::slotError(KProcess*, char* buffer_, int len_) { +void GriffithImporter::slotError(TDEProcess*, char* buffer_, int len_) { TQString msg = TQString::fromLocal8Bit(buffer_, len_); myDebug() << "GriffithImporter::slotError() - " << msg << endl; setStatusMessage(msg); } -void GriffithImporter::slotProcessExited(KProcess*) { +void GriffithImporter::slotProcessExited(TDEProcess*) { // myDebug() << "GriffithImporter::slotProcessExited()" << endl; if(!m_process->normalExit() || m_process->exitStatus()) { myDebug() << "GriffithImporter::slotProcessExited() - process did not exit successfully" << endl; |