Debian Codegraph @

src/views/detailedhostview.h

raw
1 /*
2 This file is part of Icecream.
3
4 Copyright (c) 2004-2006 Andre Wöbbeking <[email protected]>
5
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) any later version.
10
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.
15
16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21 #ifndef ICEMON_DETAILEDHOSTVIEW_H
22 #define ICEMON_DETAILEDHOSTVIEW_H
23
24 #include "statusview.h"
25
26 #include <QScopedPointer>
27 #include <QWidget>
28
29 class HostListModel;
30 class JobListView;
31 class JobListModel;
32 class HostListView;
33 class QSortFilterProxyModel;
34 class JobListSortFilterProxyModel;
35
36 class DetailedHostView
37 : public StatusView
38 {
39 Q_OBJECT
40
41 public:
42 explicit DetailedHostView(QObject *parent);
43
44 void setMonitor(Monitor *monitor) override;
45
46 QWidget *widget() const override;
47
48 QString id() const override { return QStringLiteral("detailedhost"); }
49
50 void checkNode(unsigned int hostid) override;
51
52 private slots:
53 void slotNodeActivated();
54
55 private:
56 void createKnownHosts();
57
58 QScopedPointer<QWidget> m_widget;
59
60 HostListModel *mHostListModel;
61 HostListView *mHostListView;
62 QSortFilterProxyModel *mSortedHostListModel;
63
64 JobListModel *mLocalJobsModel;
65 JobListView *mLocalJobsView;
66 JobListSortFilterProxyModel *mSortedLocalJobsModel;
67
68 JobListModel *mRemoteJobsModel;
69 JobListView *mRemoteJobsView;
70 JobListSortFilterProxyModel *mSortedRemoteJobsModel;
71 };
72
73 #endif