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