summaryrefslogtreecommitdiffstats
path: root/kttsd/plugins/command
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:40:41 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:40:41 -0600
commit0b54abbdf80cef08e5cb8ef7b8b7af31c54dd9b4 (patch)
tree322767e10a0d28887f54f3cefe6399098713dc82 /kttsd/plugins/command
parent11f5b1c38c194ef53638bafa0df70e821a7a6427 (diff)
downloadtdeaccessibility-0b54abbdf80cef08e5cb8ef7b8b7af31c54dd9b4.tar.gz
tdeaccessibility-0b54abbdf80cef08e5cb8ef7b8b7af31c54dd9b4.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kttsd/plugins/command')
-rw-r--r--kttsd/plugins/command/commandproc.cpp30
-rw-r--r--kttsd/plugins/command/commandproc.h12
2 files changed, 21 insertions, 21 deletions
diff --git a/kttsd/plugins/command/commandproc.cpp b/kttsd/plugins/command/commandproc.cpp
index 9ea996e..a5042fa 100644
--- a/kttsd/plugins/command/commandproc.cpp
+++ b/kttsd/plugins/command/commandproc.cpp
@@ -285,19 +285,19 @@ void CommandProc::synth(const TQString& inputText, const TQString& suggestedFile
// 3. create a new process
kdDebug() << "CommandProc::synth: running command: " << command << endl;
- m_commandProc = new KProcess;
+ m_commandProc = new TDEProcess;
m_commandProc->setUseShell(true);
m_commandProc->setEnvironment("LANG", language + "." + codec->mimeName());
m_commandProc->setEnvironment("LC_CTYPE", language + "." + codec->mimeName());
*m_commandProc << command;
- connect(m_commandProc, TQT_SIGNAL(processExited(KProcess*)),
- this, TQT_SLOT(slotProcessExited(KProcess*)));
- connect(m_commandProc, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
- this, TQT_SLOT(slotReceivedStdout(KProcess*, char*, int)));
- connect(m_commandProc, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)),
- this, TQT_SLOT(slotReceivedStderr(KProcess*, char*, int)));
- connect(m_commandProc, TQT_SIGNAL(wroteStdin(KProcess*)),
- this, TQT_SLOT(slotWroteStdin(KProcess* )));
+ connect(m_commandProc, TQT_SIGNAL(processExited(TDEProcess*)),
+ this, TQT_SLOT(slotProcessExited(TDEProcess*)));
+ connect(m_commandProc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedStdout(TDEProcess*, char*, int)));
+ connect(m_commandProc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedStderr(TDEProcess*, char*, int)));
+ connect(m_commandProc, TQT_SIGNAL(wroteStdin(TDEProcess*)),
+ this, TQT_SLOT(slotWroteStdin(TDEProcess* )));
// 4. start the process
@@ -309,14 +309,14 @@ void CommandProc::synth(const TQString& inputText, const TQString& suggestedFile
m_state = psSynthing;
}
if (stdIn) {
- m_commandProc->start(KProcess::NotifyOnExit, KProcess::All);
+ m_commandProc->start(TDEProcess::NotifyOnExit, TDEProcess::All);
if (encodedText.length() > 0)
m_commandProc->writeStdin(encodedText, encodedText.length());
else
m_commandProc->closeStdin();
}
else
- m_commandProc->start(KProcess::NotifyOnExit, KProcess::AllOutput);
+ m_commandProc->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput);
}
/**
@@ -361,7 +361,7 @@ void CommandProc::stopText(){
kdDebug() << "CommandProc::stopText: Command stopped." << endl;
}
-void CommandProc::slotProcessExited(KProcess*)
+void CommandProc::slotProcessExited(TDEProcess*)
{
kdDebug() << "CommandProc:slotProcessExited: Command process has exited." << endl;
pluginState prevState = m_state;
@@ -380,19 +380,19 @@ void CommandProc::slotProcessExited(KProcess*)
}
}
-void CommandProc::slotReceivedStdout(KProcess*, char* buffer, int buflen)
+void CommandProc::slotReceivedStdout(TDEProcess*, char* buffer, int buflen)
{
TQString buf = TQString::fromLatin1(buffer, buflen);
kdDebug() << "CommandProc::slotReceivedStdout: Received output from Command: " << buf << endl;
}
-void CommandProc::slotReceivedStderr(KProcess*, char* buffer, int buflen)
+void CommandProc::slotReceivedStderr(TDEProcess*, char* buffer, int buflen)
{
TQString buf = TQString::fromLatin1(buffer, buflen);
kdDebug() << "CommandProc::slotReceivedStderr: Received error from Command: " << buf << endl;
}
-void CommandProc::slotWroteStdin(KProcess*)
+void CommandProc::slotWroteStdin(TDEProcess*)
{
kdDebug() << "CommandProc::slotWroteStdin: closing Stdin" << endl;
m_commandProc->closeStdin();
diff --git a/kttsd/plugins/command/commandproc.h b/kttsd/plugins/command/commandproc.h
index 26f2494..f206f9b 100644
--- a/kttsd/plugins/command/commandproc.h
+++ b/kttsd/plugins/command/commandproc.h
@@ -24,7 +24,7 @@
// KTTS includes.
#include <pluginproc.h>
-class KProcess;
+class TDEProcess;
class TQTextCodec;
class CommandProc : public PlugInProc{
@@ -140,10 +140,10 @@ class CommandProc : public PlugInProc{
TQTextCodec *codec, TQString& language);
private slots:
- void slotProcessExited(KProcess* proc);
- void slotReceivedStdout(KProcess* proc, char* buffer, int buflen);
- void slotReceivedStderr(KProcess* proc, char* buffer, int buflen);
- void slotWroteStdin(KProcess* proc);
+ void slotProcessExited(TDEProcess* proc);
+ void slotReceivedStdout(TDEProcess* proc, char* buffer, int buflen);
+ void slotReceivedStderr(TDEProcess* proc, char* buffer, int buflen);
+ void slotWroteStdin(TDEProcess* proc);
private:
@@ -175,7 +175,7 @@ class CommandProc : public PlugInProc{
/**
* Flite process
*/
- KProcess* m_commandProc;
+ TDEProcess* m_commandProc;
/**
* Name of temporary file containing text.