summaryrefslogtreecommitdiffstats
path: root/tdeprint/lpd
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:47:22 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:47:22 -0600
commit28edc0aa2ab09297288186f5bc15765eb7be58c0 (patch)
tree7b7a01768b3781763186c825af21bb14717d2c32 /tdeprint/lpd
parent07c48c43ff72c237e4028154f4594102b798073f (diff)
downloadtdelibs-28edc0aa2ab09297288186f5bc15765eb7be58c0.tar.gz
tdelibs-28edc0aa2ab09297288186f5bc15765eb7be58c0.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'tdeprint/lpd')
-rw-r--r--tdeprint/lpd/kmlpdmanager.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tdeprint/lpd/kmlpdmanager.cpp b/tdeprint/lpd/kmlpdmanager.cpp
index fcb79a052..a38aa4e26 100644
--- a/tdeprint/lpd/kmlpdmanager.cpp
+++ b/tdeprint/lpd/kmlpdmanager.cpp
@@ -185,9 +185,9 @@ bool KMLpdManager::createPrinter(KMPrinter *printer)
// 4) change permissions of spool directory
TQCString cmd = "chmod -R o-rwx,g+rwX ";
- cmd += TQFile::encodeName(KProcess::quote(ent->arg("sd")));
+ cmd += TQFile::encodeName(TDEProcess::quote(ent->arg("sd")));
cmd += "&& chown -R lp.lp ";
- cmd += TQFile::encodeName(KProcess::quote(ent->arg("sd")));
+ cmd += TQFile::encodeName(TDEProcess::quote(ent->arg("sd")));
if (system(cmd.data()) != 0)
{
setErrorMsg(i18n("Unable to set correct permissions on spool directory %1 for printer <b>%2</b>.").arg(ent->arg("sd")).arg(ent->m_name));
@@ -209,7 +209,7 @@ bool KMLpdManager::removePrinter(KMPrinter *printer)
return false;
}
TQCString cmd = "rm -rf ";
- cmd += TQFile::encodeName(KProcess::quote(ent->arg("sd")));
+ cmd += TQFile::encodeName(TDEProcess::quote(ent->arg("sd")));
system(cmd.data());
delete ent;
return true;
@@ -225,7 +225,7 @@ bool KMLpdManager::enablePrinter(KMPrinter *printer, bool state)
cmd += " ";
cmd += state ? "up" : "down";
cmd += " ";
- cmd += KProcess::quote(printer->printerName());
+ cmd += TDEProcess::quote(printer->printerName());
if (proc.open(cmd))
{
QTextStream t(&proc);
@@ -549,9 +549,9 @@ bool KMLpdManager::savePrinterDriver(KMPrinter *printer, DrMain *driver)
return false;
// write various driver files using templates
TQCString cmd = "cp ";
- cmd += TQFile::encodeName(KProcess::quote(driverDirectory()+"/master-filter"));
+ cmd += TQFile::encodeName(TDEProcess::quote(driverDirectory()+"/master-filter"));
cmd += " ";
- cmd += TQFile::encodeName(KProcess::quote(spooldir + "/filter"));
+ cmd += TQFile::encodeName(TDEProcess::quote(spooldir + "/filter"));
if (system(cmd.data()) == 0 &&
savePrinttoolCfgFile(driverDirectory()+"/general.cfg.in",spooldir,options) &&
savePrinttoolCfgFile(driverDirectory()+"/postscript.cfg.in",spooldir,options) &&