Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (29 sloc) 1.1 KB
#ifndef BRIGHTNESSPLUGIN_H
#define BRIGHTNESSPLUGIN_H
#include <QObject>
#include <QtPlugin>
#include <MLibrary>
#include <MStatusIndicatorMenuExtensionInterface>
#include <MApplicationExtensionInterface>
#include <QGraphicsWidget>
class BrightnessController;
class BrightnessPlugin : public QObject, public MStatusIndicatorMenuExtensionInterface
{
Q_OBJECT
Q_INTERFACES(MStatusIndicatorMenuExtensionInterface MApplicationExtensionInterface)
public:
explicit BrightnessPlugin(QObject *parent = 0);
// Getter for the status indicator menu interface
MStatusIndicatorMenuInterface *statusIndicatorMenuInterface() const;
// Methods derived from MStatusIndicatorMenuPlugin
virtual void setStatusIndicatorMenuInterface(MStatusIndicatorMenuInterface &menuInterface);
// Methods derived from MApplicationExtensionInterface
virtual bool initialize(const QString &interface);
virtual QGraphicsWidget *widget();
signals:
public slots:
private:
MStatusIndicatorMenuInterface *statusIndicatorMenu;
BrightnessController *m_brightnessController;
};
#endif // BRIGHTNESSPLUGIN_H