summaryrefslogtreecommitdiffstats
path: root/src/ctcron.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctcron.cpp')
-rw-r--r--src/ctcron.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ctcron.cpp b/src/ctcron.cpp
index d5bfd07..d8b5893 100644
--- a/src/ctcron.cpp
+++ b/src/ctcron.cpp
@@ -22,7 +22,7 @@
#include <tqfile.h>
#include <kprocess.h>
-#include <ktempfile.h>
+#include <tdetempfile.h>
#include <stdlib.h> // system
using namespace std;
@@ -44,15 +44,15 @@ CTCron::CTCron(bool _syscron, string ) :
{
if (syscron)
{
- readCommand = "cat /etc/crontab > " + KProcess::quote(tmpFileName);
- writeCommand = "cat " + KProcess::quote(tmpFileName) + " > /etc/crontab";
+ readCommand = "cat /etc/crontab > " + TDEProcess::quote(tmpFileName);
+ writeCommand = "cat " + TDEProcess::quote(tmpFileName) + " > /etc/crontab";
login = (const char *)i18n("(System Crontab)").local8Bit();
name = "";
}
else
{
- readCommand = TQString("crontab -u ") + _login.c_str() + " -l > " + KProcess::quote(tmpFileName);
- writeCommand = TQString("crontab -u ") + _login.c_str() + " " + KProcess::quote(tmpFileName);
+ readCommand = TQString("crontab -u ") + _login.c_str() + " -l > " + TDEProcess::quote(tmpFileName);
+ writeCommand = TQString("crontab -u ") + _login.c_str() + " " + TDEProcess::quote(tmpFileName);
if (!initFromPasswd(getpwnam(_login.c_str())))
{
error = i18n("No password entry found for user '%1'").arg(_login.c_str());
@@ -62,8 +62,8 @@ CTCron::CTCron(bool _syscron, string ) :
else*/
// regular user, so provide user's own crontab
{
- readCommand = "crontab -l > " + KProcess::quote(tmpFileName);
- writeCommand = "crontab " + KProcess::quote(tmpFileName);
+ readCommand = "crontab -l > " + TDEProcess::quote(tmpFileName);
+ writeCommand = "crontab " + TDEProcess::quote(tmpFileName);
if (!initFromPasswd(getpwuid(uid)))
{
error = i18n("No password entry found for uid '%1'").arg(uid);
@@ -101,8 +101,8 @@ CTCron::CTCron(const struct passwd *pwd) :
tmp.close();
tmpFileName = tmp.name();
- TQString readCommand = TQString("crontab -u ") + TQString(pwd->pw_name) + " -l > " + KProcess::quote(tmpFileName);
- writeCommand = TQString("crontab -u ") + TQString(pwd->pw_name) + " " + KProcess::quote(tmpFileName);
+ TQString readCommand = TQString("crontab -u ") + TQString(pwd->pw_name) + " -l > " + TDEProcess::quote(tmpFileName);
+ writeCommand = TQString("crontab -u ") + TQString(pwd->pw_name) + " " + TDEProcess::quote(tmpFileName);
initFromPasswd(pwd);