Debian Codegraph @

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

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