2
* Copyright (C) 2013 ~ 2014 National University of Defense Technology(NUDT) & Kylin Ltd.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; version 3.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
#ifndef MONITORDISPATCHER_H
17
#define MONITORDISPATCHER_H
21
#include <QDBusInterface>
22
#include <QDBusConnection>
24
class MonitorDispatcher : public QObject
28
explicit MonitorDispatcher(QObject *parent = 0);
30
QDBusInterface *monitoriface;
32
Q_INVOKABLE void exit_qt();
33
Q_INVOKABLE double get_cpu_percent_qt();
34
Q_INVOKABLE QString get_total_memory_qt();
35
Q_INVOKABLE QString get_used_memory_qt();
36
Q_INVOKABLE QString get_free_memory_qt();
37
Q_INVOKABLE QStringList get_network_flow_total_qt();
40
#endif // MONITORDISPATCHER_H