summaryrefslogtreecommitdiffstats
path: root/src/languages
diff options
context:
space:
mode:
Diffstat (limited to 'src/languages')
-rw-r--r--src/languages/externallanguage.cpp24
-rw-r--r--src/languages/externallanguage.h10
-rw-r--r--src/languages/picprogrammer.cpp2
-rw-r--r--src/languages/picprogrammer.h2
4 files changed, 19 insertions, 19 deletions
diff --git a/src/languages/externallanguage.cpp b/src/languages/externallanguage.cpp
index 82e35aa..553e597 100644
--- a/src/languages/externallanguage.cpp
+++ b/src/languages/externallanguage.cpp
@@ -46,7 +46,7 @@ void ExternalLanguage::deleteLanguageProcess()
}
-void ExternalLanguage::receivedStdout( KProcess *, char * buffer, int buflen )
+void ExternalLanguage::receivedStdout( TDEProcess *, char * buffer, int buflen )
{
TQStringList lines = TQStringList::split( '\n', TQString::fromLocal8Bit( buffer, buflen ), false );
TQStringList::iterator end = lines.end();
@@ -72,7 +72,7 @@ void ExternalLanguage::receivedStdout( KProcess *, char * buffer, int buflen )
}
-void ExternalLanguage::receivedStderr( KProcess *, char * buffer, int buflen )
+void ExternalLanguage::receivedStderr( TDEProcess *, char * buffer, int buflen )
{
TQStringList lines = TQStringList::split( '\n', TQString::fromLocal8Bit( buffer, buflen ), false );
TQStringList::iterator end = lines.end();
@@ -93,7 +93,7 @@ void ExternalLanguage::receivedStderr( KProcess *, char * buffer, int buflen )
}
-void ExternalLanguage::processExited( KProcess * )
+void ExternalLanguage::processExited( TDEProcess * )
{
if ( !m_languageProcess )
return;
@@ -114,7 +114,7 @@ bool ExternalLanguage::start()
{
displayProcessCommand();
- return m_languageProcess->start( KProcess::NotifyOnExit, KProcess::All );
+ return m_languageProcess->start( TDEProcess::NotifyOnExit, TDEProcess::All );
}
@@ -124,16 +124,16 @@ void ExternalLanguage::resetLanguageProcess()
deleteLanguageProcess();
m_errorCount = 0;
- m_languageProcess = new KProcess(this);
+ m_languageProcess = new TDEProcess(this);
- connect( m_languageProcess, TQT_SIGNAL(receivedStdout( KProcess*, char*, int )),
- this, TQT_SLOT(receivedStdout( KProcess*, char*, int )) );
+ connect( m_languageProcess, TQT_SIGNAL(receivedStdout( TDEProcess*, char*, int )),
+ this, TQT_SLOT(receivedStdout( TDEProcess*, char*, int )) );
- connect( m_languageProcess, TQT_SIGNAL(receivedStderr( KProcess*, char*, int )),
- this, TQT_SLOT(receivedStderr( KProcess*, char*, int )) );
+ connect( m_languageProcess, TQT_SIGNAL(receivedStderr( TDEProcess*, char*, int )),
+ this, TQT_SLOT(receivedStderr( TDEProcess*, char*, int )) );
- connect( m_languageProcess, TQT_SIGNAL(processExited( KProcess* )),
- this, TQT_SLOT(processExited( KProcess* )) );
+ connect( m_languageProcess, TQT_SIGNAL(processExited( TDEProcess* )),
+ this, TQT_SLOT(processExited( TDEProcess* )) );
}
@@ -152,7 +152,7 @@ void ExternalLanguage::displayProcessCommand()
for ( TQValueList<TQCString>::const_iterator it = arguments.begin(); it != end; ++it )
{
if ( (*it).isEmpty() || (*it).contains( TQRegExp("[\\s]") ) )
- quotedArguments << KProcess::quote( *it );
+ quotedArguments << TDEProcess::quote( *it );
else
quotedArguments << *it;
}
diff --git a/src/languages/externallanguage.h b/src/languages/externallanguage.h
index 186df27..dc02e3a 100644
--- a/src/languages/externallanguage.h
+++ b/src/languages/externallanguage.h
@@ -13,7 +13,7 @@
#include "language.h"
-class KProcess;
+class TDEProcess;
/**
Base class for Language support that relies on an external program; so this
@@ -31,9 +31,9 @@ public:
~ExternalLanguage();
protected slots:
- void receivedStdout( KProcess *, char * buffer, int buflen );
- void receivedStderr( KProcess *, char * buffer, int buflen );
- void processExited( KProcess * );
+ void receivedStdout( TDEProcess *, char * buffer, int buflen );
+ void receivedStderr( TDEProcess *, char * buffer, int buflen );
+ void processExited( TDEProcess * );
protected:
/**
@@ -92,7 +92,7 @@ protected:
*/
void displayProcessCommand();
- KProcess * m_languageProcess;
+ TDEProcess * m_languageProcess;
};
#endif
diff --git a/src/languages/picprogrammer.cpp b/src/languages/picprogrammer.cpp
index 837a937..afc1307 100644
--- a/src/languages/picprogrammer.cpp
+++ b/src/languages/picprogrammer.cpp
@@ -387,7 +387,7 @@ void PicProgrammer::processInput( ProcessOptions options )
TQString command = config.writeCommand;
command.replace( "%port", options.m_port );
command.replace( "%device", TQString( options.m_picID ).remove("P") );
- command.replace( "%file", KProcess::quote( options.inputFiles().first() ) );
+ command.replace( "%file", TDEProcess::quote( options.inputFiles().first() ) );
m_languageProcess->setUseShell( true );
*m_languageProcess << command;
diff --git a/src/languages/picprogrammer.h b/src/languages/picprogrammer.h
index 9e1b606..ef9e1cf 100644
--- a/src/languages/picprogrammer.h
+++ b/src/languages/picprogrammer.h
@@ -15,7 +15,7 @@
class KConfig;
-class KProcess;
+class TDEProcess;
class ProgrammerConfig