Logo Search packages:      
Sourcecode: taskjuggler version File versions  Download package

bool Project::isWorkingTime ( const Interval &  iv  )  const

If the interval overlaps with a vacation day or the interval is outside of the defined working hours, FALSE is returned. Otherwise TRUE.

Definition at line 424 of file Project.cpp.

References isVacation().

{
    if (isVacation(iv.getStart()))
        return FALSE;

    int dow = dayOfWeek(iv.getStart(), FALSE);
    for (QPtrListIterator<Interval> ili(*(workingHours[dow])); *ili != 0; ++ili)
    {
        if ((*ili)->contains(Interval(secondsOfDay(iv.getStart()),
                                  secondsOfDay(iv.getEnd()))))
            return TRUE;
    }
    return FALSE;
}


Generated by  Doxygen 1.6.0   Back to index