2 * VacationList.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.
13 #ifndef _VacationList_h_
14 #define _VacationList_h_
16 #include <q3ptrlist.h>
18 #include <Q3PtrCollection>
20 #include "VacationInterval.h"
25 * @short A list of vacations.
26 * @author Chris Schlaeger <cs@kde.org>
28 class VacationList : public Q3PtrList<VacationInterval>
31 VacationList() { setAutoDelete(true); }
32 virtual ~VacationList() {}
34 typedef Q3PtrListIterator<VacationInterval> Iterator;
36 void add(const QString& name, const Interval& i);
37 void add(VacationInterval* vi);
38 bool isVacation(time_t date) const;
39 const QString& vacationName(time_t date) const;
42 virtual int compareItems(Q3PtrCollection::Item i1, Q3PtrCollection::Item i2);