summaryrefslogtreecommitdiffstats
path: root/kcron/cttask.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-12-29 01:08:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-12-29 01:08:06 +0000
commitf12b53b8c6d6bf9c6bb0e84a4c6f941aee1a9ebd (patch)
tree5da2b31fd2b6c748098add428def405d33b70878 /kcron/cttask.cpp
parent37333bf25ad9a4c538250f5af2f9f1d666362883 (diff)
downloadtdeadmin-f12b53b8c6d6bf9c6bb0e84a4c6f941aee1a9ebd.tar.gz
tdeadmin-f12b53b8c6d6bf9c6bb0e84a4c6f941aee1a9ebd.zip
* KDE cron updates
* KDE networking module platform string updates git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1067153 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcron/cttask.cpp')
-rw-r--r--kcron/cttask.cpp21
1 files changed, 4 insertions, 17 deletions
diff --git a/kcron/cttask.cpp b/kcron/cttask.cpp
index 1b7b299..22fc77b 100644
--- a/kcron/cttask.cpp
+++ b/kcron/cttask.cpp
@@ -33,14 +33,11 @@ CTTask::CTTask(string tokStr, string _comment, bool _syscron) :
else
enabled = true;
+ //older versions had something called silence. We should still be able to not choke on what we have been
+ //writing earlier. This has no use though.
if (tokStr.substr(0,1) == "-")
{
tokStr = tokStr.substr(1,tokStr.length() - 1);
- silent = true;
- }
- else
- {
- silent = false;
}
if (tokStr.substr(0,1) == "@")
@@ -119,7 +116,6 @@ CTTask::CTTask(string tokStr, string _comment, bool _syscron) :
initialCommand = command;
initialComment = comment;
initialEnabled = enabled;
- initialSilent = silent;
}
CTTask::CTTask(const CTTask &source) :
@@ -132,12 +128,10 @@ CTTask::CTTask(const CTTask &source) :
command(source.command),
comment(source.comment),
enabled(source.enabled),
- silent(source.silent),
initialUser(""),
initialCommand(""),
initialComment(""),
- initialEnabled(true),
- initialSilent(false)
+ initialEnabled(true)
{
}
@@ -152,12 +146,10 @@ void CTTask::operator = (const CTTask& source)
command = source.command;
comment = source.comment;
enabled = source.enabled;
- silent = source.silent;
initialUser = "";
initialCommand = "";
initialComment = "";
initialEnabled = true;
- initialSilent = false;
return;
}
@@ -169,9 +161,6 @@ ostream& operator << (ostream& outputStream, const CTTask& task)
if (!task.enabled)
outputStream << "#\\";
- if (task.silent)
- outputStream << "-";
-
outputStream << task.minute << " ";
outputStream << task.hour << " ";
outputStream << task.dayOfMonth << " ";
@@ -197,7 +186,6 @@ void CTTask::apply()
initialCommand = command;
initialComment = comment;
initialEnabled = enabled;
- initialSilent = silent;
}
void CTTask::cancel()
@@ -211,7 +199,6 @@ void CTTask::cancel()
command = initialCommand;
comment = initialComment;
enabled = initialEnabled;
- silent = initialSilent;
}
bool CTTask::dirty() const
@@ -219,7 +206,7 @@ bool CTTask::dirty() const
return (month.dirty() || dayOfMonth.dirty() || dayOfWeek.dirty() ||
hour.dirty() || minute.dirty() || (user != initialUser) ||
(command != initialCommand) || (comment != initialComment) ||
- (enabled != initialEnabled) || (silent != initialSilent));
+ (enabled != initialEnabled) );
}
string CTTask::describe() const