You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
753 B

/*
SPDX-FileCopyrightText: 2007 Fredrik Höglund <fredrik@kde.org>
SPDX-License-Identifier: LGPL-2.0-only
*/
#pragma once
#include <QPoint>
#include <QTimerEvent>
#include <Plasma/DataEngine>
#include <config-X11.h>
#ifdef HAVE_XFIXES
class CursorNotificationHandler;
#endif
class MouseEngine : public Plasma::DataEngine
{
Q_OBJECT
public:
MouseEngine(QObject *parent, const QVariantList &args);
~MouseEngine() override;
QStringList sources() const override;
protected:
void init();
void timerEvent(QTimerEvent *) override;
private Q_SLOTS:
void updateCursorName(const QString &name);
private:
QPoint lastPosition;
int timerId;
#ifdef HAVE_XFIXES
CursorNotificationHandler *handler;
#endif
};