summaryrefslogtreecommitdiffstats
path: root/ksysv/OldView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksysv/OldView.cpp')
-rw-r--r--ksysv/OldView.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/ksysv/OldView.cpp b/ksysv/OldView.cpp
index 1f8d454..d3357ad 100644
--- a/ksysv/OldView.cpp
+++ b/ksysv/OldView.cpp
@@ -82,7 +82,7 @@ KSVContent::KSVContent (KPopupMenu* openWithMenu, KSVTopLevel* parent, const cha
mOrigin (0L),
mOpenWithMenu (openWithMenu), m_buffer( TQCString() )
{
- setOpaqueResize( KGlobalSettings::opaqueResize() );
+ setOpaqueResize( TDEGlobalSettings::opaqueResize() );
KXMLGUIFactory* factory = parent->factory();
mItemMenu = static_cast<KPopupMenu*> (factory->container ("item_menu", parent));
@@ -201,7 +201,7 @@ void KSVContent::initLList()
"<p>To stop one, do the same for the <em>Stop</em> section.</p>"));
- TQFont bold_font = TQFont(KGlobalSettings::generalFont());
+ TQFont bold_font = TQFont(TDEGlobalSettings::generalFont());
bold_font.setBold(TRUE);
servL->setFont(bold_font);
@@ -603,20 +603,20 @@ void KSVContent::stopService ()
void KSVContent::stopService (const TQString& path)
{
- KProcess *_proc = new KProcess();
+ TDEProcess *_proc = new TDEProcess();
_proc->clearArguments();
*_proc << path << "stop";
- connect(_proc, TQT_SIGNAL(processExited(KProcess*)), this, TQT_SLOT(slotExitedProcess(KProcess*)));
- connect(_proc, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(KProcess*, char*, int)));
- connect(_proc, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(KProcess*, char*, int)));
+ connect(_proc, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotExitedProcess(TDEProcess*)));
+ connect(_proc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
+ connect(_proc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
// refresh textDisplay
appendLog(i18n("** <stop>Stopping</stop> <cmd>%1</cmd> **<br/>").arg(path),
i18n("** Stopping %1 **").arg(path));
- _proc->start(KProcess::NotifyOnExit, KProcess::AllOutput);
+ _proc->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput);
// notify parent
emit sigRun(path + i18n(" stop"));
@@ -629,20 +629,20 @@ void KSVContent::startService ()
void KSVContent::startService (const TQString& path)
{
- KProcess* _proc = new KProcess();
+ TDEProcess* _proc = new TDEProcess();
_proc->clearArguments();
*_proc << path << "start";
- connect(_proc, TQT_SIGNAL(processExited(KProcess*)), this, TQT_SLOT(slotExitedProcess(KProcess*)));
- connect(_proc, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(KProcess*, char*, int)));
- connect(_proc, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(KProcess*, char*, int)));
+ connect(_proc, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotExitedProcess(TDEProcess*)));
+ connect(_proc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
+ connect(_proc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
// refresh textDisplay
appendLog(i18n("** <start>Starting</start> <cmd>%1</cmd> **<br/>").arg(path),
i18n("** Starting %1 **").arg(path));
- _proc->start(KProcess::NotifyOnExit, KProcess::AllOutput);
+ _proc->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput);
// notify parent
emit sigRun(path + i18n(" start"));
@@ -669,33 +669,33 @@ void KSVContent::restartService ()
void KSVContent::restartService (const TQString& path)
{
// restarting
- KProcess *_proc = new KProcess();
+ TDEProcess *_proc = new TDEProcess();
_proc->clearArguments();
*_proc << path << "restart";
- connect(_proc, TQT_SIGNAL(processExited(KProcess*)), this, TQT_SLOT(slotExitDuringRestart(KProcess*)));
- connect(_proc, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(KProcess*, char*, int)));
- connect(_proc, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(KProcess*, char*, int)));
+ connect(_proc, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotExitDuringRestart(TDEProcess*)));
+ connect(_proc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
+ connect(_proc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
// refresh textDisplay
appendLog(i18n("** Re-starting <cmd>%1</cmd> **</br>").arg(path),
i18n("** Re-starting %1 **").arg(path));
- _proc->start(KProcess::NotifyOnExit, KProcess::AllOutput);
+ _proc->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput);
// notify parent
emit sigRun(path + i18n(" restart"));
}
-void KSVContent::slotOutputOrError( KProcess*, char* _buffer, int _buflen) {
+void KSVContent::slotOutputOrError( TDEProcess*, char* _buffer, int _buflen) {
if (_buflen > 0) {
m_buffer += TQCString( _buffer, _buflen + 1 );
appendLog( m_buffer );
}
}
-void KSVContent::slotExitedProcess( KProcess* proc ) {
+void KSVContent::slotExitedProcess( TDEProcess* proc ) {
appendLog("<hr/>", "--------------");
emit sigStop();
@@ -730,18 +730,18 @@ void KSVContent::slotScriptProperties(TQListViewItem* item)
// delete prop;
}
-void KSVContent::slotExitDuringRestart( KProcess* proc )
+void KSVContent::slotExitDuringRestart( TDEProcess* proc )
{
delete proc;
- proc = new KProcess(); // necessary because otherwise we still have some
+ proc = new TDEProcess(); // necessary because otherwise we still have some
// signals connected that screw up our output
proc->clearArguments();
- connect(proc, TQT_SIGNAL(processExited(KProcess*)), this, TQT_SLOT(slotExitedProcess(KProcess*)));
- connect(proc, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(KProcess*, char*, int)));
- connect(proc, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(KProcess*, char*, int)));
+ connect(proc, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotExitedProcess(TDEProcess*)));
+ connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
+ connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), this, TQT_SLOT(slotOutputOrError(TDEProcess*, char*, int)));
- proc->start(KProcess::NotifyOnExit, KProcess::AllOutput);
+ proc->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput);
}
KSVDragList* KSVContent::getOrigin()