summaryrefslogtreecommitdiffstats
path: root/smb4k/core/smb4kprint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'smb4k/core/smb4kprint.cpp')
-rw-r--r--smb4k/core/smb4kprint.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/smb4k/core/smb4kprint.cpp b/smb4k/core/smb4kprint.cpp
index 57f4161..3661db0 100644
--- a/smb4k/core/smb4kprint.cpp
+++ b/smb4k/core/smb4kprint.cpp
@@ -46,27 +46,27 @@
#include "smb4kprintinfo.h"
#include "smb4ksettings.h"
-using namespace Smb4KGlobal;
+using namespace Smb4TDEGlobal;
Smb4KPrint::Smb4KPrint( TQObject *parent, const char *name ) : TQObject( parent, name )
{
- m_proc = new KProcess( this, "PrintProcess" );
+ m_proc = new TDEProcess( this, "PrintProcess" );
m_proc->setUseShell( true );
m_info = NULL;
m_working = false;
- connect( m_proc, TQT_SIGNAL( receivedStdout( KProcess *, char *, int ) ),
- this, TQT_SLOT( slotReceivedStdout( KProcess *, char *, int ) ) );
+ connect( m_proc, TQT_SIGNAL( receivedStdout( TDEProcess *, char *, int ) ),
+ this, TQT_SLOT( slotReceivedStdout( TDEProcess *, char *, int ) ) );
- connect( m_proc, TQT_SIGNAL( receivedStderr( KProcess *, char *, int ) ),
- this, TQT_SLOT( slotReceivedStderr( KProcess *, char *, int ) ) );
+ connect( m_proc, TQT_SIGNAL( receivedStderr( TDEProcess *, char *, int ) ),
+ this, TQT_SLOT( slotReceivedStderr( TDEProcess *, char *, int ) ) );
- connect( m_proc, TQT_SIGNAL( processExited( KProcess * ) ),
- this, TQT_SLOT( slotProcessExited( KProcess * ) ) );
+ connect( m_proc, TQT_SIGNAL( processExited( TDEProcess * ) ),
+ this, TQT_SLOT( slotProcessExited( TDEProcess * ) ) );
}
@@ -215,13 +215,13 @@ void Smb4KPrint::printNormal()
command.append( "smbspool 111 "+TQString( getpwuid( getuid() )->pw_name ) );
command.append( " \"Smb4K print job\" "+TQString( "%1" ).arg( m_info->copies() ) );
- command.append( " \"\" "+KProcess::quote( m_info->path() ) );
+ command.append( " \"\" "+TDEProcess::quote( m_info->path() ) );
*m_proc << command;
emit state( PRINT_START );
- m_proc->start( KProcess::NotifyOnExit, KProcess::AllOutput );
+ m_proc->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput );
}
@@ -237,13 +237,13 @@ void Smb4KPrint::printDVI()
TQString command;
// First we need the conversion:
- command.append( "cd "+KProcess::quote( m_info->path().section( "/", 0, -2 ) )+" && " );
- command.append( "dvips -P pdf -o "+temp_file+" "+KProcess::quote( m_info->path().section( "/", -1, -1 ) )+" && " );
+ command.append( "cd "+TDEProcess::quote( m_info->path().section( "/", 0, -2 ) )+" && " );
+ command.append( "dvips -P pdf -o "+temp_file+" "+TDEProcess::quote( m_info->path().section( "/", -1, -1 ) )+" && " );
// The actual print command:
command.append( "smbspool 111 "+TQString( getpwuid( getuid() )->pw_name ) );
command.append( " \"Smb4K print job\" "+TQString( "%1" ).arg( m_info->copies() ) );
- command.append( " \"\" "+KProcess::quote( temp_file )+" && " );
+ command.append( " \"\" "+TDEProcess::quote( temp_file )+" && " );
// Clean up:
command.append( "rm -f "+temp_file );
@@ -252,7 +252,7 @@ void Smb4KPrint::printDVI()
emit state( PRINT_START );
- m_proc->start( KProcess::NotifyOnExit, KProcess::AllOutput );
+ m_proc->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput );
}
@@ -269,13 +269,13 @@ void Smb4KPrint::printText()
// Conversion:
command.append( "enscript --columns=1 --no-header --ps-level=2 " );
- command.append( "-o "+KProcess::quote( temp_file )+" " );
- command.append( KProcess::quote( m_info->path() )+ " && " );
+ command.append( "-o "+TDEProcess::quote( temp_file )+" " );
+ command.append( TDEProcess::quote( m_info->path() )+ " && " );
// The actual print command:
command.append( "smbspool 111 "+TQString( getpwuid( getuid() )->pw_name ) );
command.append( " \"Smb4K print job\" "+TQString( "%1" ).arg( m_info->copies() ) );
- command.append( " \"\" "+KProcess::quote( temp_file )+" && " );
+ command.append( " \"\" "+TDEProcess::quote( temp_file )+" && " );
// Clean up:
command.append( "rm -f "+temp_file );
@@ -284,7 +284,7 @@ void Smb4KPrint::printText()
emit state( PRINT_START );
- m_proc->start( KProcess::NotifyOnExit, KProcess::AllOutput );
+ m_proc->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput );
}
@@ -292,13 +292,13 @@ void Smb4KPrint::printText()
// TQT_SLOT IMPLEMENTATIONS
/////////////////////////////////////////////////////////////////////////////
-void Smb4KPrint::slotReceivedStdout( KProcess *, char *buf, int len )
+void Smb4KPrint::slotReceivedStdout( TDEProcess *, char *buf, int len )
{
m_buffer.append( TQString::fromLocal8Bit( buf, len ) );
}
-void Smb4KPrint::slotReceivedStderr( KProcess *, char *buf, int len )
+void Smb4KPrint::slotReceivedStderr( TDEProcess *, char *buf, int len )
{
m_buffer.append( TQString::fromLocal8Bit( buf, len ) );
@@ -309,7 +309,7 @@ void Smb4KPrint::slotReceivedStderr( KProcess *, char *buf, int len )
}
-void Smb4KPrint::slotProcessExited( KProcess * )
+void Smb4KPrint::slotProcessExited( TDEProcess * )
{
bool retry = false;