summaryrefslogtreecommitdiffstats
path: root/tdeprint/lpr/matichandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeprint/lpr/matichandler.cpp')
-rw-r--r--tdeprint/lpr/matichandler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tdeprint/lpr/matichandler.cpp b/tdeprint/lpr/matichandler.cpp
index 07fee1260..74c3c62c6 100644
--- a/tdeprint/lpr/matichandler.cpp
+++ b/tdeprint/lpr/matichandler.cpp
@@ -30,10 +30,10 @@
#include "foomatic2loader.h"
#include <tdelocale.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeapplication.h>
#include <kdebug.h>
-#include <kprocess.h>
+#include <tdeprocess.h>
#include <tqfile.h>
#include <tqtextstream.h>
#include <tqregexp.h>
@@ -224,7 +224,7 @@ DrMain* MaticHandler::loadDriver(KMPrinter*, PrintcapEntry *entry, bool)
// is not self-contained. If the printer is removed (when
// changing printer name), the template would be also removed
TQString origfilename = maticFile(entry);
- TQString filename = locateLocal("tmp", "foomatic_" + kapp->randomString(8));
+ TQString filename = locateLocal("tmp", "foomatic_" + tdeApp->randomString(8));
::system(TQFile::encodeName("cp " + TDEProcess::quote(origfilename) + " " + TDEProcess::quote(filename)));
DrMain *driver = Foomatic2Loader::loadDriver(filename);
if (driver)
@@ -246,7 +246,7 @@ DrMain* MaticHandler::loadDbDriver(const TQString& path)
return NULL;
}
- TQString tmpFile = locateLocal("tmp", "foomatic_" + kapp->randomString(8));
+ TQString tmpFile = locateLocal("tmp", "foomatic_" + tdeApp->randomString(8));
TQString PATH = getenv("PATH") + TQString::fromLatin1(":/usr/sbin:/usr/local/sbin:/opt/sbin:/opt/local/sbin");
TQString exe = TDEStandardDirs::findExe("foomatic-datafile", PATH);
if (exe.isEmpty())
@@ -291,7 +291,7 @@ DrMain* MaticHandler::loadDbDriver(const TQString& path)
bool MaticHandler::savePrinterDriver(KMPrinter *prt, PrintcapEntry *entry, DrMain *driver, bool*)
{
- TQFile tmpFile(locateLocal("tmp", "foomatic_" + kapp->randomString(8)));
+ TQFile tmpFile(locateLocal("tmp", "foomatic_" + tdeApp->randomString(8)));
TQFile inFile(driver->get("template"));
TQString outFile = maticFile(entry);
bool result(false);