From f12b53b8c6d6bf9c6bb0e84a4c6f941aee1a9ebd Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 29 Dec 2009 01:08:06 +0000 Subject: * 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 --- kcron/cttask.cpp | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to 'kcron/cttask.cpp') 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 -- cgit v1.2.1