OSDN Git Service

Automatically align underspecified tasks boundaries on project boundaries when possible.
[tjqt4port/tj2qt4.git] / taskjuggler / ShiftSelection.cpp
1 /*
2  * ShiftSelection.cpp - TaskJuggler
3  *
4  * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of version 2 of the GNU General Public License as
8  * published by the Free Software Foundation.
9  *
10  * $Id$
11  */
12
13 #include "ShiftSelection.h"
14
15 ShiftSelection::ShiftSelection(const ShiftSelection& sl) :
16     period(new Interval(*sl.period)),
17     shift(sl.shift)
18 {
19 }
20
21 bool
22 ShiftSelection::isVacationDay(time_t day) const
23 {
24     return period->contains(day) && shift->isVacationDay(day);
25 }
26
27