CmdModify: Reorganize code for reuse

- Get "modify" checks ready for reuse by CmdImport's newly added update
  support.
- No changes in functionality, code reorganization only.
This commit is contained in:
Wilhelm Schuermann 2015-05-31 09:55:18 +02:00
parent 2a56e41fa9
commit 9067194390
2 changed files with 127 additions and 80 deletions

View file

@ -35,6 +35,13 @@ class CmdModify : public Command
public:
CmdModify ();
int execute (std::string&);
void checkConsistency (Task &before, Task &after);
int modifyAndUpdate (Task &before, Task &after,
std::map <std::string, std::string> *projectChanges = NULL);
int modifyRecurrenceSiblings (Task &task,
std::map <std::string, std::string> *projectChanges = NULL);
int modifyRecurrenceParent (Task &task,
std::map <std::string, std::string> *projectChanges = NULL);
};
#endif