Debian Codegraph @

src/monitor.cc

raw
1 /*
2 This file is part of Icecream.
3
4 Copyright (c) 2014 Kevin Funk <[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 #include "monitor.h"
22
23 #include "statusview.h"
24
25 Monitor::Monitor(HostInfoManager *manager, QObject *parent)
26 : QObject(parent)
27 , m_hostInfoManager(manager)
28 {
29 }
30
31 QByteArray Monitor::currentNetname() const
32 {
33 return m_currentNetname;
34 }
35
36 void Monitor::setCurrentNetname(const QByteArray &netname)
37 {
38 m_currentNetname = netname;
39 }
40
41 QByteArray Monitor::currentSchedname() const
42 {
43 return m_currentSchedname;
44 }
45
46 void Monitor::setCurrentSchedname(const QByteArray &schedname)
47 {
48 m_currentSchedname = schedname;
49 }
50
51 uint Monitor::currentSchedport() const
52 {
53 return m_currentSchedport;
54 }
55 void Monitor::setCurrentSchedport(uint port)
56 {
57 m_currentSchedport = port;
58 }
59
60 Monitor::SchedulerState Monitor::schedulerState() const
61 {
62 return m_schedulerState;
63 }
64
65 void Monitor::setSchedulerState(SchedulerState state)
66 {
67 if (m_schedulerState == state) {
68 return;
69 }
70
71 m_schedulerState = state;
72 emit schedulerStateChanged(state);
73 }
74
75 QList<Job> Monitor::jobHistory() const
76 {
77 return QList<Job>();
78 }