00001 #ifndef RESERVATIONMODEL_H
00002 #define RESERVATIONMODEL_H
00003 
00004 #include "domainmodel.h"
00005 
00006 namespace domain
00007 {
00008 class Reservation;
00009 }
00010 
00011 namespace control
00012 {
00013 
00014 class CONTROL_EXPORT ReservationModel : public DomainModel
00015 {
00016     public:
00017 
00018         enum Columns
00019         {
00020             Resource,
00021             Task,
00022             Time,
00023             Duration,
00024             LastColumn 
00025         };
00026 
00027         ReservationModel(domain::TaskManagerData* data);
00028 
00029         int columnCount(const QModelIndex& parent = QModelIndex()) const;
00030         int rowCount(const QModelIndex& parent = QModelIndex()) const;
00031         QVariant headerData(int section, Qt::Orientation orientation,
00032                             int role = Qt::DisplayRole) const;
00033         QVariant data(const QModelIndex& index,
00034                       int role = Qt::DisplayRole) const;
00035 
00036     private:
00037 
00038         
00039 };
00040 
00041 }
00042 
00043 #endif