/*
 * ResourceList.h - TaskJuggler
 *
 * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@suse.de>
 *
 * 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: SbBooking.h 929 2004-11-21 20:08:36Z cs $
 */
#ifndef _SbBooking_h_
#define _SbBooking_h_

#include <qstring.h>

class Task;

/**
 * @short Booking information for a time slot of the resource.
 * @author Chris Schlaeger <cs@suse.de>
 */
class SbBooking
{
public:
    SbBooking(Task* t)
        : task(t) { }
    SbBooking(const SbBooking* b) { task = b->task; }
    ~SbBooking() { }

    Task* getTask() const { return task; }

private:
    /// A pointer to the task that caused the booking
    Task* task;

    /// For future use.
    // double amount;
};

#endif

