2 * ShiftSelection.h - TaskJuggler
4 * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
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.
12 #ifndef _ShiftSelection_h_
13 #define _ShiftSelection_h_
18 class ShiftSelectionList;
21 * @short Stores shift selection related information.
22 * @author Chris Schlaeger <cs@kde.org>
26 friend class ShiftSelectionList;
29 ShiftSelection(const Interval& p, Shift* s) :
30 period(new Interval(p)),
34 ShiftSelection(Interval* p, Shift* s) :
39 ShiftSelection(const ShiftSelection& sl);
46 const Interval& getPeriod() const { return *period; }
47 Shift* getShift() const { return shift; }
49 bool isVacationDay(time_t day) const;