00001 #include "controldata.h"
00002 
00003 #include <domain/schedule.h>
00004 
00005 using namespace control::data;
00006 
00007 UserInputData::UserInputData() : processData(false)
00008 {
00009 }
00010 
00011 TaskDetails::TaskDetails(const domain::Task* task)
00012 {
00013     if (task != 0)
00014     {
00015         duration = task->schedule().duration();
00016         startTime = task->schedule().startDate();
00017         endTime = task->schedule().dueDate();
00018         fields = task->fields();
00019     }
00020 }
00021 
00022 TaskTypeDetails::TaskTypeDetails(domain::TaskType* type)
00023 {
00024     if (type != 0)
00025         fields = type->fields();
00026 }
00027 
00028 TaskRepresentation::TaskRepresentation() : subTasks(0), userReqs(0), resourceReqs(0)
00029 {
00030 }