Debian Codegraph @

src/views/listview.h

raw
1 /*
2 This file is part of Icecream.
3
4 Copyright (c) 2003 Frerich Raabe <[email protected]>
5 Copyright (c) 2003,2004 Stephan Kulow <[email protected]>
6 Copyright (c) 2004 Andre Wöbbeking <[email protected]>
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License along
19 with this program; if not, write to the Free Software Foundation, Inc.,
20 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 */
22 #ifndef ICEMON_LISTVIEW_H
23 #define ICEMON_LISTVIEW_H
24
25 #include "statusview.h"
26
27 #include <QWidget>
28
29 class JobListModel;
30 class JobListView;
31 class QSortFilterProxyModel;
32
33 class ListStatusView
34 : public StatusView
35 {
36 Q_OBJECT
37 public:
38 explicit ListStatusView(QObject *parent);
39
40 Options options() const override;
41 QWidget *widget() const override;
42 QString id() const override { return QStringLiteral("list"); }
43
44 void setMonitor(Monitor *monitor) override;
45
46 private:
47 QScopedPointer<QWidget> m_widget;
48
49 JobListView *mJobsListView;
50 JobListModel *mJobsListModel;
51 QSortFilterProxyModel *mSortedJobsListModel;
52 };
53
54 #endif
55 // vim:ts=4:sw=4:noet