/* * ShiftSelectionList.h - TaskJuggler * * SPDX-FileCopyrightText: 2001, 2002, 2003, 2004 Chris Schlaeger * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * $Id$ */ #ifndef _ShiftSelectionList_h_ #define _ShiftSelectionList_h_ #include "ShiftSelection.h" namespace TJ { class Interval; /** * @short Holds a list of shift selections. * @author Chris Schlaeger */ class ShiftSelectionList : public QList { public: ShiftSelectionList() { } virtual ~ShiftSelectionList() { } typedef QListIterator Iterator; bool insert(ShiftSelection* s); bool isOnShift(const Interval& iv) const; bool isVacationDay(time_t day) const; private: friend class ShiftSelection; // virtual int compareItems(QCollection::Item i1, QCollection::Item i2); }; } // namespace TJ PLANTJ_EXPORT QDebug operator<<(QDebug dbg, const TJ::ShiftSelectionList *s); #endif