Debian Codegraph @

src/plugins/schedulers/tj/taskjuggler/VacationList.h

raw
1 /*
2 * VacationList.h - TaskJuggler
3 *
4 * SPDX-FileCopyrightText: 2001, 2002, 2003, 2004 Chris Schlaeger <[email protected]>
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 #ifndef _VacationList_h_
14 #define _VacationList_h_
15
16 #include <QList>
17
18 #include "VacationInterval.h"
19
20 namespace TJ
21 {
22
23 class Interval;
24
25 /**
26 * @short A list of vacations.
27 * @author Chris Schlaeger <[email protected]>
28 */
29 class VacationList : public QList<VacationInterval*>
30 {
31 public:
32 VacationList() {}
33 virtual ~VacationList();
34
35 typedef QListIterator<VacationInterval*> Iterator;
36
37 void inSort(VacationInterval* vi); //TODO
38
39 void add(const QString& name, const Interval& i);
40 void add(VacationInterval* vi);
41 bool isVacation(time_t date) const;
42 QString vacationName(time_t date) const;
43
44 protected:
45 // virtual int compareItems(QCollection::Item i1, QCollection::Item i2);
46 } ;
47
48 } // namespace TJ
49
50 #endif