2 * Qt OBS - A Qt based OBS client
4 * Copyright (C) 2010 Novell Inc, Klaas Freitag <freitag@suse.de>
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 2 of the License, or
9 * (at your option) version 3.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 * Written by Klaas Freitag <freitag@suse.de>
27 #include <QAbstractTableModel>
29 #include "obsbuildresults.h"
31 class StatusModel : public QAbstractTableModel
35 StatusModel(QObject *parent);
37 void setBuildResults(OBSProjectBuildResults results );
38 int rowCount(const QModelIndex & /* parent */) const;
39 int columnCount(const QModelIndex & /* parent */) const;
40 QVariant data(const QModelIndex &index, int role) const;
41 QVariant headerData(int /* section */,
42 Qt::Orientation /* orientation */,
45 OBSProjectBuildResults mBuildResults;
48 #endif // STATUSMODEL_H