OSDN Git Service

adjust integer's signedness
[tjqt4port/tj2qt4.git] / taskjuggler / VacationInterval.h
1 /*
2  * VacationInterval.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 #ifndef _VacationInterval_h_
13 #define _VacationInterval_h_
14
15 #include "Interval.h"
16
17 /**
18  * @short A time interval with a name.
19  * @author Chris Schlaeger <cs@kde.org>
20  */
21 class VacationInterval : public Interval
22 {
23 public:
24     VacationInterval() :
25         Interval(),
26         name()
27     { }
28
29     VacationInterval(const QString& n, const Interval& i) :
30         Interval(i),
31         name(n)
32     { }
33
34     virtual ~VacationInterval() { }
35
36     void setStart(time_t s) { start = s; }
37     void setEnd(time_t e) { end = e; }
38     void setName(const QString& n) { name = n; }
39     const QString& getName() const { return name; }
40     
41
42 private:
43     QString name;
44 } ;
45
46 #endif
47