not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / plasma / applets / system-monitor / hwinfo.h
blobd3372e3d691e1631f01d3afac893687be5fcdd24
1 /*
2 * Copyright (C) 2007 Petri Damsten <damu@iki.fi>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library General Public License version 2 as
6 * published by the Free Software Foundation
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 Library General Public
14 * License along with this program; if not, write to the
15 * Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 #ifndef HWINFO_HEADER
20 #define HWINFO_HEADER
22 #include <applet.h>
23 #include <Plasma/DataEngine>
25 namespace Plasma {
26 class WebView;
27 class IconWidget;
29 class Header;
30 class QGraphicsLinearLayout;
32 class HWInfo : public SM::Applet
34 Q_OBJECT
35 public:
36 HWInfo(QObject *parent, const QVariantList &args);
37 ~HWInfo();
39 virtual void init();
40 virtual bool addMeter(const QString&);
42 public slots:
43 void dataUpdated(const QString &name,
44 const Plasma::DataEngine::Data &data);
46 private slots:
47 void updateHtml();
49 private:
50 void connectToEngine();
52 Plasma::WebView *m_info;
53 Plasma::IconWidget *m_icon;
54 QString m_gpu;
55 QStringList m_cpus;
56 QStringList m_cpuNames;
57 QStringList m_networks;
58 QStringList m_networkNames;
59 QStringList m_audios;
60 QStringList m_audioNames;
63 K_EXPORT_PLASMA_APPLET(sm_hwinfo, HWInfo)
65 #endif