Icemon  3.3
icecc-monitor is a monitoring application for icecc (a distributed compiler)
joblistview.h
1 /*
2  This file is part of Icecream.
3 
4  Copyright (c) 2003 Frerich Raabe <raabe@kde.org>
5  Copyright (c) 2003,2004 Stephan Kulow <coolo@kde.org>
6  Copyright (c) 2004 Andre Wöbbeking <Woebbeking@web.de>
7  Copyright (c) 2012 Kevin Funk <kfunk@kde.org>
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 
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
Definition: joblistmodel.h:34
Definition: hostinfo.h:114
Definition: joblistview.h:34