2
* Copyright (C) 2008 Petri Damsten <damu@iki.fi>
3
* Copyright (C) 2010 Michel Lafon-Puyo <michel.lafonpuyo@gmail.com>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU Library General Public License version 2 as
7
* published by the Free Software Foundation
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details
14
* You should have received a copy of the GNU Library General Public
15
* License along with this program; if not, write to the
16
* Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23
#include <ui_net-config.h>
25
#include <Plasma/DataEngine>
26
#include <QStandardItemModel>
30
class QStandardItemModel;
34
class Net : public Applet
38
Net(QObject *parent, const QVariantList &args);
42
virtual bool addVisualization(const QString&);
43
virtual void createConfigurationInterface(KConfigDialog *parent);
46
void configAccepted();
48
void dataUpdated(const QString &name,
49
const Plasma::DataEngine::Data &data);
50
void sourceAdded(const QString &name);
52
void sourceRemoved(const QString &name);
56
QStandardItemModel m_model;
57
QStringList m_interfaces;
58
QMap<QString, QList<double> > m_data;
64
K_EXPORT_PLASMA_APPLET(sm_net, SM::Net)