1
/* BEGIN_COMMON_COPYRIGHT_HEADER
4
** SysStat is a Qt-based interface to system statistics
7
** Copyright (c) 2009 - 2012 Kuzma Shapran <Kuzma.Shapran@gmail.com>
9
** This library is free software; you can redistribute it and/or
10
** modify it under the terms of the GNU Lesser General Public
11
** License as published by the Free Software Foundation; either
12
** version 2.1 of the License, or (at your option) any later version.
14
** This library 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 GNU
17
** Lesser General Public License for more details.
19
** You should have received a copy of the GNU Lesser General Public
20
** License along with this library;
21
** if not, write to the Free Software Foundation, Inc.,
22
** 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24
** END_COMMON_COPYRIGHT_HEADER */
27
#ifndef LIBSYSSTAT__NET_STAT__PRIVATE__INCLUDED
28
#define LIBSYSSTAT__NET_STAT__PRIVATE__INCLUDED
31
#include <QtCore/QObject>
32
#include <QtCore/QtGlobal>
33
#include <QtCore/QMap>
35
#include "basestat_p.hpp"
36
#include "netstat.hpp"
41
class NetStatPrivate : public BaseStatPrivate
46
NetStatPrivate(NetStat *parent = NULL);
50
void update(unsigned received, unsigned transmitted);
56
QString defaultSource(void);
63
qulonglong transmitted;
65
typedef QMap<QString, Values> NamedValues;
66
NamedValues mPrevious;
71
#endif //LIBSYSSTAT__NET_STAT__PRIVATE__INCLUDED