/* * VacationList.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 _VacationList_h_ #define _VacationList_h_ #include #include "VacationInterval.h" namespace TJ { class Interval; /** * @short A list of vacations. * @author Chris Schlaeger */ class VacationList : public QList { public: VacationList() {} virtual ~VacationList(); typedef QListIterator Iterator; void inSort(VacationInterval* vi); //TODO void add(const QString& name, const Interval& i); void add(VacationInterval* vi); bool isVacation(time_t date) const; QString vacationName(time_t date) const; protected: // virtual int compareItems(QCollection::Item i1, QCollection::Item i2); } ; } // namespace TJ #endif