Debian Codegraph @

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

raw
1 /*
2 * ResourceList.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 _SbBooking_h_
13 #define _SbBooking_h_
14
15 #include <QString>
16
17 namespace TJ
18 {
19
20 class Task;
21
22 /**
23 * @short Booking information for a time slot of the resource.
24 * @author Chris Schlaeger <[email protected]>
25 *
26 * Booking values:
27 * 0 : resource is available
28 * 1 : resource is unavailable
29 * 2 : resource is on vacation
30 * 3 : undefined
31 * 4 : resource is allocated to a task
32 */
33 class SbBooking
34 {
35 public:
36 explicit SbBooking(Task* t)
37 : task(t) { }
38 explicit SbBooking(const SbBooking* b) { task = b->task; }
39 virtual ~SbBooking() { }
40
41 Task* getTask() const { return task; }
42
43 private:
44 /// A pointer to the task that caused the booking
45 Task* task;
46
47 /// For future use.
48 // double amount;
49 };
50
51 } // namespace TJ
52
53 #endif