Plasma5Support

mouseengine.h
1/*
2 SPDX-FileCopyrightText: 2007 Fredrik Höglund <fredrik@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-only
5*/
6
7#pragma once
8
9#include <QPoint>
10#include <QTimerEvent>
11
12#include <Plasma5Support/DataEngine>
13
14#include "config-X11.h"
15
16#if WITH_X11
17class CursorNotificationHandler;
18#endif
19
20class MouseEngine : public Plasma5Support::DataEngine
21{
23
24public:
25 MouseEngine(QObject *parent);
26 ~MouseEngine() override;
27
28 QStringList sources() const override;
29
30protected:
31 void init();
32 void timerEvent(QTimerEvent *) override;
33
34private Q_SLOTS:
35 void updateCursorName(const QString &name);
36
37private:
38 QPoint lastPosition;
39 int timerId;
40#if WITH_X11
41 CursorNotificationHandler *handler;
42#endif
43};
Data provider for plasmoids (Plasma plugins)
Definition dataengine.h:45
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.