#ifndef LOADLIGHT_H #define LOADLIGHT_H #include #include class QSizeF; class PlasmaLoadLight : public Plasma::Applet { Q_OBJECT public: PlasmaLoadLight( QObject *parent, const QVariantList &args ); void init(); void paintInterface( QPainter *painter, const QStyleOptionGraphicsItem *option, const QRect &contentsRect ); protected slots: void sourceAdded( const QString &name ); void dataUpdated( const QString &sourceName, const Plasma::DataEngine::Data &data ); private: double m_load; }; #endif // LOADLIGHT_H