/* * ResourceList.h - TaskJuggler * * SPDX-FileCopyrightText: 2001, 2002, 2003, 2004 Chris Schlaeger * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * $Id$ */ #ifndef _SbBooking_h_ #define _SbBooking_h_ #include namespace TJ { class Task; /** * @short Booking information for a time slot of the resource. * @author Chris Schlaeger * * Booking values: * 0 : resource is available * 1 : resource is unavailable * 2 : resource is on vacation * 3 : undefined * 4 : resource is allocated to a task */ class SbBooking { public: explicit SbBooking(Task* t) : task(t) { } explicit SbBooking(const SbBooking* b) { task = b->task; } virtual ~SbBooking() { } Task* getTask() const { return task; } private: /// A pointer to the task that caused the booking Task* task; /// For future use. // double amount; }; } // namespace TJ #endif