OSDN Git Service

Automatically align underspecified tasks boundaries on project boundaries when possible.
[tjqt4port/tj2qt4.git] / taskjuggler / SbBooking.h
1 /*
2  * ResourceList.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 _SbBooking_h_
13 #define _SbBooking_h_
14
15 #include <qstring.h>
16
17 class Task;
18
19 /**
20  * @short Booking information for a time slot of the resource.
21  * @author Chris Schlaeger <cs@kde.org>
22  */
23 class SbBooking
24 {
25 public:
26     SbBooking(Task* t)
27         : task(t) { }
28     SbBooking(const SbBooking* b)
29         : task(b->task) { }
30     virtual ~SbBooking() { }
31
32     Task* getTask() const { return task; }
33
34 private:
35     /// A pointer to the task that caused the booking
36     Task* task;
37
38     /// For future use.
39     // double amount;
40 };
41
42 #endif
43