OSDN Git Service

adjust integer's signedness
[tjqt4port/tj2qt4.git] / taskjuggler / VacationList.h
1 /*
2  * VacationList.h - TaskJuggler
3  *
4  * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
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 <q3ptrlist.h>
17 //Added by qt3to4:
18 #include <Q3PtrCollection>
19
20 #include "VacationInterval.h"
21
22 class Interval;
23
24 /**
25  * @short A list of vacations.
26  * @author Chris Schlaeger <cs@kde.org>
27  */
28 class VacationList : public Q3PtrList<VacationInterval>
29 {
30 public:
31     VacationList() { setAutoDelete(true); }
32     virtual ~VacationList() {}
33
34     typedef Q3PtrListIterator<VacationInterval> Iterator;
35
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;
40
41 protected:
42     virtual int compareItems(Q3PtrCollection::Item i1, Q3PtrCollection::Item i2);
43 } ;
44
45 #endif