Debian Codegraph @

src/views/joblistview.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 Copyright (c) 2012 Kevin Funk <[email protected]>
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License along
20 with this program; if not, write to the Free Software Foundation, Inc.,
21 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 */
23
24 #ifndef ICEMON_JOBLISTVIEW_H
25 #define ICEMON_JOBLISTVIEW_H
26
27 #include <QTreeView>
28
29 #include "job.h"
30
31 class JobListModel;
32 class HostInfoManager;
33
34 class JobListView
35 : public QTreeView
36 {
37 Q_OBJECT
38
39 public:
40 explicit JobListView(QWidget *parent = nullptr);
41
42 void setModel(QAbstractItemModel *model) override;
43
44 bool isClientColumnVisible() const;
45 void setClientColumnVisible(bool visible);
46
47 bool isServerColumnVisible() const;
48 void setServerColumnVisible(bool visible);
49
50 void clear();
51
52 private:
53 JobListModel *jobListModel() const;
54 };
55
56 #endif