summaryrefslogtreecommitdiffstats
path: root/ksirc/iocontroller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksirc/iocontroller.cpp')
-rw-r--r--ksirc/iocontroller.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/ksirc/iocontroller.cpp b/ksirc/iocontroller.cpp
index 9835a960..0545b189 100644
--- a/ksirc/iocontroller.cpp
+++ b/ksirc/iocontroller.cpp
@@ -34,23 +34,23 @@
Functions:
public:
- KSircIOController(KProcess*, KSircProcess*):
- - Object constructor takes two arguements the KProcess
+ KSircIOController(TDEProcess*, KSircProcess*):
+ - Object constructor takes two arguements the TDEProcess
that holds a running copy of sirc.
- KSircProcess is saved for access latter to TopList.
- - The receivedStdout signal from KProcess is connected to
+ - The receivedStdout signal from TDEProcess is connected to
stdout_read and the processExited is connected to the sircDied
slot.
~KSircIOController: does nothing at this time.
public slots:
- stdout_read(KProcess *, _buffer, buflen):
+ stdout_read(TDEProcess *, _buffer, buflen):
- Called by kprocess when data arrives.
- This function does all the parsing and sending of messages
to each window.
- stderr_read(KProcess*, _buffer, buflen):
+ stderr_read(TDEProcess*, _buffer, buflen):
- Should be called for stderr data, not connected, does
nothing.
@@ -88,7 +88,7 @@
int KSircIOController::counter = 0;
-KSircIOController::KSircIOController(KProcess *_proc, KSircProcess *_ksircproc)
+KSircIOController::KSircIOController(TDEProcess *_proc, KSircProcess *_ksircproc)
: TQObject()
{
@@ -103,20 +103,20 @@ KSircIOController::KSircIOController(KProcess *_proc, KSircProcess *_ksircproc)
// Connect the data arrived
// to sirc receive for adding
// the main text window
- connect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)),
- this, TQT_SLOT(stdout_read(KProcess*, char*, int)));
+ connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
+ this, TQT_SLOT(stdout_read(TDEProcess*, char*, int)));
// Connect the stderr data
// to sirc receive for adding
// the main text window
- connect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)),
- this, TQT_SLOT(stderr_read(KProcess*, char*, int)));
+ connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ this, TQT_SLOT(stderr_read(TDEProcess*, char*, int)));
- connect(proc, TQT_SIGNAL(processExited(KProcess *)),
- this, TQT_SLOT(sircDied(KProcess *)));
+ connect(proc, TQT_SIGNAL(processExited(TDEProcess *)),
+ this, TQT_SLOT(sircDied(TDEProcess *)));
// Notify on sirc dying
- connect(proc, TQT_SIGNAL(wroteStdin(KProcess*)),
- this, TQT_SLOT(procCTS(KProcess*)));
+ connect(proc, TQT_SIGNAL(wroteStdin(TDEProcess*)),
+ this, TQT_SLOT(procCTS(TDEProcess*)));
proc_CTS = TRUE;
#if 0
showDebugTraffic(true);
@@ -134,7 +134,7 @@ void my_print(const char *c){
fprintf(stderr, "\n");
}
-void KSircIOController::stdout_read(KProcess *, char *_buffer, int buflen)
+void KSircIOController::stdout_read(TDEProcess *, char *_buffer, int buflen)
{
/*
@@ -243,8 +243,8 @@ void KSircIOController::stdout_read(KProcess *, char *_buffer, int buflen)
line.remove(0, pos3+1);
}
}
- TQString enc = KGlobal::charsets()->encodingForName( ksopts->channel["global"]["global"].encoding );
- TQTextCodec *qtc = KGlobal::charsets()->codecForName( enc );
+ TQString enc = TDEGlobal::charsets()->encodingForName( ksopts->channel["global"]["global"].encoding );
+ TQTextCodec *qtc = TDEGlobal::charsets()->codecForName( enc );
TQString qsname = qtc->toUnicode(name);
/*
char *b = tqstrdup(line);
@@ -297,7 +297,7 @@ KSircIOController::~KSircIOController()
delete m_debugLB;
}
-void KSircIOController::stderr_read(KProcess *p, char *b, int l)
+void KSircIOController::stderr_read(TDEProcess *p, char *b, int l)
{
stdout_read(p, b, l);
}
@@ -318,7 +318,7 @@ void KSircIOController::stdin_write(TQCString s)
if(proc_CTS == TRUE){
int len = buffer.length();
if(send_buf != 0x0){
- tqWarning("KProcess barfed in all clear signal again");
+ tqWarning("TDEProcess barfed in all clear signal again");
delete[] send_buf;
}
send_buf = new char[len];
@@ -338,24 +338,24 @@ void KSircIOController::stdin_write(TQCString s)
}
if(buffer.length() > 5000){
- kdDebug(5008) << "IOController: KProcess barfing again!\n";
+ kdDebug(5008) << "IOController: TDEProcess barfing again!\n";
}
// write(sirc_stdin, s, s.length());
}
-void KSircIOController::sircDied(KProcess *process)
+void KSircIOController::sircDied(TDEProcess *process)
{
if ( process->exitStatus() == 0 )
return;
- kdDebug(5008) << "IOController: KProcess died!\n";
+ kdDebug(5008) << "IOController: TDEProcess died!\n";
ksircproc->TopList["!all"]->sirc_receive("*E* DSIRC IS DEAD");
ksircproc->TopList["!all"]->sirc_receive("*E* KSIRC WINDOW HALTED");
- ksircproc->TopList["!all"]->sirc_receive( TQCString( "*E* Tried to run: " ) + KGlobal::dirs()->findExe("dsirc").ascii() + TQCString( "\n" ) );
+ ksircproc->TopList["!all"]->sirc_receive( TQCString( "*E* Tried to run: " ) + TDEGlobal::dirs()->findExe("dsirc").ascii() + TQCString( "\n" ) );
ksircproc->TopList["!all"]->sirc_receive("*E* DID YOU READ THE INSTALL INTRUCTIONS?");
}
-void KSircIOController::procCTS ( KProcess *)
+void KSircIOController::procCTS ( TDEProcess *)
{
proc_CTS = true;
delete[] send_buf;